in reply to xml::xslt xpath bug?
Don't forget to quote your values. Your code
<xsl:if test="/PLMXML/Form[@id=id24]">
should be
<xsl:if test="/PLMXML/Form[@id='id24']">
Unquoted would try to find a child element named id24. (Well, it's suppose to. I don't have much faith in XML::XSLT.)
Both single and double quotes are equivalent in XPaths. Don't forget to appropriately escaped them according to the enclosing quotes.
<xsl:if test="/PLMXML/Form[@id='id24']"> <xsl:if test='/PLMXML/Form[@id="id24"]'> <xsl:if test="/PLMXML/Form[@id="id24"]"> <xsl:if test='/PLMXML/Form[@id='id24']'>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: xml::xslt xpath bug?
by Anonymous Monk on Jul 07, 2009 at 15:48 UTC | |
by ikegami (Patriarch) on Jul 07, 2009 at 16:32 UTC | |
by Anonymous Monk on Jul 07, 2009 at 16:42 UTC | |
by ikegami (Patriarch) on Jul 07, 2009 at 16:48 UTC |