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

Re: accessing info outside current context

Subject: Re: accessing info outside current context
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Fri, 19 Oct 2001 14:43:16 -0400
xpath outside context
[David Carlisle]>

> > I just tried it out and you DO have to escape the ampersand
>
> but you missed the point of the argument. (Actually the real point was
> to protect the honour if a certain Lady) but the claimed technical
> argument was one of terminology.
>
> In XPath the less than operator is < and the test for a variable being
> less than three is $x < 3. (Check the XPath grammar to see this)
> Now _if_ you put your XPath in an XML file, then like any other text
> you have to quote the < hence the XSLT construct:
> <xsl:if test=" $x &lt; 3">
>
> So Jeni's example was correct as an XPath: it matches a production in
> the XPath grammar. But you have to quote & in XML files. So if you were
> to write that XPath in an XSLT stylesheet you would have to quote it.
>

Sure, I know that, but the original question seemed to be about using it in
xslt, and I couldn't tell from the posts whether that question was being
answered or not.  So I decided to be very clear about it.

Cheers,

Tom P


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.