[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Schema validation on a function parameter
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|