Subject: Re: [xsl] How to modify a RDF document and preserve the <!DOCTYPE rdf:RDF[ and entity references? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Sun, 06 Mar 2011 14:33:16 +0100 |
Kind regards, Abel Braaksma
Hi,
What do I need to add to an xslt 2.0 stylesheet that modifies an RDF file which has a doctype declaration with entity references. I'm not certain how to preserve the DOCTYPE here exactly as shown and also preserve the entity references such&wiki; within the document.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE rdf:RDF[ <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'> <!ENTITY owl 'http://www.w3.org/2002/07/owl#'> <!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'> <!ENTITY wiki 'http://p13.itawiki.org/wiki/Special:URIResolver/'> <!ENTITY property 'http://p13.itawiki.org/wiki/Special:URIResolver/Property-3A'> <!ENTITY wikiurl 'http://localhost/wiki/'> ]>
<rdf:RDF xmlns:rdf="&rdf;" xmlns:rdfs="&rdfs;" xmlns:owl ="&owl;" xmlns:swivt="&swivt;" xmlns:wiki="&wiki;" xmlns:property="&property;">
Currently this is being replaced <property:Office rdf:resource="&wiki;BX"/>
as this in my xslt. <property:Office rdf:resource="http://p13.itawiki.org/wiki/Special:URIResolver/BX"/>
I've been reading some old posts on this but I haven't been able to key in on the right solution via google.
Regards
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to modify a RDF docum, Syd Bauman | Thread | [xsl] xsl-fo problem - list item in, Trevor Nicholls |
Re: [xsl] How to modify a RDF docum, Andrew Welch | Date | Re: [xsl] How to modify a RDF docum, Alex Muir |
Month |