Subject: Re: [xsl] Retaining Entity refrence names in Output From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 30 Sep 2005 11:23:14 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Retaining Entity refrence, Michael Kay | Thread | [xsl] Winindows XP x64 Edition, Arthur Maloney |
RE: [xsl] Retaining Entity refrence, Michael Kay | Date | Re: [xsl] performance of very very , James Fuller |
Month |