473,324 Members | 2,511 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,324 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 900
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:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.