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

RE: XSL lint?

Subject: RE: XSL lint?
From: "Michael Leditschke" <mike@xxxxxxxxxxx>
Date: Thu, 27 Jun 2002 10:40:02 +1000
xsl transform errors silent errors
There is already a RELAX-NG schema for XSLT at

http://thaiopensource.com/relaxng/xslt.rng

However, for the "error" quoted;

<xsl-value-of ...> rather than <xsl:value-of ...>

I don't think it would complain - it would simply
treat the xsl-value-of as a literal result element.

(presumably the above example was produced with a tool that
managed the tags for you, e.g. added closing tags,
otherwise a well-formedness error would be likely)

Regards
Michael


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of James Fuller
> Sent: Thursday, 27 June 2002 3:40 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  XSL lint?
>
>
> one could write a schema or schematron for xslt
>
> cheers, jim fuller
>
> ----- Original Message -----
> From: "Bill Cohagan" <bill.cohagan@xxxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Wednesday, June 26, 2002 5:43 PM
> Subject:  XSL lint?
>
>
> > Has anyone written a "lint" utility for XSL? Our group has noticed that
> > there is a set of common errors that aren't actually syntax errors, thus
> > aren't caught by the processor. These "silent" errors lead to much
> > frustration and gnashing of teeth.
> >
> > For example, have you ever done
> >
> >   <xsl-value-of ...> rather than <xsl:value-of ...>  ??
> >
> > How about forgetting the "$" in a variable reference (resulting in XSL
> > interpreting as an element reference with the current context)?
> >
> > There are of course others, but these examples show the kind of
> thing I'm
> > talking about. Some of course would be more difficult than others to
> > "detect" with a lint type transform.
> >
> > Anyway, I was about to put this project on my "to-do" list, but thought
> I'd
> > see if anyone else might have already tackled the job.
> >
> > Regards,
> >  Bill
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>



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


Current Thread
  • XSL lint?
    • Bill Cohagan - Wed, 26 Jun 2002 13:00:15 -0400 (EDT)
      • Jeni Tennison - Wed, 26 Jun 2002 13:19:57 -0400 (EDT)
      • James Fuller - Wed, 26 Jun 2002 13:53:47 -0400 (EDT)
        • Michael Leditschke - Wed, 26 Jun 2002 20:39:50 -0400 (EDT) <=
      • <Possible follow-ups>
      • roger . day - Wed, 26 Jun 2002 13:28:07 -0400 (EDT)
      • Bill Cohagan - Fri, 28 Jun 2002 17:08:33 -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.