Skip to content

Instantly share code, notes, and snippets.

@batasrki
Created July 14, 2009 18:13
Show Gist options
  • Select an option

  • Save batasrki/147099 to your computer and use it in GitHub Desktop.

Select an option

Save batasrki/147099 to your computer and use it in GitHub Desktop.
<input type="hidden" id="sortCol" name="sortCol">
<xsl:attribute name="value">
<xsl:choose>
<xsl:when test="//root/request/sortCol">
<xsl:value-of select="//root/request/sortCol" />
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</input>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment