[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Adding structure to a fla, Michael Kay | Thread | Re: [xsl] Quotation marks within qu, David Carlisle |
Re: [xsl] Number of scans required , David Carlisle | Date | RE: [xsl] Walking the tree, Michael Kay |
Month |