<p>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:asp="remove">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="session_name"/>
<xsl:template match="ServiceName">
<xsl:for-each select="//Field">
<xsl:text>
</xsl:text><xsl:value-of select="@label"/><xsl:text> </xsl:text>
<xsl:if test="@type = 'TextBox'">
<xsl:value-of select="@value"/>
</xsl:if>
<xsl:if test="@type = 'CheckBoxList'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="@type = 'DropDownList'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="@type = 'ListBox'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="@type = 'RadioButtonList'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
</p>
Sunday, April 25, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment