2008/5/31 Ganesh Babu N <nbabuganesh(_at_)gmail(_dot_)com>:
I have copied the below code into my stylesheet. and it is not
working. Can you help in getting the output. Anything i have to modify
from this.
<xsl:key name="role-by-id" match="pbl:role" use="@xml:id"/>
<xsl:template match="pbl:roleref>
<xsl:value-of select="key('role-by-id', substring-after(@href, '#'))"/>
</xsl:template>
Looking back through the email chain for the input, the pbl:roleref
element is like this:
<pbl:roleref
xlink:role="http://docbook.org/xlink/role/olink"
xlink:href="9780141182742_DeathSalesman_001_INC.xml#dea0000044"/>
As you can see, the href attribute is in the xlink namespace, so you
need to modify the code to be:
substring-after(@xlink:href, '#')
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--