Subject: Re: [xsl] Entity inside an attribute From: Syd Bauman <Syd_Bauman@xxxxxxxxx> Date: Tue, 20 Apr 2010 12:37:11 -0400 |
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 "<", <, or <. > 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<>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"><</xsl:text> > <xsl:text disable-output-escaping="yes">>P)</xsl:text> > </xsl:attribute> > </xsl:element> > > I tried this one too in my XSL > > <td title='=COUNTIF(A3:A13<>P)' /> > > > Please correct me where I am doing wrong.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Entity inside an attribut, Miller, Mark | Thread | [xsl] Re: Writing xslt from DSML, vinu shankar |
RE: [xsl] Entity inside an attribut, Michael Kay | Date | RE: [xsl] Entity inside an attribut, Shashank Jain |
Month |