I'm an Xpath newbie. I need to check a vault history file using xmlpeek
for a value, but I need to ignore string case. I tried the following :
<xmlpeek file="${historyfile}" xpath="/vault/history/[EMAIL PROTECTED] !=
'90'][xf:upper-case(@name) !=
xf:upper-case('${VaultFolder}/${verfile}')]/@name" nodeindex="0"
property="historyline" failonerror="false">
<namespace prefix="xf"
uri="http://www.we.org/2002/08/xquery-functions" />
</xmlpeek>
But all I get is :
Could not peek at XML file
'c:\build\history\UCNewsAndEvents_23.history'.
XsltContext is needed for this query because of an unknown function.
The file looks like this:
<vault>
<history>
<item txid="198" date="8/06/2004 10:30:50 a.m."
name="UCNewsAndEvents/UCNewsAndEvents.build.ver" type="60" version="25"
user="nant" />
</history>
<result success="yes" />
</vault>
The idea is that the xmlpeek will tell me if there are any files in the
history so I can fire a build. The .VER file is used to record the last
time the process ran, so I need to ignore this.
Perhaps there is a simpler way to ignore case?
-------------------------------
Peter G Jones
Senior Analyst/Programmer
University of Canterbury
-------------------------------
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users