Subject: [xsl] strong typed variable with restriction ? From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx> Date: Wed, 02 Feb 2011 11:16:18 +0100 |
I have a xsl:function which : - must return a element() - has a string param "foobar".
My code looks like : <xsl:function name="igs:get-css-rule" as="element()"> <xsl:param name="foobar" as="xs:string"/> <!--(foo|bar)--> <xsl:choose> <xsl:when test="$foobar='foo'"> <xsl:sequence select="igs:get-my-foo-item()"/> </xsl:when> <xsl:when test="$css='bar'"> <xsl:sequence select="igs:get-my-bar-item()"/> </xsl:when> </xsl:choose> </xsl:function>
-- Matthieu Ricaud IGS-CP Service Livre numirique
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] EMF, Andriy Gerasika | Thread | Re: [xsl] strong typed variable wit, Andrew Welch |
Re: [xsl] EMF, Andriy Gerasika | Date | Re: [xsl] strong typed variable wit, Andrew Welch |
Month |