Subject: RE: [xsl] Copy element referenced to From: "Taco Fleur \(@DataBroker\)" <taco@xxxxxxxxxxxxx> Date: Tue, 26 Jul 2005 11:07:13 +1000 |
Slight correction in there <!-- If the field element contains a reference attribute we need to first copy the element it is refering to --> <xsl:if test="$fieldCollection/field[ current()/@identity = @identity ]/@reference"> <xsl:copy-of select="$fieldCollection/field[ current()/@identity = @referece ]/@*" /> <xsl:element name="$fieldCollection/field[ current()/@identity = @referece ]/*"> <xsl:copy-of select="$fieldCollection/field[ current()/@identity = @referece ]/*" /> </xsl:element> </xsl:if> Should have been <!-- If the field element contains a reference attribute we need to first copy the element it is refering to --> <xsl:if test="$fieldCollection/field[ current()/@identity = @identity ]/@reference"> <xsl:copy-of select="$fieldCollection/field[ @identity = @reference ]/@*" /> <xsl:element name="$fieldCollection/field[ @identity = @reference ]/*"> <xsl:copy-of select="$fieldCollection/field[ @identity = @reference ]/*" /> </xsl:element> </xsl:if>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Nodes and Strings, Elaine Prata | Thread | [xsl] Removing duplicates in Merge, jithendarl |
[xsl] Copy element referenced to, Taco Fleur \(@DataBr | Date | RE: [xsl] Nodes and Strings, Aron Bock |
Month |