This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Implementing simple XLinks using XSL
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Implementing simple XLinks using XSL
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 19 Dec 2000 09:50:44 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <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