472,951 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

XSL outputting attribute value in select="" clause?

I have no problems outputting the attribute value when the node is in
context, for example, @id when an <status> node is in context.

However, I am having trouble outputting it in a <xsl:value-of />
element:

<xsl:value-of select="procresults/settings@priority />

where it looks like

<procresults>
<settings priority="3" />
</procresults>

I looked through the XPath spec and didn't see anything regarding it,
I've tried using :node() and a few other modifiers with no luck.

Googling doesn't do much good as most articles are talking about the
select="" being an attribute to output instead of using select="" to
output an attribute.

Thanks for any tips,

Eric

Jun 15 '06 #1
2 1431
On Thu, 15 Jun 2006 06:55:15 +0200, <ce*****@gmail.com> wrote:
<xsl:value-of select="procresults/settings@priority />


Mind the slash;-)
<xsl:value-of select="procresults/settings/@priority" />

Of course, this would only work when the context node is the parent of
'procresults'...
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Fiat W3C in tenebris
Jun 15 '06 #2
Thanks! I did try that but some of the .NET xslt errors are quite
cryptic, it was a problem elsewhere in my document as well, woops!

Joris Gillis wrote:
On Thu, 15 Jun 2006 06:55:15 +0200, <ce*****@gmail.com> wrote:
<xsl:value-of select="procresults/settings@priority />


Mind the slash;-)
<xsl:value-of select="procresults/settings/@priority" />

Of course, this would only work when the context node is the parent of
'procresults'...
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Fiat W3C in tenebris


Jun 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yamini | last post by:
Here I am trying to use tag files in JSP2.0 with tomcat 5. test.jsp ------- %@ taglib prefix="test" tagdir="/WEB-INF/tags" %> <html> <head> <title>Untitled Document</title> </head> <body>
2
by: Marcio DeBarros | last post by:
Hi, I am using JDOM to create and validate XML document in a Java app. for the first time, and am getting the error above when I am validating a document with SAXBuilder with the following DTD:...
4
by: mike | last post by:
regards: <a href="JavaScript:loadwindow(106,90);" style="font-family:Verdana;">元智Intranet</a> In HTML spec,are "href" and "style" called "attribute"?....@@ Could someone good give me the...
10
by: serge | last post by:
Using "SELECT * " is a bad practice even when using a VIEW instead of a table? I have some stored procedures that are identical with the difference of one statement in the WHERE clause. If I...
1
by: Andrew McNab | last post by:
Hi folks, I have a problem with an MS Access SQL query which is being used in an Access Report, and am wondering if anyone can help. Basically, my query (shown below) gets some records from a...
11
by: ajikoe | last post by:
Hello, I used Visual C# Standard Edition. I want to comment my program using xml commentary method, I don't know why if I use value and example tag, it is not working / showed in the html...
4
by: bill salkin | last post by:
The code below creates a dataset containing a table called "Customers" from the Northwind database Later on in my code, after the database connection is closed, I need to access this dataset to...
21
by: Steven T. Hatton | last post by:
I'm trying to improve my formal understanding of C++. One significant part of that effort involves clarifying my understanding of the vocabulary used to describe the language. This is from the...
8
n8kindt
by: n8kindt | last post by:
how do i suppress the outputting and printing dialog boxes that pop up while running vba code such as: DoCmd.OpenReport "Report1" or DoCmd.OutputTo acOutputReport, "Report1", acFormatPDF,...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.