[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Replacing character entities

Subject: Re: Replacing character entities
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 15 Feb 2005 16:37:52 GMT
replacing xml entities
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.