[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Quotation marks within quotation marks


Subject: [xsl] Quotation marks within quotation marks
From: Daniel McOrmond <daniel.mcormond@xxxxxxxxxx>
Date: Thu, 14 Aug 2003 11:07:41 -0400

I'm sure someone has had this problem before. I want to check if an element with a particular attribute is available. I'm using the element-available() function which takes a string argument.

Immediately you see my problem.. I can't have quotation marks within quotation marks.

Any solutions?

<xsl:choose>
<xsl:when test="element-available('req:parameter[@name='additional_group']')">
-----------------------------------^--------------------^----------------^-^
<xsl:value-of select="req:parameter[@name='additional_group']" />,
</xsl:when>
<xsl:otherwise>
<xsl:text>NULL,</xsl:text>
</xsl:otherwise>
</xsl:choose>



Thanks, -Daniel


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread