I'm having some (more) trouble with namespaces in Xindice. Things seemed to
be working earlier, but not any more. Obviously, I'm misssing something.

I have a document which looks like this (sorry if the wrapping makes it hard
to read):

<space:tuple 
xmlns:space="http://www.fridgebuzz.com/2002-05-20/spacedoc-NB-RR.xsd";
expires="2002-12-31T09:00:00-05:00">
  <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/";
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
    <rdf:Description rdf:about="/designdocs/spec2.pdf">
      <dc:identifier>/designdocs/spec2.pdf</dc:identifier>
      <dc:date.created>2002-05-21T19:20:30+01:00</dc:date.created>
      <dc:date.modified>2002-05-23T17:18:16+01:00</dc:date.modified>
      <dc:title>Design Guidelines for site</dc:title>
      <dc:subject>Design, Specifications</dc:subject>
      <dc:description>Website Design Specification</dc:description>
      <dc:creator>My Company</dc:creator>
      <dc:publisher>My Company</dc:publisher>
      <dc:contributor>John Doe</dc:contributor>
      <dc:rights>Copyright 2002, My Company</dc:rights>
      <dc:type>Text</dc:type>
      <dc:format.medium>text/html</dc:format.medium>
      <dc:language>en</dc:language>
      <dc:coverage.spatial>CA</dc:coverage.spatial>
    </rdf:Description>
  </rdf:RDF>
</space:tuple>

I can insert this into Xindice and verify that it exists and is unaltered. I
can retrieve it with the following query (for example):

xindice xpath -c /db/mycollection -q
"/space:tuple[rdf:RDF/rdf:Description/dc:identifier]"

However, Xindice throws exceptions complaining about unmapped namespaces:

DEBUG> javax.xml.transform.TransformerException: Prefix must resolve to a
namespace: rdf
DEBUG> javax.xml.transform.TransformerException: Prefix must resolve to a
namespace: rdf
DEBUG> javax.xml.transform.TransformerException: Prefix must resolve to a
namespace: dc


As far as I can see, all namespaces are properly declared, and they are
preserved going in and coming out, but clearly something's not happy.

Can anyone point me in the right (actually, I'll take "any") direction?

Thanks in advance,

Vanessa

Reply via email to