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

RE: How to read Schema XSD in stylesheet XSL!

Subject: RE: How to read Schema XSD in stylesheet XSL!
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Nov 2007 11:02:23 -0500
RE:  How to read Schema XSD in stylesheet XSL!
At 04:54 AM 11/28/2007, you wrote:
If you need to ask the question, then you shouldn't attempt this.

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).

The OP doesn't however, tell us why this is "urgent" and whether (or why) the problem couldn't be solved by not doing it.


Many XML environments and processors come with various sorts of schema validation. It might be interesting to see whether any of them support calling for validation from inside XSLT. Which is backwards, to be sure, but people have done stranger things with XSLT.

For example, Saxon8 + extensions can load and execute a transformation from inside a stylesheet. Can it call for schema validation (of input or output) while doing this? (I assume one would need Saxon-SA for this.)

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.