Unfortunately I don't think our xml tasks allow for extensions (which is what you are trying to do). This means you can use namespaces, but not namespaces which are extensions, like xpath functions written in assemblies. You could provide a patch to allow this, but it may be more work than you want to do.
I would suggest you remove any functions by extension and try again. There are XPath 1.0 string functions, but I doubt there are any upper-case or lower-case built-in functions. You could fake it use the translate function, but that is probably pretty costly. Here is a ref: http://www.w3.org/TR/xpath#section-String-Functions Good luck... ----- Original Message ----- From: "Peter Jones" <[EMAIL PROTECTED]> > 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? ------------------------------------------------------- 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