xsl-list
[Top] [All Lists]

RE: [xsl] Entity inside an attribute

2010-04-20 11:32:40

disable-output-escaping has no effect when writing an attribute value.

Are you using <xsl:output method="html"/>?

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

 

-----Original Message-----
From: Shashank Jain [mailto:shashankjain(_at_)live(_dot_)com] 
Sent: 20 April 2010 17:26
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Entity inside an attribute


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.

Thanks,
Shashank
                                        
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get 
more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::
T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>