[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] RE: variable assignment and disable-output-escaping
Subject: [xsl] RE: variable assignment and disable-output-escaping From: "OHalloran, Martin" <Martin.OHalloran@xxxxxxxxx> Date: Sun, 10 Apr 2011 21:05:39 -0600 |
Hi thanks for reading . I have the following xml which is passed as a parameter to my xsl file for transformation from a jsp . tradingPartnerXML = "<select>"+ "<option value='711'>711: Compression Disabled</option>"+ " <option value='729'>729: Compression Enable</option>"+ "</select>"; when I receive it the tags < > are replaced with < and > . I then do the following and it looks good . <xsl:message>Trading partner xml is:<xsl:value-of select="$tradingPartnerXML" disable-output-escaping="yes"/></xsl:message> I then want to create another variable from the contents of the tradingPartnerXML so I do the following . <xsl:variable name="tradingPartner"> <xsl:text disable-output-escaping="yes"> <xsl:copy-of select="$tradingPartnerXML"/> </xsl:text> </xsl:variable> I have also tried other variations of this <xsl:variable name="tp"> <xsl:value-of select="$tradingPartnerXML"/> </xsl:variable> When I create the other variable "tp" it contains the > < instead of < and > which I would have expected . I am using the xalan processor . I have looked all over to try and find a soulution to this problem . Ultimately I want to be able to extract the contents of the xml . <xsl:for-each select="exsl:node-set($tp)//select/option"> <xsl:text>Printing value</xsl:text> <xsl:value-of select="."/> <xsl:value-of select="@value"/> </xsl:for-each> Thanks again for you help .If there is another soulution I would like to hear it . ________________________________ This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Washington method, Dave Pawson | Thread | Re: [xsl] RE: variable assignment a, Michael Kay |
Re: [xsl] Processing two documents,, Liam R E Quin | Date | Re: [xsl] RE: variable assignment a, Michael Kay |
Month |