This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
questions regarding the use of position()
- From: "=?big5?B?qkwgpGyq5A==?=" <minikittygo at hotmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 31 Jan 2002 19:53:03 +0000
- Subject: [xsl] questions regarding the use of position()
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi
i got struck with some of my word and if possible i would love some
guidelances over it...
suppose i have a structure like this....
<Main>
<head>
<eye>green</eye>
<hair>grey</hair>
</head>
<body1>
<arm>left</arm>
</body1>
</Main>
<Main>
....
there are two questions;
firstly, is there a way to refer back to the main position when you are
looking at its child element? e.g.
<xsl:template match="body1">
the position of main is <xsl:value-of select="position()"/>
</xsl:template>
this approach will only give the position of the body1, but is there are
ways to display the position of main when you are in the body1 template?
secondly, is there are ways of creating an id for the body1 element? (how
about the use of xsl:id? not so sure about this)
thanks ever so much
Regards
Kit
_________________________________________________________________
使用 MSN Messenger,與朋友在線上聊天:http://messenger.microsoft.com/tc。
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list