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

RE: Are variables allowed in XPATHs?

Subject: RE: Are variables allowed in XPATHs?
From: "Roger Glover" <glover_roger@xxxxxxxxx>
Date: Sun, 2 Feb 2003 22:18:26 -0600
RE:  Are variables allowed in XPATHs?
Harry Ohlsen wrote:

> I've written some XSL that is parameterised based
> on a set of variables defined in an xsl:include-ed
> file.  The reason is that I want to separate the
> generic transformation from the specifics, both to
> facilitate re-use and to avoid unintentional
> editing of the XSL when targeting it at a specific
> instance of the problem.
>
> This seems to work fine with Xalan, but XMLSpy
> gives me an error, saying that variables and
> parameters cannot be used in patterns.
>
> Am I doing something that may break if I move from
> Xalan to another processor, or is XMLSpy just
> telling me that this is a limitation in its debugger?
>
> I'm particularly interested, since I am in the
> process of evaluating XMLSpy.  If this is a
> limitation of XMLSpy, can anyone point me to
> another tool that can handle this kind of code,
> since I expect to be writing a lot of it.
>
> Of course, if there's a better way to approach the
> problem, I'd be interested to hear that, too!
> I've only been hacking at XSLT for about a week,
> so I'm definitely not au fait with all its
> facilities, yet.

It might help if you gave us a look at the exact pattern to which XMLSpy was
objecting.

-- Roger



 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.