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

Re: Getting the value of an attribute

Subject: Re: Getting the value of an attribute
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Sep 2008 11:50:40 -0400
Re:  Getting the value of an attribute
At 2008-09-29 16:41 +0100, Bradley, Peter wrote:
I suspect this may be a very silly question. If so, my apologies.

Don't kick yourself too hard...


If I have this source document (fragment):
...
                    <info name="AppDomainName"
value="/LM/W3SVC/165639889/Root-1-128115363895000000"/>

Why does this stylesheet (fragment):
...
                    <xsl:value-of
select="Exception/additionalInfo/info[@name='AppDomainName']/@name"/>

not give me the value of the AppDomainName attribute in the
appDomainName attribute of <Error> below:

Because you are asking for the name attribute, not the value attribute. Your XPath address should end with "/@value".


I have the feeling that this should be obvious to me, but it has been a
busy day, so if anyone would be kind enough to put me out of my misery,
I would be eternally grateful.

It must have been a very busy day for you, as I make this kind of oversight myself at times.


. . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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-2011 All Rights Reserved.