xsl-list
[Top] [All Lists]

RE: [xsl] How to read Schema XSD in stylesheet XSL!

2007-11-28 02:57:44
I need urgent help on a task which is...

If you need to ask the question, then you shouldn't attempt this.

And I should also have added, you certainly shouldn't attempt it if it's
urgent. It's definitely not something to do if you are in a hurry.

Michael Kay
http://www.saxonica.com/


Writing a program in any language that tests whether 
instances are valid against a schema is a significant 
challenge and requires a good knowledge of the theory of 
compiler writing. Writing such a program in XSLT is 
significantly more difficult (because the classical approach 
uses finite state machines, and XSLT is stateless).

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: wiky [mailto:wiky_83(_at_)hotmail(_dot_)com]
Sent: 28 November 2007 04:36
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How to read Schema XSD in stylesheet XSL!



Hi All,
I need urgent help on a task which is
1. to write a stylesheet XSL which will process a document
XML: it will also be given a schema XSD, which will be 
specified by a 
stylesheet parameter.

2. It will produce text output, which will either be the 
word "yes" or 
the word "no", depending whether the document conforms to 
the schema 
or not.

3. The schemata will be very simple: they will be built up from 
xsd:element, xsd:complexType, xsd:sequence, and xsd:choice. 
There will 
be no text content, no restriction types, and no attributes.

4. The stylesheet should work for any document and any 
schema made of 
the above elements. Note that you can write the same schema in many 
alternative forms (using named types and anonymous types), and your

stylesheet should work for all possible forms.

 
The probelm is I don't know how can i access NAMES of ELEMENTS and 
their ATTRIBUTES from SCHEMA document using XSL.
How to pass XSD as parameter in XSL? How can I access XSD document 
using XS?.
 
Thanks for taking time and reading my message. I'll much appreciate 
any piece of help.
 
Regards

_________________________________________________________________
Feel like a local wherever you go.
http://www.backofmyhand.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--