Subject: Re: [xsl] How to use saxon:validate From: Alex Muir <alex.g.muir@xxxxxxxxx> Date: Mon, 17 Mar 2014 09:29:40 +0000 |
Yeah I don't know,, I'm not clear from the documentation where to declare the xsd file I'm using. The first argument is the node to validate. The second argument, $options, gives options for how the validation is to be performed. The third is for the xsd params.. So should I assume then the xml file declares which xsd it is using? On Mon, Mar 17, 2014 at 8:55 AM, Michael Kay <mike@xxxxxxxxxxxx> wrote: > > Saxon-specific questions are best asked on a Saxon-specific forum, e.g. saxonica.plan.io. > > I don't think there is any documentation you have missed, except that to understand this function you need to understand maps. Maps are introduced in XSLT 3.0: see > > http://www.w3.org/TR/xslt-30/#map > > Note that Saxon 9.5 isn't perfectly aligned with the Dec 2013 draft in its support for maps, for example Saxon implements the syntax > > map{ a := b, c := d } > > rather than > > map{ a : b, c : d } > > Michael Kay > Saxonica > > > On 17 Mar 2014, at 08:23, Alex Muir <alex.g.muir@xxxxxxxxx> wrote: > >> Hi, >> >> I'm reading the documentation here >> http://www.saxonica.com/documentation/functions/saxon/validate.html >> but I'm not clear on how the third parameter map should be defined in code. >> >> $params >> >> map(xs:string, item()* >> >> Is there a complete xslt example online that shows clearly how to use >> the saxon:validate function? >> >> I've been searching but cannot find one, perhaps because google >> doesn't include the punctuation : in the search results. >> >> Regards >> >> -- >> - >> >> Alex Muir >> http://ca.linkedin.com/pub/alex-muir/36/ab7/125 > -- - Alex Muir http://ca.linkedin.com/pub/alex-muir/36/ab7/125
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to use saxon:validate, Michael Kay | Thread | [xsl] After a refresher on C progra, Costello, Roger L. |
Re: [xsl] How to use saxon:validate, Michael Kay | Date | [xsl] After a refresher on C progra, Costello, Roger L. |
Month |