Subject: Re: [xsl] Where did my tabs go? Trying to understand xsl:value-of, tabs and the separator attribute From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 16 Oct 2006 23:06:54 +0200 |
why can't I use the following to the same success?
now I have a moral dilemma, do I answer "it's obvious that won't work"
or do I answer "that's what I tried in my first draft reply"... hmmmmm
essentialy the reason is that amp is _defined_ to be already double
quoted, precisely so that use of amp survives this entity expansion
still as a quoted character that is nt taken as markup, but
Basically this is an edge case where intuition or simplifications like
"entities expanded first" don't really help. The xml spec specifies a
particular algorithm for normalising attribute values, and how it
interacts with character and entity reference. Most of the time it just
does "the obvious thing" but sometimes like here there's no avoiding
just stepping through the algorithm and seeing what happens. (Or as I
just did in fact use a parser like rxp and trust that Richard read the
specified algorithm carefully.
The following declarations: <!ENTITY % pub "Éditions Gallimard" > <!ENTITY rights "All rights reserved" > <!ENTITY book "La Peste: Albert Camus, © 1947 %pub;. &rights;" >
Becomes the following replacement string: La Peste: Albert Camus, ) 1947 Iditions Gallimard. &rights;
This declaration <!ENTITY tab "&#x09;">
This declaration <!ENTITY tab "&38;#x09;">
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Where did my tabs go? Try, David Carlisle | Thread | Re: [xsl] Where did my tabs go? Try, David Carlisle |
RE: [xsl] [XSLT 2.0] Checking that , Michael Kay | Date | Re: [xsl] Newbie Question: Convert , Watch-O-Matic |
Month |