XProc and XML entities

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
ttasovac
Posts: 40

XProc and XML entities

Sun Dec 17, 2017 11:00 am

Hi,

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

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: 5380

Re: XProc and XML entities

Mon Dec 18, 2017 10:35 am

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/19.1/ug-editor/topics/refactoring-xml-documents-x-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

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 1 guest