hello,
yes it is strange, but i want the output document to be a valid "RDF" file. therefore i first created an ontology in Protege and then having a look at the .owl file revealed:
<rdf:RDF xmlns="http://www.sample.com/sample#"
xml:base="http://www.sample.com/sample/sample.owl"
xmlns:BuildingOntology="http://www.sample.com/sample/sample.owl#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<owl:Ontology rdf:about=""/>
That's the reason why i redefine the namespace with an # at the end, so that it looks this way in the end ;) .
thanks,
mario
Quote:
Originally Posted by samjudson
There is nothing to stop you using a different prefix you know. Simply define the one in your stylesheet to be xmlns:myxsd="http://www.w3.org/2001/XMLSchema" and the reference it as select="myxsd:schema".
I find it highly suspicious though that you are redefining the XMLSchema namespace with a # at the end - This isn't the correct namespace for the XML Schema - and yes, that # would cause other applications to fail..
Also, you haven't defined the rdf prefix anywhere.
|