473,395 Members | 1,484 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,395 software developers and data experts.

Saxon/XQuery strange thing

I cant figure out what's wrong in the following code:
Expand|Select|Wrap|Line Numbers
  1.    let $corpuslocation := "/var/www/~tycho/corpus/texts/xml/"
  2.       for $fname in doc(concat($corpuslocation,'catalog.xml'))/catalog/corpusfile
  3.       return <option value="{$fname/@filename}">
  4.              {
  5.                let $fname2 := concat($corpuslocation,'a_001.xml') (: $fname/@filename) :)
  6.                let $titulo := doc($fname2)//meta[name="Document Title"]/val/text()
  7.                let $autor := doc($fname2)//meta[name="Document Author ID"]/val/text()
  8.                return concat($titulo," (",$autor,")")
  9.              }
  10.              </option>
In the bolded line, if I change the "a_001.xml" by the "$fname/@filename" expression, it just doesnt work. But with the literal string it works. The problem with the "$fname/@filename" only happens on nested fors. In a simple one it works fine. I just dont get it. Any ideas?
Sep 14 '07 #1
1 903
pbmods
5,821 Expert 4TB
Heya, Pablofaria. Welcome to TSDN!

Please use CODE tags when posting source code:

[CODE]
Source code goes here.
[/CODE]
Sep 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Tony Lavinio | last post by:
Dear Stylus Studio Friends, The new year is scarcely one month old, but we already have lots to report! For starters, there's Stylus Studio 6 Release 2. The latest release of Stylus Studio...
4
by: Rolf Kemper | last post by:
Hi All, ned help on the example below. It works fine for msxml3/4 but has problems with saxon. Saxon complains "can not find matching function ..... " My target is to write style sheets...
0
by: Tony Lavinio | last post by:
Dear comp.text.xml community, Microsoft recently announced that they are dropping XQuery from their next release of the .NET Framework, 2.0 (Whidbey). Since Microsoft ships .NET Framework only...
0
by: pepin_labulle | last post by:
I'm a newbie with XQuery and I'm trying to execute a query with Saxon. If I don't specify the XML source file name in the query, Saxon raises the following error :...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
1
by: exemell.com user | last post by:
Does anyone know of any good resources with examples showing how to implement SAXON.NET's XQuery? Thanks Wole Posted at http://www.exemell.com/
1
by: Swami Tota Ram Shankar | last post by:
"Bob Weigel" <dontuwish@nothing.net> wrote in message > > While George Bush, is the epitome of evil, racism, and uncompassionate > > conservatism, Kerry is either deluded, very deluded, or...
5
by: Daniel | last post by:
where does Microsoft.Xml.Xquery live? where does Microsoft.Xml.Xquery live? all i can find is a copy of it in the sample project:...
8
by: ismailj | last post by:
Hi, I'm using Weblogic 9.2 which uses Saxon 8.1.1 as its XQuery Engine. I'm using max function and in the argument I'm passing the node which has two dateTime values. It is giving exception. ...
4
by: ismailj | last post by:
Hi, I'm using Saxon v8.9 for XQuery execution. I'm using following code: XQDataSource ds = new SaxonXQDataSource(); XQConnection conn = ds.getConnection(); ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.