Lots of nodes like
<loc hl="lower" side="right" pos="5">date</loc>
I'm generating SVG.
I want to draw out each loc node, two items
a circle, position fixed, ie. overlapping, and
text, the date, which does not overlap.
Hence I need to find out, roughly
whether the context-item() is 1,2,3,4 etc, in
the sequence of all loc elements with identical hl, side and pos
attributes.
Then I can shift the x or y index to offset the text round the circles
with a
variable name='set'
select='//loc[(_at_)hl=$context/@hl and @side=$context/@side and
@pos=$context/@pos]'
What's not working as I expect is index-of($set,context-item())
since (I guess) it uses typed value, not the node itself?
(Always returns 1)
Any suggestions how I might obtain such a position please?
Regards DaveP.
**** snip here *****
-
NOTICE: The information contained in this email and any attachments is
confidential and may be legally privileged. If you are not the
intended recipient you are hereby notified that you must not use,
disclose, distribute, copy, print or rely on this email's content. If
you are not the intended recipient, please notify the sender
immediately and then delete the email and any attachments from your
system.
RNIB has made strenuous efforts to ensure that emails and any
attachments generated by its staff are free from viruses. However, it
cannot accept any responsibility for any viruses which are
transmitted. We therefore recommend you scan all attachments.
Please note that the statements and views expressed in this email
and any attachments are those of the author and do not necessarily
represent those of RNIB.
RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list