Subject: [xsl] Root when the current node is part of Parameter Result Tree Fragement/Nodelist From: "Colin Toal" <colin_toal@xxxxxxxxxxx> Date: Tue, 09 Mar 2004 16:44:33 -0500 |
<Objects> <Object> <Name>Toothbrush</Name> <Type>Electric</Type> <Colour>White</Type> </Object> <Object> <Name>Soap Dish</Name> <Type>Plastic</Type> <Colour>Blue</Colour> <Object> </Objects>
<xsl:template match="/Objects"> <FoundObject> <xsl:apply-templates select="key('kObject', $ObjectName/Name)"/> </FoundObject> </xsl:template>
<xsl:template match="Object"> <xsl:copy-of select="."/> <xsl:apply-templates select="$OtherExpr/ParamColour"/> </xsl:template>
<xsl:template match="ParamColour"> <xsl:if test="current() = key('kObject', $ObjectName/Name)/Colour"> Is the same colour! </xsl:if> </xsl:template>
For ObjectName Param <Name>Toothbrush</Name>
For Other Expr Param: <ParamColour>White</ParamColour>
Thanks in advance for your help, Colin Toal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] table-row height attribut, Mark Williams | Thread | RE: [xsl] Root when the current nod, Andreas L. Delmelle |
Re: [xsl] table-row height attribut, G. Ken Holman | Date | [xsl] Trouble with namespaces and r, James J. Ramsey |
Month |