Re: [xsl] > replaced by ">", < is not replaced...
2007-07-13 03:53:58
Jethro Borsje wrote:
Actually I want all the HTML things to be preserved, other things
which are removed by the transition are things like:  , which I
all want to keep.
What do you mean by "removed"? Depending on the output method you
choose, the No-Break Space, or U+00A0, can be serialized as a numeric
entity (either   or  ), or can be serialized as encoded
character (in UTF-16 this would be x00A0 or xA000 depending on the byte
order). If you use an output encoding that does not support the
serialized character (in the case of the NBS, the US-ASCII or ISO-646
equivalent are examples that do not support it) it will be output as a
numeric entity reference. Only exception is when you output it as text
(which you don't seem to do), in which case an error will occur if the
tree cannot be serialized.
Note that for any XML or HTML client, it does not matter at all how a
particular character is encoded, as long as it is in line with the
chosen encoding. In the case of HTML, Michael Kay already pointed out
that > is a "should be" encoded as > character according to the spec.
Nevertheless, by the best of my knowledge, there is no HTML client in
existence that has trouble interpreting the pure > character correctly.
Cheers,
-- Abel Braaksma
--~------------------------------------------------------------------
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>
|
- [xsl] > replaced by ">", < is not replaced..., Jethro Borsje
- RE: [xsl] > replaced by ">", < is not replaced..., Michael Kay
- Re: [xsl] > replaced by ">", < is not replaced..., Jethro Borsje
- Re: [xsl] > replaced by ">", < is not replaced...,
Abel Braaksma <=
- Re: [xsl] > replaced by ">", < is not replaced..., Jethro Borsje
- RE: [xsl] > replaced by ">", < is not replaced..., Michael Kay
- Re: [xsl] > replaced by ">", < is not replaced..., Abel Braaksma
- Re: [xsl] > replaced by ">", < is not replaced..., Jethro Borsje
- [xsl] comparing a part of the XML tree, Jethro Borsje
- RE: [xsl] comparing a part of the XML tree, Michael Kay
- RE: [xsl] comparing a part of the XML tree, Owen Rees
- RE: [xsl] comparing a part of the XML tree, Michael Kay
- Re: [xsl] comparing a part of the XML tree, Jethro Borsje
- Re: [xsl] comparing a part of the XML tree, David Carlisle
|
|
|