XPath Sandbox bugs?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

XPath Sandbox bugs?

Richard Braman
Message
I tried doing some of the x3schools XPath sutorial sample in the Xforms and I got a number of errors on what they said was valid XPath
Some worked, but some of the obvious one
 
XForms error: The node "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@1a090b1 [Element: <span uri: http://www.w3.org/1999/xhtml attributes: [org.dom4j.util.UserDataAttribute@7b91d2 [Attribute: name class value "cd"]]/>] userData: oxf:/config/theme/format.xpl, line 34, column 43" could not be added to the branch "null" because: Cannot add another element to this Document as it already has a root element of: span
 

Richard Braman
[hidden email]
561.748.4002 (voice)

http://www.taxcodesoftware.org
Free Open Source Tax Software

 


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XPath Sandbox bugs?

Erik Bruchez
Administrator
This was a bug in the XPath sandbox, which I fixed.

Note that this error typically occurs when somebody is trying to create
a document with several root elements, which is illegal.

-Erik

Richard Braman wrote:

> I tried doing some of the x3schools XPath sutorial sample in the Xforms
> and I got a number of errors on what they said was valid XPath
> http://www.w3schools.com/xpath/xpath_syntax.asp
> Some worked, but some of the obvious one
>  
> XForms error: The node
> "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@1a090b1 [Element: <span
> uri: http://www.w3.org/1999/xhtml attributes:
> [org.dom4j.util.UserDataAttribute@7b91d2 [Attribute: name class value
> "cd"]]/>] userData: oxf:/config/theme/format.xpl, line 34, column 43"
> could not be added to the branch "null" because: Cannot add another
> element to this Document as it already has a root element of: span
>  
>
> Richard Braman
> mailto:[hidden email]
> 561.748.4002 (voice)
>
> http://www.taxcodesoftware.org <http://www.taxcodesoftware.org/>
> Free Open Source Tax Software



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: XPath Sandbox bugs?

Richard Braman
I was using just one root element, and it is still occuring on the
sandbox on orbeon.com.  I sit just fixed in CVS?

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Thursday, February 23, 2006 9:25 AM
To: [hidden email]
Subject: Re: [ops-users] XPath Sandbox bugs?


This was a bug in the XPath sandbox, which I fixed.

Note that this error typically occurs when somebody is trying to create
a document with several root elements, which is illegal.

-Erik

Richard Braman wrote:
> I tried doing some of the x3schools XPath sutorial sample in the
> Xforms
> and I got a number of errors on what they said was valid XPath
> http://www.w3schools.com/xpath/xpath_syntax.asp
> Some worked, but some of the obvious one
>  
> XForms error: The node
> "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@1a090b1 [Element:
<span

> uri: http://www.w3.org/1999/xhtml attributes:
> [org.dom4j.util.UserDataAttribute@7b91d2 [Attribute: name class value
> "cd"]]/>] userData: oxf:/config/theme/format.xpl, line 34, column 43"
> could not be added to the branch "null" because: Cannot add another
> element to this Document as it already has a root element of: span
>  
>
> Richard Braman
> mailto:[hidden email]
> 561.748.4002 (voice)
>
> http://www.taxcodesoftware.org <http://www.taxcodesoftware.org/> Free
> Open Source Tax Software





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XPath Sandbox bugs?

Erik Bruchez
Administrator
Yes, the fix is only in CVS for now. The type of expressions that
wouldn't work:

   /bookstore/book/title | //price

-Erik

Richard Braman wrote:

> I was using just one root element, and it is still occuring on the
> sandbox on orbeon.com.  I sit just fixed in CVS?
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: Thursday, February 23, 2006 9:25 AM
> To: [hidden email]
> Subject: Re: [ops-users] XPath Sandbox bugs?
>
>
> This was a bug in the XPath sandbox, which I fixed.
>
> Note that this error typically occurs when somebody is trying to create
> a document with several root elements, which is illegal.
>
> -Erik
>
> Richard Braman wrote:
>> I tried doing some of the x3schools XPath sutorial sample in the
>> Xforms
>> and I got a number of errors on what they said was valid XPath
>> http://www.w3schools.com/xpath/xpath_syntax.asp
>> Some worked, but some of the obvious one
>>  
>> XForms error: The node
>> "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@1a090b1 [Element:
> <span
>> uri: http://www.w3.org/1999/xhtml attributes:
>> [org.dom4j.util.UserDataAttribute@7b91d2 [Attribute: name class value
>> "cd"]]/>] userData: oxf:/config/theme/format.xpl, line 34, column 43"
>> could not be added to the branch "null" because: Cannot add another
>> element to this Document as it already has a root element of: span
>>  
>>
>> Richard Braman
>> mailto:[hidden email]
>> 561.748.4002 (voice)
>>
>> http://www.taxcodesoftware.org <http://www.taxcodesoftware.org/> Free
>> Open Source Tax Software
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws