This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to avoid spawning new lines when processing?

 
Alan Wanwierd
Ranch Hand
Posts: 624
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20188
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic