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

Re: instance-of schema-element

Subject: Re: instance-of schema-element
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 14 Mar 2008 15:53:37 +0000
Re:  instance-of schema-element
On 14/03/2008, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> >
>  > With this approach I need some way of validating the XML from
>  > within the XSLT and then be able to handle any validation failures...
>
>
> Not possible in standard XSLT 2.0, but you could try saxon:try().

Ahh ok, thanks.

I'm already using saxon:parse but I think saxon:try might be step too far...

It looks like I'll have to recreate the validation checks within the
transform - all simple enumerations but a pain nonetheless.

It would be useful to have little more control over validation within
the transform:

- check if something would be valid if validated (like say castable
as... maybe validatable as!)

- handle validation failures, such as validating the input and
reporting problems, or ignoring invalid elements: processing 1000
repeating elements where the lot fail because 1 of them fails
validation is a reasonably common problem.


thanks
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.