Re: writing to xpath string result

"David Landwehr" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Thanks for your time on this!

When writing a value from a form control to the instance data it is done using the rules for setvalue [1]. Reading the value from the instance to the form control is done as defined in [2]. When using the textContent from DOM Level 3 [3] it does, what my rewrap tried to explain, something different.

Best regards,
David

[1] http://www.w3.org/TR/xforms/slice10.html#action-setvalue
[2] http://www.w3.org/TR/xforms/slice8.html#ui-processing 
[3] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-textContent

----------------------------------------------------------------
David Landwehr                              [email protected] 
Novell, Inc.                              Phone: +45 33 98 15 04
Amaliegade 16C                              Fax: +45 70 20 15 17
DK-1256 Copenhagen K                       http://www.novell.com 
----------------------------------------------------------------

>>> Axel Hecht<[email protected]> 10/06/04 10:33 am >>>
David Landwehr wrote:
> Hi Brian,
> 
> I just want to be sure we are on the same page with this
> functionality. If you have mixed content like in the following
> instance
> 
> <data>My text <element>e1</element> </data>
> 
> and have the following ui: <xforms:input ref="/data"> 
> <xforms:label>Data</xforms:label> </xforms:input>
> 
> then ff you write 'My new text' into the form control the instance
> should be: <data>My new text <element>e1</element> </data>
> 
> and not
> 
> <data>My new text</data>
> 
> The part that worried me in your mail was the following sentence
> "...it can blow away any existing children of the element and replace
> them with a new text node."
> 
> Best regards, David
> 

(Bah, rewrap didn't really help :-/ )

How does that map to the string value of /data being
"My text
   e1
" ? Or does that matter in any way at all here?

I could use some links into the spec when talking about issues like 
this, I don't have the time to digest that thing in full these days. Sorry.

Axel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.