Page 1 of 1

XProc and XML entities

Posted: Sun Dec 17, 2017 11:00 am
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

Re: XProc and XML entities

Posted: Mon Dec 18, 2017 10:35 am
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