[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XPointers to the start and the end of an element (not

Subject: XPointers to the start and the end of an element (not its content)?
From: bitte.um.hilfe@xxxxxxxxxxxxxxxx
Date: Mon, 05 Jun 2006 13:31:34 +0200
xpointers from html
Hi list,

Ibd have a ratter unusual but very simple question I think.
My problem is as follows:
Ibd have to place two XPointers in one and the same XML file to mark the space between both as the region of interest.  Consider for example the following source code snipped (original code doesnbt contain asterisk as well as question marks).

<div id="primarnav">
<a href="profil.html">Profil</a>
<div class="linkseparator"> | ?</div>
*<a href="angebote.html" class="activ">Angebote fC<r Unternehmen</a>
<div class="linkseparator"> | </div>
<a href="medien.html">Medien</a>
<div class="linkseparator"> | </div>
<a href="partnerinnen.html">PartnerInnen</a>**
<div class="linkseparator">?? | </div>
<a href="links.html">Links</a>
</div>

E.g. how could I set an XPointer exactly in front of the second <a> element (marked with * in the source code) or exactly behind an element like the 4th </a> (marked with **).

Is this doable at all? Because in my opinion XSL is made to navigate trough a given XML structure with the aim to access embedded content and thatbs the reason why it probably is not possible to access elements themselves (they are structure rather than contentb&).

At the moment the marking is done as follows:
? is the paraphrase for * and the same holds for ?? which is the paraphrase for **
This is doable, because Content within an Element is accessible for sure - by using the text() as well as the position() functions navigating is easy.

Does someone have a clue if it could work somehow?

with best regards

Tom

PS: using XSLT 2.0 - guess the processor doesn't matter for that question!?
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
      Ideal fC<r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.