xsl-list
[Top] [All Lists]

RE: RE: xpath predicate help

2005-02-17 15:29:34
I jumped too quickly, like Michael Kay said. Sorry for the misinformation, but 
the AVT will come in handy at some point, so do look into it.
-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     McKinstry, Scott A <scott(_dot_)a(_dot_)mckinstry(_at_)lmco(_dot_)com>
Sent:     Thu, 17 Feb 2005 15:07:48 -0500
To:       xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject:  RE: [xsl] 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(//*[(_at_)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(_at_)onebox(_dot_)com [mailto:cknell(_at_)onebox(_dot_)com]
Sent: Thursday, February 17, 2005 2:42 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] 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(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     McKinstry, Scott A <scott(_dot_)a(_dot_)mckinstry(_at_)lmco(_dot_)com>
Sent:     Thu, 17 Feb 2005 13:47:45 -0500
To:       xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject:  [xsl] xpath predicate help

I am transforming SGML to XML.
The sample sgml is:

<graphic id="123" name="graphic" ......>
        <grphprim id="456" ....>
</graphic>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>