I've determined why the problem is occuring: the retrieved document conatins SRC:COL and SRC:KEY attributes in the root element. When I attempt to store this document again, I get the error message. Can xindice be configured to NOT add these attributes? Or is there a "correct" way to retrieve update and restore a document?
[EMAIL PROTECTED]
tate.ga.us To:
[email protected]
cc:
03/29/2004 09:32 Subject: Re: XPATH falure -
"COL" attribute and namespace
AM
Please respond to
xindice-users
Additional details:
1) 1.1b3 - downloaded source kit from apache mirror and built locally.
2) The xindices instance is running under TomCat 5.0
3) I'm using XMLBeans to construct the document whose content is: (See
attached file: new_Pardon_application_form.xml)
Following the addition of an EXHIBIT element the requlting document is:
(See attached file: updated_Pardon_application_form.xml)
I have verified that creating the original docuemnt with all elements does
not result in this error.
At this point XQuery returns the "COL" attribute error message.
Thanks again
Terry
Rosenbaum To:
[email protected]
<[EMAIL PROTECTED] cc:
com> Subject: Re: XPATH falure -
"COL" attribute and namespace
03/29/2004
09:03 AM
Please respond
to
xindice-users
> Is there something I'm missing?
Yes. For us to help you, we need at least
these pieces of missing information:
1) the version of Xindice you are using
2) a more detailed description of how you are using Xindice
(command-line, XML-RPC, programatically (embedded), etc.)
3) a sample of the document causing the problem (may be abridged to
contain the relevant info)
-Terry
[EMAIL PROTECTED] wrote:
>Hello, I'm new to xindice and am having a name space related problem.
>
>
>1) I create a resource and store is under a key. I can retrieve the
>resource and display the contained document.
>
>2) I set the namespacce and retrieve the resource by key using the XMLDB
>interface, insert a new element into the document , and re-insert the
>resource at the same key. When I attempt to retrieve the document using
>XPATH I receive the following error:
>
>[Fatal Error] :2:367: Attribute "col" bound to namespace
>"http://xml.apache.org/xindice/Query" was already specified for element
>"ns:test".
>org.xml.sax.SAXParseException: Attribute "col" bound to namespace
>"http://xml.apache.org/xindice/Query" was already specified for element
>"ns:test".
>
>Is there something I'm missing?
>
>Thanks
>
>
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Georgia State Board of Pardons and Paroles
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Georgia State Board of Pardons and Paroles
(See attached file: new_Pardon_application_form.xml)(See attached file:
updated_Pardon_application_form.xml)
new_Pardon_application_form.xml
Description: Binary data
updated_Pardon_application_form.xml
Description: Binary data
