[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: Michel Hendriksen <michel.hendriksen@xxxxxxxxx>
Date: Wed, 29 Dec 2010 14:11:22 +0100
Re:  Avoiding boneheaded mistakes in XSLT?
Or just list/report expressions that never led to a selection.

On Wed, Dec 29, 2010 at 2:09 PM, Piet van Oostrum <piet@xxxxxxxxxxxxxx>
wrote:
> Dave Pawson wrote:
>
>  > On Tue, 28 Dec 2010 23:13:01 +0000
>  > Michael Kay <mike@xxxxxxxxxxxx> wrote:
>  >
>  > > I think the main reason for the problem is that an XSLT/XPath
>  > > program makes many references to names (of elements and attributes)
>  > > which do not have to be declared, so that using an incorrect name
>  > > is not an error (either static or dynamic), but rather results in
>  > > an XPath expression that simply selects nothing.
>  >
>  > I guess no one would do that deliberately?
>  > Yet the rec and implementations don't provide any error | warning
>  > about it?
>
> It would be nice if processors would have a debug mode in which XPath
expressions would be checked against a schema or DTD and give a warning when
some 'impossible' expression is encountered. Impossible meaning something that
never can give a non-empty result on valid documents. Probably just paths that
are illegal according to the schema.
> --
> Piet van Oostrum
> Cochabamba. URL: http://pietvanoostrum.com/
> Nu Fair Trade woonartikelen op http://www.zylja.com

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.