Subject: RE: Implementing simple XLinks using XSL
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 19 Dec 2000 09:50:44 -0000
|
> <xsl:copy-of select="document(substring-before(@xlink:href,
> '#'))//id(substring-after(@xlink:href, '#')) />
You cant use a function call (id()) on the rhs of the "//" operator: the
only thing allowed here is a step.
You have to split this up:
<xsl:variable name="xlink" select="."/>
<xsl:for-each select="document(substring-before(@xlink:href, '#'))">
<xsl:copy-of select="id(substring-after($xlink/@xlink:href, '#'))"/>
</xsl:for-each>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|