|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] using a context node in a for loopTorsten Grust grust at in.tum.deWed Oct 18 11:02:02 PDT 2006
Hi all, On Oct 17, 2006, 5:05 PM, David Carlisle wrote with possible deletions: > >> Should the function below work? > no:-) > > a function does not automatically pass the current context, > . is undefined in a function body, so you can't use relative paths > like > '@id and @db-ref I don't buy this explanation, David. Sure, no context node is defined in user-defined functions per se. But Robert explicitly establishes a context node in the function: doc(...)/*/ ( ... ) This means that the attribute axis steps like @id, @label should work fine in the parentheses. The error message that Robert receives seems weird to me (shouldn't happen). Cheers, --Torsten -- | Prof. Dr. Torsten Grust http://x-query.com/mailman/listinfo/talk | | http://www-db.in.tum.de/~grust/ | | Database Systems - Technische Universität München (Germany) |
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






