W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > July to September 2000

Re: here() function

From: Eve L. Maler <Eve.Maler@east.sun.com>
Date: Thu, 24 Aug 2000 17:39:47 -0400
Message-Id: <4.3.2.7.2.20000824173736.00baf8f0@abnaki.east.sun.com>
To: "John Boyer" <jboyer@PureEdge.com>
Cc: "Eve L. Maler" <Eve.Maler@east.sun.com>, "Joseph Reagle" <reagle@w3.org>, "XML DSig" <w3c-ietf-xmldsig@w3.org>, www-xml-linking-comments@w3.org, Daniel Veillard <Daniel.Veillard@w3.org>
I personally had been (wrongly) thinking that XPointers always appear in 
attribute values, but of course there's no constraint that they do 
so...  So your questions are good ones.  I've copied the 
www-xml-linking-comments list in order to record this in our archive, and 
Daniel Veillard in order to ask him to add it to the issues list.

         Eve

At 02:33 PM 8/24/00 -0700, John Boyer wrote:
>Hi Eve,
>
>Some time ago, Kent TAMURA in our group asked, What should here() return
>when it appears as follows:
>
><e> h<!-- yikes -->ere()/...</e>
>
>I would like to add to that by asking, what should happen below:
>
><e>here()/... | <!-- yikes times two --> here()/...</e>
>
>In the first case, I think the text node containing the 'h' should be
>returned.  In the second case, we could have each instance of here() return
>the text node containing it, but it's a bit weird that two calls to a
>function in the same expression actually return different values.
>
>This brings up still a third question about the XPath (and hence the
>XPointer) data model.  I have always assumed that building an XPath
>implementation requires an XML processor that retains comments since comment
>nodes must be represented in the data model.  But, if I execute an XPath
>expression that removes all comment nodes, do consecutive text nodes get
>merged in the resultant node-set? The XPath spec indicates that they are
>merged, but I thought that was only on input.  Now I wonder...
>
>Thanks,
>John Boyer
>Development Team Leader,
>Distributed Processing and XML
>PureEdge Solutions Inc.
>Creating Binding E-Commerce
>v: 250-479-8334, ext. 143  f: 250-479-3772
>1-888-517-2675   http://www.PureEdge.com <http://www.pureedge.com/>

--
Eve Maler                                    +1 781 442 3190
Sun Microsystems XML Technology Center    elm @ east.sun.com
Received on Thursday, 24 August 2000 17:38:35 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:10 GMT