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

Re: XSLT and XML Schema

Subject: Re: XSLT and XML Schema
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Date: Thu, 14 Jun 2007 08:40:59 +1000
Re:  XSLT and XML Schema
Michael Kay wrote:
Well, in principle an XML Schema document is XML so you can use it as an
input to your stylesheet. But it's not easy to process unless you know the
coding standards that have been followed, because there are many different
ways of writing equivalent schemas. The next Saxon release will offer an
"predigested" XML representation of the schema component model that aims to
help with that.

Incidentally, attributes should be regarded as unordered: the concept of
"the third attribute" is not very meaningful.
I agree with this statement. I do XSD processing in XSLT (to validate the XSD against internal standards) and I find it challenging and sometimes painful.

As stated above (putting aside the valid point about there being no such thing as a third attribute) the problem is there are so many ways you can represent these three attributes in xsd. For example, you can create Complex types that specify 3 attributes, and reference this complex type in your element class, you can use an extension, or you can specify it directly in the element. Additionally, you can specify class in an import and or in an include (depending on whether there is a namespace). Now if you are in control of the XSD, it should be fine, but if you are not, I recommend you think twice before you using XSLTs to do this sort of processing. But if you do, have fun.

Can you further elaborate on the changes to Saxon you mentioned above?


Kamal Bhatt

Current Thread


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.
First Name
Last Name
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.