On Wed, 2008-12-24 at 13:12 -0800, Fred Cisin wrote:
Thank you, but not unless there are aspects of it that
I'm unaware of.
# lets me embed markers or symbolic addresses within files. I'm looking
for a way to point to a location ("offset"?) within a file that I may not
have edit access to, to be able to do realtime calculated pointers, etc.
with the offset being within the URL, NOT embedded within the HTML file.
This is what XPath is designed to do. It's a query language which works
within XML documents (so XHTML, not sure how well it would go on HTML).
This allows you to point to (say) the 5th <p>...</p> block following the
8th <h2>..</h2> heading. I think this is:
/body/descendant::h2[8]/following::p[5]
They probably exist, but I can't find a site that lets you enter a URL
and an XPath query and gives you the result, but there are (e.g.)
Firefox addons to do this, and a few sites that let you enter some XML
text and then try the XPath query, such as:
http://www.bit-101.com/xpath/
--
Lawrence Wilkinson lawrence at ljw.me.uk
The IBM 360/30 page
http://www.ljw.me.uk/ibm360