This is my xml:
<mi>
<pif pin="1" pt="3" ttl="Name">
<pa ia="1">Mary Smith</pa>
<info msg="The name is requeried" step="Requeried" order="3"
digit1="3" totop="1"/>
</pif>
<inputs>
</inputs>
</mi>
This is my xsl:
<xsl:stylesheet xmlns:xsl="
<xsl:template match=".">
<xsl:apply-templates select=".//pif" />
</xsl:template>
<xsl:template match="pif">
<INPUT TYPE="TEXT" SIZE="15">
<xsl:attribute name="NAME">
Available_
<xsl:value-of select="@pin" />
</xsl:attribute>
<xsl:attribule name="VALUE">
<xsl:value-of select="./pa[@ia='1']" />
</xsl:attribute>
</INPUT>
</xsl:template>
</xsl:stylesheet>
I would like this:
...
<xsl:attribule name="VALUE">
<xsl:eval language="VBScript">
My_Function("./pa[@ia='1']"
</xsl:eval>
</xsl:attribute>
...
<xsl:script language="VBScript">
<![CDATA[
function My_Function(e)
Dim iText
iText = e + 'is ...'
My_Function = iText
End function
]]>
</xsl:script>
but not work.
Somebody can help me?
I need get a node value and pass it to a function in VBScript.
How to obtain this value and to call the function?
Thanks a lot!!
Luciana
<mi>
<pif pin="1" pt="3" ttl="Name">
<pa ia="1">Mary Smith</pa>
<info msg="The name is requeried" step="Requeried" order="3"
digit1="3" totop="1"/>
</pif>
<inputs>
</inputs>
</mi>
This is my xsl:
<xsl:stylesheet xmlns:xsl="
<xsl:template match=".">
<xsl:apply-templates select=".//pif" />
</xsl:template>
<xsl:template match="pif">
<INPUT TYPE="TEXT" SIZE="15">
<xsl:attribute name="NAME">
Available_
<xsl:value-of select="@pin" />
</xsl:attribute>
<xsl:attribule name="VALUE">
<xsl:value-of select="./pa[@ia='1']" />
</xsl:attribute>
</INPUT>
</xsl:template>
</xsl:stylesheet>
I would like this:
...
<xsl:attribule name="VALUE">
<xsl:eval language="VBScript">
My_Function("./pa[@ia='1']"
</xsl:eval>
</xsl:attribute>
...
<xsl:script language="VBScript">
<![CDATA[
function My_Function(e)
Dim iText
iText = e + 'is ...'
My_Function = iText
End function
]]>
</xsl:script>
but not work.
Somebody can help me?
I need get a node value and pass it to a function in VBScript.
How to obtain this value and to call the function?
Thanks a lot!!
Luciana