I can't comment on the Xindice side of this, but from an XML perspective, the prefix "xmlns" can't be used as a namespace prefix, as it's a reserved word. So you could never have "xmlns:xmlns" (or "xmlns:xml", "xmlns:XML", "xmlns:Xml", etc.) This might be obvious, but you didn't mention it so I thought I would. That's the reason for the "cannot be bound" message AFAIK.
This may help you debug the problem, dunno.
Murray
[EMAIL PROTECTED] wrote:
Hi
I've just spent some hours getting to the bottom of a problem owing to the fact that Xindice seems to be creating the following namespace definition in one of my collections following an XUpdate:
xmlns:xmlns="null"
This is appearing thanks to an XUpdate request which inserts an XSL stylesheet into Xindice via a java program. An example of the XUpdate request is:
<xupdate:modifications version="1.0"
xmlns:xupdate="http://www.xmldb.org/xupdate"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xupdate:append
select="presenter/presentations/[EMAIL PROTECTED]'presentation-4']/transformations/">
<xupdate:element name="transformation">
<xupdate:attribute name="formatID">format-1</xupdate:attribute>
<xupdate:attribute name="deviceID">device-4</xupdate:attribute>
<xupdate:element name="xsl:stylesheet">
<xupdate:attribute name="version">1.0</xupdate:attribute>
<xupdate:attribute
name="xmlns:xsl">http://www.w3.org/1999/XSL/Transform</xupdate:attribute>
<xupdate:element name="xsl:template">
<xupdate:attribute name="match">/</xupdate:attribute>
The nature of the problem seems to be that following a successful update tomcat then collapses with the following error in the logs the next time the database is read:
[Fatal Error] :2:235: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.
(This seems to be a xerces-generated error message)
To add to the confusion surrounding this, when a command-line query was submitted e.g.:
xindice xpath_query -v -c /db/xml-it/presenters -q "//name/"
Xindice would respond with:
ERROR : Query error [WARN] core - -org.xmldb.api.base.XMLDBException: Query error
. which seems to imply that Xindice is aware of a problem despite the XPath being OK.
If there's anyone who can help me with this I'd be very grateful.
gef
Using: RedHat 7.3 Java 1.4.1_02 (rpm) Xindice 1.1b2 Tomcat 4.1.24 Cocoon 2.1m2
p.s. At http://xml.apache.org/xindice/mail.html there are two seemingly inappropriate references to cocoon.
--
Murray
........................................................................... Murray Altheim http://kmi.open.ac.uk/people/murray/ Knowledge Media Institute The Open University, Milton Keynes, Bucks, MK7 6AA, UK .
"There have been ongoing problems with cockroaches getting on the
floor... they can wreak havoc with 350,000 dominoes." -- Brian Kim
http://www.guardian.co.uk/silly/story/0,10821,1017133,00.html