[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: problem with simple XPath expression

Subject: RE: problem with simple XPath expression
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 20 Jan 2005 08:56:40 -0000
RE:  problem with simple XPath expression
I think the problem must be in the parts you haven't shown us. Perhaps

(a) the context node isn't the parent of the <org_list> element, or

(b) there is a default namespace declared in the XML, or

(c) the <xsl:if> instruction isn't being evaluated at all.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Kevin Rodgers [mailto:kevin.rodgers@xxxxxxx] 
> Sent: 20 January 2005 01:03
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  problem with simple XPath expression
> 
> 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[@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?
> 
> Thanks,
> -- 
> Kevin Rodgers

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.