[Home] [By Thread] [By Date] [Recent Entries]
At 2011-11-25 10:23 +0100, Matthieu Ricaud-Dussarget wrote:
Thank you for your as-always clear explanation Michael. Have you considered something along the lines of: <xsl:param name="arg"/> <xsl:variable name="arg-used" as="xs:whatever?"
select="if( $arg castable as xs:whatever )
then xs:whatever( $arg ) else ()"/>.... $arg-used ... Thank you for your response Ken, but as said Michael my question was about "always supplied parameters". Yes, please forgive my oversight. But this make me think about another question : if no parameters is supplied, I'm use to test it againts empty string with When the types are not the same, the processor reduces one or both of the sides to a common type. The empty sequence is boolean false, and the empty string is boolean false, so when both are converted to boolean, they are the same. I hope this helps. . . . . . . . . . . Ken -- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/t37DVX Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



