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

RE: XSLT/XPath 2.0: a USEFUL way to provide lexical in

Subject: RE: XSLT/XPath 2.0: a USEFUL way to provide lexical info
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sun, 6 Jan 2002 20:01:00 -0000
cdata xpath 2.0
> I think, as a user, I'd rather see a "lexical" XPath axis
> (pair?), to let me
> hop back & forth between the tree w/ the lexical constructs
> and without.  I
> think this would be much easier to use, and its use could be better
> encapsulated within a small number of templates.

It's a nice idea in principle, but I have some difficulty seeing how to
flesh out the detail. The two main lexical components, entity references and
CDATA sections, occur in the middle of character data, so it's not obvious
how you would represent them on a separate axis. You could represent them by
new node types (e.g. a start-cdata node and an end-cdata node) on the child
axis, which would not be selected by the node() nodetest but only by some
new lex() nodetest. However, the overall effect would be much more pervasive
to the XSLT specification, the data model, and implementations. I agree that
it's in some ways cleaner than the "bolt-on" proposed by Appendix F, but
because it's so pervasive, I think it would have a smaller chance of

Mike Kay

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

Current Thread


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.
First Name
Last Name
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.