[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Line feed in xalan, disappears


Subject: Re: [xsl] Line feed in xalan, disappears
From: Chris Wolf <cwolf.algo@xxxxxxxxx>
Date: Mon, 19 Nov 2012 15:36:25 -0500

I don't think you need a binary editor or hexdumper - if you're on
UNIX (Linux) or using Cygwin on Windows,
you can just use the "octal dump" utility, but with the "-c" option
for ASCII mode and -Ax to show offsets in hex, (-Ad for decimal).

e.g.

$ od -Ax  -c message.xml
000000   <   m   e   s   s   a   g   e   >   I       l   o   v   e  \n
000010   x   s   l   t   <   /   m   e   s   s   a   g   e   >  \n
00001f


On Sun, Nov 18, 2012 at 12:15 PM, Liam R E Quin <liam@xxxxxx> wrote:
> On Sat, 2012-11-17 at 10:47 +0000, David Carlisle wrote:
>> On 17/11/2012 10:13, Mansour Al Akeel wrote:
>> The resulting text, is concatenated where there's a line feed
>> > (x0A). for for example if I have in my xml:
>> >   <message>I love xslt</message>
>> > and in my xslt: <xsl:value-of select="message" />
>> >   Then the results is:
>> >
>> > I lovexslt
>
> I'm not seeing a line feed.
>
> Check the character you have there very carefully, e.g. using a hex dump
> or binary editor: maybe it's a non-breaking or thin space, and maybe
> it's not defined in the character encoding you've specified in the XML
> declaration in your input XML file.
>
> Try running the XSLT transform on the command-line and seeing if there
> are warnings.
>
> Is the *actual* text "I love xslt" or is this just an example? Does the
> actual text have an accented character just before or after the
> "missing" space?
>
> Liam
>
> --
> Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
> Pictures from old books: http://fromoldbooks.org/
> Ankh: irc.sorcery.net irc.gnome.org freenode/#xml


Current Thread
Keywords