[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Entity inside an attribute

Subject: Re: Entity inside an attribute
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Tue, 20 Apr 2010 12:37:11 -0400
Re:  Entity inside an attribute
The "<" character is not allowed to occur unescaped in an attribute
value. That's just a hard-and-fast rule of XML. (See
http://www.w3.org/TR/REC-xml/ production #10.)

The "<" character is escaped by using "&lt;", &#x3C;, or &#60;.

> Hello All,
>
> I am trying to create an HTML <td> tag with attribute
title="=COUNTIF(A3:A13<>P)"
>
> But I am not able to get the greater than sign '>'.
> My output is coming as
> <td title="=COUNTIF(A3:A13<&gt;P)"></td>
> and I want
> <td title="=COUNTIF(A3:A13<>P)"></td>
>
> Following code I am using to create the td tag.
>
> <xsl:element name="td">
>     <xsl:attribute name="title">
>          <xsl:text disable-output-escaping="yes">=COUNTIF(A3:A13</xsl:text>
>           <xsl:text disable-output-escaping="yes">&lt;</xsl:text>
>           <xsl:text disable-output-escaping="yes">&gt;P)</xsl:text>
>      </xsl:attribute>
> </xsl:element>
>
> I tried this one too in my XSL
>
> <td title='=COUNTIF(A3:A13&lt;&gt;P)' />
>        
>
> Please correct me where I am doing wrong.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.