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

XSL lint

Subject: XSL lint
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Mon, 30 Apr 2001 08:39:26 +0200
xsl lint
Mike Kay wrote:
> >    So what are the XSLT equivalents of C "if (a = b) ..."
[snip]
>
> I'd suggest a couple:
> 
> <xsl:sort> where the sort expression is not dependent on the context node,
> for example
> <xsl:sort select="$param"/>
> 
> <xsl:for-each select="item">
>    <xsl:value-of select="item"/>
> 
> Trouble is, of course, it might just be correct.
> 
> Mike Kay
>
I'd like to see XSL processers (or XSL lint-like tools) to look at an
associated DTD or XSD in order to catch this kind of errors.
This deals also with the problem of renaming an element in the XML during
development and not changing all xpath in the XSL referring to this
element. Such errors may persist for a long time until caught, as
i had to learn the hard way.

To be more elaborate, I'd like the XSL processor to emit a warning if
there is a DTD associated with the source XML and it doesn't mention
an item child element of the item element in Mr. Kay's example above.

J.Pietschmann

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


Current Thread
  • XSL lint
    • Joerg Pietschmann - Mon, 30 Apr 2001 02:38:51 -0400 (EDT) <=

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.