Subject: Re: [xsl] instance-of schema-element From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Fri, 14 Mar 2008 15:53:37 +0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] instance-of schema-elemen, Michael Kay | Thread | Re: [xsl] instance-of schema-elemen, Florent Georges |
Re: [xsl] instance-of schema-elemen, John Snelson | Date | Re: [xsl] instance-of schema-elemen, Andrew Welch |
Month |