Subject: Re: [xsl] Schema validation on a function parameter From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 12 Feb 2018 18:04:13 -0000 |
> If you do this a lot you could also try > > <xsl:function name="my:validate" as="element(*, xs:anyType)"> > <xsl:param name="e" as="element()"/> > <xsl:variable name="e" as="schema-element(*, xs:anyType)"> > <xsl:copy-of select="$e" validation="strict"/> > </xsl:variable> > </xsl:function> > I got muddled there, I removed the xsl:sequence instruction because the variable isn't needed, but forgot to remove the variable. I intended to write > <xsl:function name="my:validate" as="element(*, xs:anyType)"> > <xsl:param name="e" as="element()"/> > <xsl:copy-of select="$e" validation="strict"/> > </xsl:function> Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Schema validation on a fu, Matthieu RICAUD-DUSS | Thread | [xsl] Using QNames as keys in maps, Erik Siegel erik@xxx |
Re: [xsl] Schema validation on a fu, Matthieu RICAUD-DUSS | Date | AW: [xsl] Handling dependency hiera, Dr. Patrik Stellmann |
Month |