writing to xpath string result
Brian Ryner <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Hi, One thing I've found that would be really helpful for xforms is, given data like: <foo> <bar name="blah">text</bar> </foo> and xforms input controls bound to: /foo/bar and /foo/bar@name to be able to evaluate that xpath expression and write new data to the resulting text node or attribute, without having to figure out which one it is (since xpath can do that anyway). Basically, to be able to set the stringValue attribute on the result. The semantics of this, at least for my purposes, would be pretty straightforward... it would only need to work for a single-node result, and if the expression points to the text node child of an element, it can blow away any existing children of the element and replace them with a new text node. Any thoughts on this? -Brian Ryner [email protected]