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

Re: How to access PSVI in XSLT3

Subject: Re: How to access PSVI in XSLT3
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 May 2018 07:07:57 -0000
Re:  How to access PSVI in XSLT3
Practically, no, because (a) there isn't going to be another XSLT
specification in the foreseeable future, and (b) there wouldn't be enough
implementors to justify a standard.

Technically, schema validation is closely tied in with the XDM type system,
and this has the consequence that XDM never exposes nodes for which validation
has failed (that is to say, for which the outcome of validation is "invalid").
It would be possible to relax this, but it would need careful thought: it
would involve a different kind of validation, in which (a) validation never
causes a dynamic error, but (b) data that has been subjected to validation
cannot be assumed to conform to the type against which it was validated.

There is also an effect on streaming. XSD is designed so that you know, while
processing a start tag, what the type of the element is supposed to be; but
you don't know until you hit the end tag whether the element is actually valid
against that type. This means that if invalid data is to be made visible to
the application, then in a streaming environment the PSVI data for an element
can't be exposed until you reach the end tag.

Of course, there are applications for which it would be very useful to allow
an invalid document to be processed and inspected, but it's probably a
minority requirement.

Mi

> On 24 May 2018, at 07:32, Mukul Gandhi gandhi.mukul@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Wed, May 23, 2018 at 11:45 PM, Jason Polis jason@xxxxxxx
<mailto:jason@xxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote:
> How can the PSVI be accessed in XSLT3 ?
>
>
>  That's an interesting question. My naive feeling is, XSLT should provide a
way to know, all prescribed PSVI information mention in XML Schema language.
Is it practical to have this required, in the future XSLT spec (like XSLT 3.0
2nd Edition or something similar)?
>
>
>
> --
> Regards,
> Mukul Gandhi
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <-list/293509> (by email <>)

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.