Subject: Re: [xsl] obtaining tree fragments from node-set value From: Rahil <qamar_rahil@xxxxxxxxxxx> Date: Wed, 11 May 2005 12:12:37 +0100 |
Strange. I had tried exactly the same line of code <xsl:value-of select="$x/@ref/> earlier and it didnt return the results I was looking for but it worked this time! Im sure I had made a mistake somewhere.I just tried out your solution but <xsl:value-of select="@ref/> doesnt return any value.
sorry ignore my last reply.
You made the mistake of doing what I said, not what I meant.
<xsl:when test="$x"/>
ref: <xsl:value-of select="$x/@ref/> text: <xsl:value-of select="$x"/>
</xsl:when>
or, if you are not doing anything in other branches of the xsl:choose you don't need a variable or xsl:when at all and just do
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] obtaining tree fragments , David Carlisle | Thread | [xsl] xsl:apply-templates behaving , knocte |
Re: [xsl] obtaining tree fragments , David Carlisle | Date | [xsl] xsl:apply-templates behaving , knocte |
Month |