xsl-list
[Top] [All Lists]

Re: [xsl] Escaped canonical XML?

2014-02-27 08:20:28
I'm sure that most people on this list, like me, answer a question if they know 
the answer, and keep silent if they don't.

It's rare for a question to go unanswered, but this is a little specialised...

Michael Kay
Saxonica

On 27 Feb 2014, at 12:42, Martynas Jusevičius 
<martynas(_at_)graphity(_dot_)org> wrote:

Hey again. Did my email got lost or has nobody come across a similar
problem? Maybe I'm using a wrong approach?

On Tue, Feb 25, 2014 at 5:16 PM, Martynas Jusevičius
<martynas(_at_)graphity(_dot_)org> wrote:
Hey,

I have a stylesheet that transforms TEI to TriX, which is currently
the only (and non-standard) XML serialization for RDF datasets with
named graphs [1].

The issue is that TriX format expects escaped XML literals, while RDF
data model expects canonical XML literals. How do I produce a
combination of both?

Currently I'm using xml-to-string by Evan Lenz [2] to escape the XML
literals. I wonder if it can be modified to produce a canonical
version as well? There is $use-empty-syntax parameter that might help,
but there are many more rules in canonicalization, as far as I know.

Suggestions appreciated.

[1] http://www.w3.org/2004/03/trix/
[2] http://lenzconsulting.com/xml-to-string/

Martynas
graphityhq.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>