[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How to modify a RDF document and preserve the <!DOCTYP

Subject: How to modify a RDF document and preserve the <!DOCTYPE rdf:RDF[ and entity references?
From: Alex Muir <alex.g.muir@xxxxxxxxx>
Date: Sun, 6 Mar 2011 12:27:40 +0000
 How to modify a RDF document and preserve the <!DOCTYP
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
-- 
Alex
-----
Currently:
Freelance Software Engineer 6+ yrs exp

Previously:
https://sites.google.com/a/utg.edu.gm/alex/


A Bafila, is two rivers flowing together as one:
http://www.facebook.com/pages/Bafila/125611807494851

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.