- From: Jiri Jirat <Jiri.Jirat@idoox.com>
- Date: Tue, 21 Nov 2000 13:55:14 +0100
- To: www-xml-linking-comments@w3.org
Hello,
I prepared an XPointer tutorial at
http://www.zvon.org/xxl/xpointer/tutorial/OutputExamples/introduction.html
a few weeks ago.
Now I have been asked the following question:
If I want to select the point (marked X) just before the string-range
'another',
which expression is correct?
Is this correct?:
xpointer(string-range(//*,'another')[0])
Or should it look like this?:
xpointer(string-range(//*,'another')[1][0])
Or should there be some parentheses?
IMPORTANT: here, in this example, the location-set returned by
"string-range(//*,'another')"
consists just of ONE location.
Do I have to specify also that I want the location no. one from the
location set,
or it is not compulsory?
I could not find this in the specification.
===============================
Here is XML file:
===============================
<AAA>
<BBB bbb="111">
Text in the first element BBB.
</BBB>
<BBB bbb="222">
Text in Xanother element BBB.
<DDD ddd="999">
Text in more nested element.
</DDD>
</BBB>
<CCC ccc="123" xxx="321">
Again some text in some element.
</CCC>
</AAA>
===============================
May be, my question is not very clear, please, look at
http://www.zvon.org/xxl/xpointer/tutorial/OutputExamples/xml40_out.xml.html
and tell me your opinion.
Thank you very much for your help
Jirka Jirat
--
<name firstName="Jirka" surname="Jirat"/>
<mail> jiratj@idoox.com </mail>
<support> http://www.zvon.org </support>
<zvonMailingList> http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>
Received on Tuesday, 21 November 2000 07:57:06 UTC