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

Re: Re: Schema awareness with XSLT 1.0

Subject: Re: Re: Schema awareness with XSLT 1.0
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sat, 30 Aug 2008 23:06:29 +0530
Re:  Re: Schema awareness with XSLT 1.0
Thanks for your comments ... Please see my responses to your questions below.

On Sat, Aug 30, 2008 at 10:40 PM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
>  I had a look at the initial article, but if I am right, though the
> article is entitled "Schema aware processing with XSLT 1.0," this
> presents rather a "Xalan extension function for WXS schema validation,"
> doesn't it?

my intention of writing this article was to discuss how validation of
"output trees" / "result tree fragments" in an XSLT 1.0 environment
can be done. I used Xalan-J for my work, just as an example product.
This can be done similarly with Saxon 6.5.x also (I believe, it
supports Java extensions very well).

In fact, in the next version I am planning to make the stylesheet
portable for Xalan and Saxon 6.5.x.

>
>  This is really different.  Schema-awarness does much more than
> validating nodes.
>
>  About the validation function itself, I find quite strange to pass
> the schema document as a string.  Why not pass it as a document or
> element node?  Or enable the user to pass either a node (document or
> element, the schema itself) or a string (the schema's URI.)

I agree with you. I actually wanted to write inline Schema in
stylesheet as below:

<xsl:variable name="schemaDoc">
  <xs:schema
       ...........
  </xs:schema>
</xs:variable>

But I was facing some problem passing this Schema as a RTF, or as a
node-set and accessing it in the Java extension function. The Schema
string worked for me.

An example is there in the article, where I pass the Schema URI to the
extension function, and that works fine.


-- 
Regards,
Mukul Gandhi

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.