Ah, thank you Keshlam. 

In that case, let me revert to my source problem; the problem which I was 
hoping to solve with xsl:xpath-default-namespace attribute :-) 

I have an XML (really an OWL) document which has this element at the top: 

<rdf:RDF xmlns="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#";
   xml:base="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#"; 
   xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#";
   xmlns:owl="http://www.w3.org/2002/07/owl#";
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";>

Inside the document are elements like this: 

<owl:Class rdf:ID="Benzo_a_pyrene-7_8-diol_9_10-Epoxide">
  <rdfs:label>Benzo(a)pyrene-7,8-diol 9,10-Epoxide</rdfs:label>
  <code>C196</code>
  <rdfs:subClassOf rdf:resource="#DNA_Adduct_Forming_Agent"/>
  <rdfs:subClassOf rdf:resource="#Intercalating_Agent"/>
  ........
</owl:Class>


Using Xpath inside of Xalan, I am able to access the nodes that are prefixed 
with a namespace (such as rdfs:subClassOf  or  rdf:resource). But I am unable 
to access the <code> element's contents because it has no namespace prefix.  
For example, 

    "owl:Class/code" does not work. 

How do I formulate an Xpath expression that accesses the <code> element? 

-Deio

-------------- Original message -------------- 
From: [EMAIL PROTECTED] 

Xalan is an XSLT 1.0 processor. xsl:xpath-default-namespace is not a 1.0 
directive.

Reply via email to