You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by La...@pap.state.ga.us on 2004/03/29 15:55:56 UTC
XPATH falure - "COL" attribute and namespace
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
Re: XPATH falure - "COL" attribute and namespace
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Lavon_Lofton@pap.state.ga.us wrote:
>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 tried inserting this document with the current CVS version of the
Xindice and it went Ok. May be you should upgrade to 1.1b4-dev (current
CVS).
Vadim
>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: xindice-users@xml.apache.org
> <Terry@amicas. 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
>
>Lavon_Lofton@pap.state.ga.us 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
>
>
>
>
Re: XPATH falure - "COL" attribute and namespace
Posted by La...@pap.state.ga.us.
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?
Lavon_Lofton@pap.s
tate.ga.us To: xindice-users@xml.apache.org
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:
xindice-users@xml.apache.org
<Terry@amicas. 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
Lavon_Lofton@pap.state.ga.us 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)
Re: XPATH falure - "COL" attribute and namespace
Posted by La...@pap.state.ga.us.
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: xindice-users@xml.apache.org
<Terry@amicas. 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
Lavon_Lofton@pap.state.ga.us 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
Re: XPATH falure - "COL" attribute and namespace
Posted by Terry Rosenbaum <Te...@amicas.com>.
> 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
Lavon_Lofton@pap.state.ga.us 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
>
>
>
>