|
Subject: [xsl] combining two variables to generate XPATH From: "bix xslt" <bix_xslt@xxxxxxxxxxx> Date: Tue, 17 Dec 2002 19:11:30 +0000 |
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE list SYSTEM "sort.dtd"> <?xml-stylesheet type="text/xsl" href="sort_1.xsl"?>
<list mode="normal">
<proc id="a" />
<proc id="h" />
<proc type="r" id="b">
<exec type="a">
<item idr="c" />
<item idr="d" />
</exec>
</proc> <proc type="e" id="c">
<dpnd>
<item idr="a" />
<item idr="h" />
</dpnd>
<exec type="a">
<item idr="e" />
<item idr="f" />
</exec>
</proc>
<proc id="d">
<dpnd>
<item idr="g" />
</dpnd>
</proc>
<proc id="e" />
<proc id="f" /><proc id="g" /> </list>
<xsl:template match="proc" name="depn">
<xsl:param name="node" select="." /> <xsl:value-of select="$node/@id" />
<xsl:if test="$node/dpnd">
<xsl:text> (</xsl:text>
<xsl:call-template name="dispItem">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="type" select="dpnd"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:if>
<xsl:if test="$node/exec">
<xsl:text> "</xsl:text>
<xsl:call-template name="dispItem">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="type" select="exec"/>
</xsl:call-template>
<xsl:text>"</xsl:text>
</xsl:if>
<br />
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] output method html doesnt, Passin, Tom | Thread | Re: [xsl] combining two variables t, bix xslt |
| Re: [xsl] output method html doesnt, Ritu | Date | RE: [xsl] output method html doesnt, Martinez, Brian |
| Month |