Re: [xsl] Replacing character entities

Subject: Re: [xsl] Replacing character entities
From: "Wagstaff, Jason" <WagstaffJ@xxxxxxxxxxxx>
Date: Tue, 15 Feb 2005 11:21:09 -0600
David, 

Thank you.  I did not try it from the command line, I was using XMLSpy.
Once I ran it from the command line it worked correctly.  Thanks to
Joris for the original solution.  

Jason

On Tue, 2005-02-15 at 16:37 +0000, David Carlisle wrote:
> Note &#13 is a character reference not an entity reference.
> 
> but running your posted stylesheet against your posted xml produces:
> 
> $ saxon c13.xml c13.xsl
> <?xml version="1.0" encoding="UTF-8"?>
> <div>
>    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
>    <p>
> 
>    </p>
>    <p>ultrices nisl id orci. Curabitur id est. In eget mauris. Lorem
> Praesent sollicitudin bibendum orci. Suspendisse potenti. Quisque nec
> tortor.</p>
>    <p>
> 
>    </p>
>    <p>magna. Sed facilisis nonummy nulla. Aenean feugiat, ligula sit amet
> rhoncus consectetuer, mi pede consectetuer neque, vitae gravida urna
> diam ac massa. Lorem Aenean neque magna, gravida vitae, pellentesque
> nec, aliquam a, risus.</p>
>    <p>
> 
>    </p>
>    <p>
> 
>    </p>
> </div>
> 
> 
> did you somewhoe run the input  through an xml parser twice (which would
> cause your escaped newlines to get unescaped, and produce the output you
> state)
> 
> David
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________

Current Thread