OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: XML-LINK implementation

[ Lists Home | Date Index | Thread Index ]
  • From: James Clark <jjc@jclark.com>
  • To: xml-dev@ic.ac.uk
  • Date: Sat, 12 Apr 1997 10:31:37 +0700

At 21:31 11/04/97 GMT, Peter Murray-Rust wrote:

>My understanding of PRECEDING is that it can choose from 'the set of all 
>elements and strings in the entire document which occur or begin before the 
>location source'.  So in the example:
><A ID="A">
>  <B ID="B">
>    Bstring
>  </B>
>  <C ID="C">
>    Cstring
>    <D ID="D"/>
>    <E ID="E"/>
>    <F ID="F"/>
>  </C>
>I'd be grateful to know if I've got these right:
>ID(D)PREVIOUS(1) gives 'CString'
>ID(D)PREVIOUS(2) fails
>ID(F)PREVIOUS(-2) gives <D>

One might think so, but since C has mixed content and no white-space in
mixed content is automatically ignored, the white-space following the D and
E elements will be data and hence constitute pseudo-elements.  Thus
ID(F)PREVIOUS(-2) will actually designate E.


xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS