xsl-list
[Top] [All Lists]

RE: problem with simple XPath expression

2005-01-20 00:23:20
Hi,

I'm calling a template that matches an XML element that in turn
contains:

<org_list>
<org_code type="APPR">ANSI</org_code>
</org_list>

But this XSLT instruction isn't generating the desired asterisk in my
output:

<xsl:if test="org_list/org_code[(_at_)type='APPR' and text()='ANSI']">
  <xsl:text>*</xsl:text>
</xsl:if>

Could this be an incompatibility between XSLT/Xpath 1.0 and 
2.0?  I seem
to remember it working with Xalan 2.6, but it's definitely not working
with Saxon 8.2.  What am I missing here?

Works for me with Saxon 8.2 and the expression is correct. Is the source 
exactly as shown above (including not being in a namespace) and your XSLT too? 
Are you sure the context node is the correct one?

Cheers,

Jarno

--~------------------------------------------------------------------
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>