This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Implementing simple XLinks using XSL


> 	<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]