GuardianOfTheFlame
Programmer
Hi all,
I use Visual Studio 2005 to create my xsl transformations but I don't understand how can I use functions.
Searching on the internet I see that exists the tag <xsl:function> but VS doesn't recognize it (and in the MSDN index this tag is not documented)... is there an other way to create functions?
I would like to make a function called IsText that return a boolean, so I mustn't repeat this code every time I want to use it:
I cannot use a template 'cause I cannot call it in a <xsl:if> tag, right? so I think I must create a function to do this...
Thanks,
Salo
I use Visual Studio 2005 to create my xsl transformations but I don't understand how can I use functions.
Searching on the internet I see that exists the tag <xsl:function> but VS doesn't recognize it (and in the MSDN index this tag is not documented)... is there an other way to create functions?
I would like to make a function called IsText that return a boolean, so I mustn't repeat this code every time I want to use it:
Code:
test="@datatype='3' or @datatype='4' or @datatype='5' or @datatype='6' or @datatype='7' or @datatype='8' or @datatype='9'"
I cannot use a template 'cause I cannot call it in a <xsl:if> tag, right? so I think I must create a function to do this...
Thanks,
Salo