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

Re: Retaining Entity refrence names in Output

Subject: Re: Retaining Entity refrence names in Output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 30 Sep 2005 11:23:14 +0100
writing a refrence
> Can writing a customed function do trick?

Not directly.

Basically you want to pick some unused unicode character slot and use
that in your result tree as an alias for your comb entity, then set up a
character map to write the character as &comb;.

Depending on what you are doing you can either just use the alias
character directly in your stylesheet or use xpath2's regular expression
replace() function to change your string to your alias character.

But really why do all this? the end result is that you get entity
references in your document, and so it's equivalent to the document
without references except that any xml parser processing the file has to
go to the extra work of loading the dtd and expanding all the
references.

Entity references are a great aid to hand authoring documents, but for
machine generated documents (such as the result of an xslt transform)
they generate more problems than they solve).

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.