473,382 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Help to select FIXED/VERIFIED/CLOSED

Hi,

I want to use Xpath to select the last activity if <newvalueis set to
FIXED, VERIFIED or CLOSED.

cheers,

//mikael
XSL template
============
.........
<xsl:template name="issue_date">
<xsl:param name="issue-id"/>
<xsl:for-each select="//issue">
<xsl:if test="./issue_id = $issue-id">
<div class="issue-type">
<xsl:value-of
select="substring(./activity[last()]/when ,1,11)"/>
</div>
</xsl:if>
</xsl:for-each>
</xsl:template>
..........
XML issues
===========

.......
<activity>
<user>jacekrad</user>
<when>2006-04-01 12:48:30</when>
<field_name>resolution</field_name>
<field_desc>Resolution</field_desc>
<oldvalue></oldvalue>
<newvalue>FIXED</newvalue>
</activity>
Aug 21 '06 #1
1 1089
Petterson Mikael wrote:
Hi,

I want to use Xpath to select the last activity if <newvalueis set to
FIXED, VERIFIED or CLOSED.
Assuming you mean "the last activity which has a newvalue set to one of
these", one of several ways to express that would be

select="substring(./activity[newvalue="FIXED" or newvalue="VERIFIED" or
newvalue="CLOSED"][last()]/when ,1,11)"/>

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Aug 21 '06 #2

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

Similar topics

2
by: skidvd | last post by:
Hello: I have just recently converted to using the InnoDB table type so that I can enforce FOREIGN key constraints. I have been using MyISAM tables (accessed via JDBC) successfully for some...
1
by: June Moore | last post by:
Hi, I am getting an error with the following code. Error is: ADODB.Connection error '800a0e78' - The operation requested by the application is not allowed if the object is closed. Any ideas how...
5
by: David C. Allen | last post by:
I have a vb.net app that is controling excel 2000 thru the com interop interface. I have referenced the excel 9.0 library and have cut down the code in the problem subroutine to this: Dim...
3
by: Mike Fellows | last post by:
Help, im trying to use a union join from an SQL database and a Access database - the program works fine from my own machine as i have the odbc DSN connections setup from access to link to the...
7
by: therod | last post by:
I am running Windows Server 2003 SP1 and .Net Framework 1.1 I want to upgrade to .Net 2.0 and I'm pretty sure I should uninstall 1.1 first. Problem is that .NET 1.1 doesn't show up in Control...
0
by: summer1450 | last post by:
Hi, I want to revise the nmap.xsl so that it would display IP addresses if a host has at least one port is opened AND group each IP into a group based on a SSH server. Here is the output that I...
0
by: dolphinearth | last post by:
Hi all. I hope some of the smart fellow programmers can help me, please. The problem is I use Crystal Reports that was shipped out with VS 2005 .Net, and for some strange unknown reason, the...
3
by: Jano | last post by:
Hi - Happy New Year! I have a web-site which accepted paypal payment for membership. No-one's buying so I want to make it free. The page which inputs the member details into the database needs...
4
by: Sin Jeong-hun | last post by:
I don't get the message so it's hard to debug that, but some of my clients report that they get "The underlying connection was closed unexpectedly" exception. According to this site (http://...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.