You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2007/11/21 20:41:03 UTC
DO NOT REPLY [Bug 43932] New: - Form Editor throws exception due to missing namespace
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
Summary: Form Editor throws exception due to missing namespace
Product: Lenya
Version: 2.0
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Form Editor
AssignedTo: dev@lenya.apache.org
ReportedBy: jann.forrer@id.unizh.ch
If i start to edit a document with Kupu or BXE and save the changes the
namespaces are removed from the html Tag and the Form Editor throws an exception
if i try to save changes
html Tag Before editing (let's say) with Kupu:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
>
After editing with Kupu:
<html xmlns="http://www.w3.org/1999/xhtml">
The Error itself is thrown by
org.apache.lenya.cms.editors.form.FormsEditor.java (line 397) and the problem is
within the
org.xmldb.xupdate.lexus.XUpdateQueryImpl execute method.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From andreas@apache.org 2007-11-21 12:34 -------
The XUpdate statements in the form contain namespace prefixes which are not
declared in the document:
<input value="true" name="<xupdate:remove
select="/*/xhtml:body/xhtml:h1[@tagID='tag.0.1.0']"/>"
That's why the XUpdate query fails.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From jann.forrer@id.unizh.ch 2007-11-21 11:43 -------
I am not sure how to fix it. Is this rather a problem of the save method of the
Wysiwyg editors?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From andreas@apache.org 2007-11-21 13:56 -------
http://www.mail-archive.com/xupdate-dev@xmldb.org/msg00295.html
"3) I will attempt to modify how namespace prefixes are resolved so that
namespace declarations *within the XUpdate <modifications> XML* will be
used rather than the declarations within the target document(s). This
change may be within Xindice code or it could be in the Lexus code. I'm
not sure how to go about getting the latest Lexus code, or how to submit
changes if it becomes necessary to do so: Any advice on how to proceed
with possible changes in Lexus code would be appreciated."
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From andreas@apache.org 2007-11-21 11:58 -------
I get
org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Das Pr�fix muss in einen
Namensbereich aufgel�st werden: xhtml
at org.apache.xpath.compiler.XPathParser.errorForDOM3(XPathParser.java:653)
at org.apache.xpath.compiler.Lexer.mapNSTokens(Lexer.java:638)
at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:265)
at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:96)
at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:110)
at org.apache.xpath.XPath.<init>(XPath.java:176)
at org.apache.xpath.XPathAPI.eval(XPathAPI.java:273)
at
org.xmldb.common.xml.queries.xalan2.XPathQueryImpl.execute(XPathQueryImpl.java:109)
at org.xmldb.xupdate.lexus.commands.CommandObject.selectNodes(Unknown Source)
at org.xmldb.xupdate.lexus.commands.InsertAfterCommand.execute(Unknown Source)
at org.xmldb.xupdate.lexus.XUpdateQueryImpl.execute(Unknown Source)
at
org.apache.lenya.cms.editors.forms.FormsEditor.processElements(FormsEditor.java:397)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From andreas@apache.org 2007-11-21 12:24 -------
The XUpdate statement looks like this:
<?xml version="1.0"?>
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate"
xmlns="http://www.w3.org/1999/xhtml">
<xupdate:insert-after select="/*/xhtml:body/xhtml:h1[@tagID='tag.0.1.0'] ">
<xupdate:element name="xhtml:h1"
namespace="http://www.w3.org/1999/xhtml"><xupdate:attribute
name="tagID">temp</xupdate:attribute>Hello and welcome to the Lenya
default publication!
���� foo</xupdate:element>
</xupdate:insert-after>
<xupdate:remove select="/*/xhtml:body/xhtml:h1[@tagID='tag.0.1.0'] "/>
<xupdate:update select="/*/xhtml:body/xhtml:h1[@tagID='temp']/@tagID
">tag.0.1.0</xupdate:update>
</xupdate:modifications>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From andreas@apache.org 2007-11-21 14:00 -------
It doesn't work even when the namespaces are declared in the XUpdate query:
<?xml version="1.0"?>
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate"
xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
<xupdate:insert-after select="/*/xhtml:body/xhtml:h1[@tagID='tag.0.1.0'] ">
<xupdate:element name="xhtml:h1"
namespace="http://www.w3.org/1999/xhtml"><xupdate:attribute
name="tagID">temp</xupdate:attribute>Hello and welcome to the Lenya
default publication!
���� asdf</xupdate:element>
</xupdate:insert-after>
<xupdate:remove select="/*/xhtml:body/xhtml:h1[@tagID='tag.0.1.0'] "/>
<xupdate:update select="/*/xhtml:body/xhtml:h1[@tagID='temp']/@tagID
">tag.0.1.0</xupdate:update>
</xupdate:modifications>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From andreas@apache.org 2007-11-21 12:48 -------
The prefixes are hardcoded in
src/pubs/default/lenya/modules/editors/usecases/forms/xhtml.xsl
----
<namespace prefix="xhtml" uri="http://www.w3.org/1999/xhtml"/>
<namespace prefix="lenya" uri="http://apache.org/cocoon/lenya/page-envelope/1.0"/>
<namespace prefix="dc" uri="http://purl.org/dc/elements/1.1/"/>
<node name="Title"
select="/xhtml:html/lenya:meta/dc:title[@tagID='{lenya:meta/dc:title/@tagID}']">
<content><input type="text" name="<xupdate:update
select="/xhtml:html/lenya:meta/dc:title[@tagID='{lenya:meta/dc:title/@tagID}']">"
size="40"><xsl:attribute name="value"><xsl:value-of
select="lenya:meta/dc:title"/></xsl:attribute></input></content>
</node>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
andreas@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From andreas@apache.org 2007-11-21 16:42 -------
Should be fixed in revision 597275.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 43932] - Form Editor throws exception due to missing namespace
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43932
------- Additional Comments From andreas@apache.org 2007-11-21 12:00 -------
IMO it's a forms editor problem. The documents are fine, and the forms editor
complains about the XHTML namespace.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org