ZVON > >
Prev | Next |

5. Form of XPointer: full

This tutorial is obsolete. Please, use the new one.

Description

The specification defines one full form and two shorthand forms (which are abbreviations of the full one).




Full XPointer expression
Full XPointer expression may consist of one or more XPointer parts. (Or Schemes, but currently only XPointer scheme is allowed). Separation with whitespaces is not mandatory. The result of the first XPointer part whose evaluation (in left-to-right order) succeeds is taken to be the fragment located by XPointer as a whole.
XPointer: xpointer(//AAA/BBB[1]) xpointer(//AAA/BBB[2])
XPointer (alternative): xpointer(//AAA/BBB[1])xpointer(//AAA/BBB[2])

 <AAA>
   <BBB myid="b1" bbb="111">
     Text in the first element BBB.</BBB>
   <BBB myid="b2" bbb="222">
      Text in another element BBB.
     <DDD ddd="999">
       Text in more nested element.</DDD>
     <DDD ddd="888">
       Text in more nested element.</DDD>
     <DDD ddd="777">
       Text in more nested element.</DDD>
   </BBB>
   <CCC ccc="123" xxx="321">
     Again some text in some element.</CCC>
 </AAA>
  • X marks point (zero width)
  • This style marks the container node.
  • This style marks resulting locations.
  • X marks collapsed range (zero width)



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
answering service VoIP Internettelefonie DSL, SDSL, ADSL