[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: conditional display of content

Subject: Re: conditional display of content
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Sat, 31 May 2008 14:20:13 +0100
Re:  conditional display of content
2008/5/31 Ganesh Babu N <nbabuganesh@xxxxxxxxx>:
> 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:


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
Kernow: http://kernowforsaxon.sf.net/

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.