salbatron cdata problem
am 29.08.2007 14:27:01 von andybdiI am playing with a few xml feeds changing them into different formats
and merging them with others, and have found that when using cdata-
section-elements salbatron adds an extra line break at the begining
and end of the cdata tags. e.g.
Inital code is
This gets changed to
Thats not the end of the world but when i then process this feed and
merge it with other stored feeds I use xsl:copy-of to simply copy that
node. cdata-section-elements is used again but this time it assumes
that the line breaks are part of the text and keeps them in so the
resulting code is
blah blah
]]>
If the merge transformation is run again then it will again assume the
line breaks outside the
will be
blah blah
]]>
This keeps on occuring adding more and more line breaks into the
text. I can use normalize-space in the presentaiton of the text but
woudl prefer not to have to. it also means that I end up with files
that are very long and full of line breaks.
Does anyone have any ideas why this is happening and how to stop it.
Thanks for your help