This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] variables in parents : xsl
- From: Wim Lemkens <wim dot lemkens at tiscali dot be>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sun, 4 Jul 2004 23:42:39 +0200
- Subject: [docbook-apps] variables in parents : xsl
Hello,
This maybe isn't entirely the correct place to ask.
But how can I access variables from parents in xsl?
Eg.: I have a custom list where the list itself has an id. Now I want to be
able to let every listitem now the id of that list.
<xsl:template match="customlist">
<xsl:variable name="listid">
<xsl:value-of select="generate-id()"/>
</xsl:variable>
</xsl:template>
<xsl:template match="customlist/listitem">
<xsl:copy-of select="$listid"/>
</xsl:template>
Thanks,
Wim Lemkens
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.