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

RE: Validating xslt against a schema for the document

Subject: RE: Validating xslt against a schema for the document I want to transform
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 24 Mar 2004 11:43:10 -0000
andre moniz
# I'm writing a lengthy transform for some xml data for which I 
# have a detailed xsd file. It occurs to me that as a useful, 
# quick validation to ensure that I have spelled node names 
# right and got paths correct, it would be great to be able to 
# validate my xslt against the schema for the document I want 
# to transform. This way, if I tried to follow a path that did 
# not exist or access a node name that was not permitted in the 
# document, I would get a warning message.

This is one of the aims of the integration between XSLT and XML Schema that
comes with XSLT 2.0.

Unfortunately, despite an immensely complex type system designed to achieve
this integration, the simple goal of spotting spelling mistakes in path
expressions isn't fully achieved, because rules in stylesheets can't be tied
statically to specific documents. However, I would expect that XSLT 2.0
implementations will fill this gap by at least giving you warnings. 

Michael Kay

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.