xslt - Pass boolean value to a .Net Extension object -



xslt - Pass boolean value to a .Net Extension object -

i have next xsl:

<xsl:variable name="prioritycall"> <xsl:choose> <xsl:when test="$priorityflag = 1 or $priorityflag = 2 or $priorityflag =3"> <xsl:value-of select="true()"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="false()"/> </xsl:otherwise> </xsl:choose> </xsl:variable>

and want pass value of prioritycall .net extension object follows:

<xsl:value-of select="ucinterface:insertnewgroup($userref, $sitecode, $prioritycall)" />

signature of .net method:

public string insertnewgroup(string userref, string sitecode, bool prioritysite)

the value in .net true. can pass false if phone call extension method this:

<xsl:value-of select="ucinterface:insertnewgroup($userref, $sitecode, false())" />

how can pass bool value getting value out of $prioritycall?

define variable <xsl:variable name="prioritycall" select="$priorityflag = 1 or $priorityflag = 2 or $priorityflag =3"/>.

with current setup variable (in xslt 1.0) of type result tree fragment, result tree fragment contains single, non empty text node happens contain representation of boolean value. converted true. if utilize select attribute boolean xpath expression, shown above, value of type boolean.

xslt xslt-1.0

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -