File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes How to avoid spawning new lines when processing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to avoid spawning new lines when processing?" Watch "How to avoid spawning new lines when processing?" New topic
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: 18109
    
    8

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
 
subject: How to avoid spawning new lines when processing?
 
Similar Threads
xsl getNext to sort output
xsl to merge duplicate tag
XSLT merging help
Passing an XPath Param value
How to insert a structure into XML