XProc and XML entities

Having trouble installing Oxygen? Got a bug to report? Post it all here.
ttasovac
Posts: 82
Joined: Fri Dec 19, 2003 6:02 pm

XProc and XML entities

Post by ttasovac »

Hi,

I have an XSLT2 stylesheet which uses xsl:character-map to explicitly encode some whitespaces as  

When I include this stylesheet into an XProc pipeline in oXygen, the XML entities are resolved.

Is there a way to control the resolution of XML entities in XProc using oXygen?

All best,
Toma
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: XProc and XML entities

Post by Radu »

Hi Toma,
Is there a way to control the resolution of XML entities in XProc using oXygen?
Oxygen comes bundled with the Calabash XProc processor:

http://xmlcalabash.com/

In my opinion any XSLT-based processing expands XML entities and this cannot be controlled as XSLT-based processing was not really made for refactoring purposes. If you want you can register on the Calabash "xproc-dev" list and ask around.

Oxygen does have XML refactor operations which allow you to apply an XSLT or XQuery over an XML document's contents and preserve the XML DOCTYPE and entity references:

https://www.oxygenxml.com/doc/versions/ ... tools.html

We do this by first escaping the entity references in the XML, then apply the XSLT and then unescaping them.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply