parameters - XSLT: How to pass a node value to a custom xsl:function ? -


I have a simple task that I want to pass the value of the node.

  & lt; Xsl: function name = "f: getdatetimetype" such as "": "xs: string" & gt; & Lt; Xsl: as the ultimate name = "code" = "x: int" /> & Lt; XSL: Select & gt; & Lt; Xsl: when test = "$ code = 137" & gt; & Lt; XSL: Text & gt; DocumentMessageDateTime & lt; / XSL: text & gt; & Lt; / XSL: When & gt; & Lt; XSL: otherwise & gt; & Lt; XSL: Text & gt; Unspecified & lt; / XSL: text & gt; & Lt; / XSL: otherwise & gt; & Lt; / XSL: Select & gt; & Lt; / XSL: Function & gt;  

How can I do this?

I do not think I can do this:

  & lt; Xsl: Select the value = "f: getdatetimetype (& lt; xsl: value-selection =" DTM01 / DTM0101 "/>)" />  

you

  & lt; Should go with xsl: select the value = "f: getdatetimetype (DTM01 / DTM0101)" />  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -