You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Askild Aaberg Olsen <as...@xangeli.com> on 2005/05/16 19:05:15 UTC
[CForms] Binding to attributes in namespace
I have problems binding to an attribute in a namespace. Binding to
elements in the same namespace or attributes without namespaces works
fine, but when I bind to a qualified attribute I get the following error:
org.apache.commons.jxpath.JXPathException: Exception trying to create
xpath @xan:name; Unknown namespace prefix: xan
(I'm trying to bind to the attribute @xan:name, which is declared in the
namespace 'http://www.xangeli.com')
Has anyone else experienced this?
Askild
-
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [CForms] Binding to attributes in namespace
Posted by Askild Aaberg Olsen <as...@xangeli.com>.
Askild Aaberg Olsen wrote:
> I have problems binding to an attribute in a namespace. Binding to
> elements in the same namespace or attributes without namespaces works
> fine, but when I bind to a qualified attribute I get the following error:
>
> org.apache.commons.jxpath.JXPathException: Exception trying to create
> xpath @xan:name; Unknown namespace prefix: xan
>
> (I'm trying to bind to the attribute @xan:name, which is declared in
> the namespace 'http://www.xangeli.com')
Answering my own question, this seems to be caused by
pipelineUtil.processToDOM not beeing able to recognize attributes in a
namespace. I use this method to generate the document from a pipeline,
before it is bound to the CForm.
I will file a report in bugzilla, as soon as i have made a proper test-case.
Askild
-
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org