| Author |
How to avoid spawning new lines when processing?
|
Alan Wanwierd
Ranch Hand
Joined: Jun 30, 2004
Posts: 624
|
|
I have a simple stylesheet who's aim is to simply convert attributes from uppercase to lowercase, without changing any of the values in the data. However, when I run the transformation any values get pre-pended by a & #13;... so this: translated by the following: Produces: Any ideas why this is happening and how I can stop it? Thanks ETA: Grrrrr Jranch has parsed my XML samples!!! So I've added spaces so you can see what I'm talking about! [ October 11, 2007: Message edited by: Adrian Wanwierd ]
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
That is quite strange. Why don't you have a look at Section 3.3.3 of the XML Recommendation. It's headed "Attribute-Value Normalization" and it deals with what a parser is supposed to do to an attribute. I don't see it mentioning inserting characters anywhere, so what you describe looks wrong to me. It even refers to section 2.11, which talks about removing characters. And you certainly aren't inserting them in your transformation, not that I can see anyway. (If you want the forum to not interpret your & characters, you have to escape them as & when you post.)
|
 |
 |
|
|
subject: How to avoid spawning new lines when processing?
|
|
|