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

Re: Avoiding boneheaded mistakes in XSLT?

Subject: Re: Avoiding boneheaded mistakes in XSLT?
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Wed, 29 Dec 2010 08:42:29 -0500
Re:  Avoiding boneheaded mistakes in XSLT?
> 1. In an XPath expression, using "something/node" where I wanted
> "something/node()" [ditto text vs. text()]: always means zero
> results and can drive you crazy if you don't notice the missing
> parentheses;

But just fantasizing for a moment, here, wouldn't it be nice to have
a function what-is-this(), to which one could hand an expression and
be told what the processor knows it is supposed to be, so you can
compare that to what you think it is supposed to be?

Stuff kinda like:
  what-is-this( something/node ) => "sequence of 0 or more ns:node element nodes"
  what-is-this( something/node() ) => "sequence of 0 or more element, attribute, comment, text, or processing-instruction nodes"
  what-is-this( 1+1 ) => "xs:integer"
  what-is-this( $teiHeader ) => "variable holding a result tree fragment"

I'll bet oXygen's XSLT debugger (and perhaps others as well, I've
only used oXygen's) gives you this information somehow.

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.