xsl-list
[Top] [All Lists]

RE: Ampersand in attributes

2004-10-07 07:22:36

Do you know if I can use that property in <xsl:copy-of select="@*"/>??

saxon:disable-output-escaping - no. You have to replace it with

for each @*
  attribute {name()} {.}

character-maps - yes. These apply to all serialized output, however
generated.

Michael Kay



Regards, 


Néstor Boscán

-----Mensaje original-----
De: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Enviado el: Thursday, October 07, 2004 3:58 AM
Para: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Asunto: RE: [xsl] Ampersand in attributes

Ken thanks for your quick answer

In my case I have a Kyocera running an Eudora browser that does not 
work well with the amperson and I need to generate "&" instead of 
"&amp".


There are ways of generating invalid HTML if you really need 
to, which it
seems you do.

In Saxon 6.x there is an extension saxon:disable-output-escaping on
xsl:attribute

In Saxon 8.x you can use character maps: assign some private 
use character
to the meaning "unescaped ampersand", and map it to an 
ampersand as the
output string.

Please also raise a bug report with the supplier of this 
broken browser.

Michael Kay
http://www.saxonica.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>
--+--


--+------------------------------------------------------------------
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>