|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xpath predicate help
when I do that, I get an invalid character. {
The part that contains the <xsl:value-of select="$link-target"/>
is working fine I believe
It is the other part.
<xsl:value-of select="$parent_graphic/@id">
that is not working. I will still look into AVT.
<xsl:when test="name(//*[@id=$link-target])='grphprim'">
<xsl:variable name="parent_graphic"
select="//graphic[grphprim/@id=$link-target]"/>
<xsl:value-of select="$parent_graphic/@id">
</xsl:when>
-----Original Message-----
From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx]
Sent: Thursday, February 17, 2005 2:42 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: xpath predicate help
It doesn't work because you are not yet familiar with the attribute
value template (avt). Add curly braces like this:
<xsl:value-of select="{$link-target}"/>
That's how you get the evluation of a variable in an attribute value.
--
Charles Knell
cknell@xxxxxxxxxx - email
-----Original Message-----
From: McKinstry, Scott A <scott.a.mckinstry@xxxxxxxx>
Sent: Thu, 17 Feb 2005 13:47:45 -0500
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: xpath predicate help
I am transforming SGML to XML.
The sample sgml is:
<graphic id="123" name="graphic" ......>
<grphprim id="456" ....>
</graphic>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








