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

Re: select attribute of xsl:variable

Subject: Re: select attribute of xsl:variable
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 01 Sep 2010 14:01:22 +0200
Re:  select attribute of xsl:variable
pankaj.c@xxxxxxxxxxxxxxxxxx wrote:
<textbox id="b0030" role="alt1">
    <textbox-head>
        <title>XXXXXXXXXXXXXX</title>
 </textbox-head>
</textbox>


With Case 1 I get correct output


<textbox aid:pstyle="TE A title" id="b0030" role="alt1">
..............


With Case 2 output is :


<textbox aid:pstyle="" id="b0030" role="alt1">


Empty aid:pstyle=""

Well in your code you have


<xsl:template match="display/textbox/textbox-head/title">
<xsl:variable name="role_title"
select="parent::textbox-body/parent::textbox[@role]"/>

yet in your code snippet you have no "display" element at all and your "title" element has a parent named "textbox-head" and a grandparent named "textbox" so "parent::textbox-body" is never going to find anything as "textbox-head" and "parent::textbox-body" are different.


--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.