[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xpointer - just a location mechanism?
Frank Boumphrey wrote: > > XPointer uses the 'to' keyword to isolate out a section of the document eg > someurl.xml#id1 to id2. > So, does that mean that if I want to use the xLink embed capability then I must necessarily use the 'to' facility in my xpointer? Is it an error if I don't use the 'to' facility? The 'to' xpointer facility is tied to the embed xLink capability? /Roger > Frank > ----- Original Message ----- > From: Roger L. Costello <costello@m...> > To: <xml-dev@i...> > Sent: Thursday, December 16, 1999 11:34 AM > Subject: xpointer - just a location mechanism? > > > Hi Folks, > > > > I am making my way through the latest xpointer spec. I may be missing > > something (I am not finished reading it) but it appears that the spec > > does not support the xLink capability of embedding[1] a portion of an > > XML document into the currently active document. Consider this simple > > xLink with a xpointer: > > > > <xlink:simple > > href="http://www.somewhere.com/BookCatalogue.xml#xpointer(/Book[1])" > > show="parsed"/> > > > > This hyperlink should result in extracting out of BookCatalogue.xml the > > subtree referenced by the first Book element, and embedding it into the > > current active document. (This is my understanding of how this should > > work. Please correct me if I am in error.) > > > > The xpointer spec states that an XPointer is simply a location > > mechanism. In section 2.4 it states: > > > > "XPointers are not a general query mechanism, they are a specification > > of document locations." > > > > I read this as saying "an xpointer defines how to move a cursor around > > in an XML document. It does not describe what a location means in terms > > of nodes (or strings) being referenced." > > > > If the spec doesn't describe what the movement of a cursor to a location > > means in terms of node lists (or strings) then how is it going to > > support the xLink embed mechanism? /Roger > > > > > > [1] From the xLink spec: "The parsed option (of the show attribute), > > relating directly to the XML concept of a parsed entity, indicates that > > the content should be integrated into the document from which the link > > was actuated." > > > > > > xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... > > Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on > CD-ROM/ISBN 981-02-3594-1 > > To unsubscribe, mailto:majordomo@i... the following message; > > unsubscribe xml-dev > > To subscribe to the digests, mailto:majordomo@i... the following > message; > > subscribe xml-dev-digest > > List coordinator, Henry Rzepa (mailto:rzepa@i...) > > xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1 To unsubscribe, mailto:majordomo@i... the following message; unsubscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|