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

RE: XSL-List Digest V4 #485

Subject: RE: XSL-List Digest V4 #485
From: Bill Cohagan <bill.cohagan@xxxxxxxxxxxxx>
Date: Thu, 27 Jun 2002 14:12:36 -0500
rng v4
Michael-
  Yes, and treating it as a literal element is *precisely* what causes the
problem. As I said, these are not syntax errors; thus detecting them will
take some semantic knowledge. Were I to write a transform to detect this I'd
simply look for *any* element (not in the xsl namespace) whose element name
begins with the charater string "xsl" (or whatever the namespace prefix is
defined to be). I'd flag any such occurence as "suspect".

For the case I was describing it was in fact <xsl-value-of .../> so there
was no well-formedness error.

So, what's the purpose of the RELAX-NG schema?

Thanks,
 bill



-----Original Message-----
Date: Thu, 27 Jun 2002 10:40:02 +1000
From: "Michael Leditschke" <mike@xxxxxxxxxxx>
Subject: RE:  XSL lint?

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

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


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.