[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Find elements in a particular position in file and go to that schema

bryan rasmussen rasmussen.bryan at gmail.com
Mon Jun 4 15:00:42 PDT 2007


  Find elements in a particular position in file and go
	to that schema
Hi, the following query

for $qu in collection("BifSchemas")/xs:schema/xs:element
let $bifel := $qu/@name
for $newqu in collection("BifInstances")/ncms-object[view/*[local-name()=$bifel]]
return <queryinstance matching="/ncms-object[view/*[local-name()='{$bifel}']">
 { $newqu }
  </queryinstance>

returns the elements from instances that I have a schema global
element for (at a particular position in my tree)

now this tree is actually quite big, much bigger than my schemas, thus
I don't want to just go backwards and say for every element node in
bifinstances under /ncms-object/view check against the schemas and
return the schema that has the definition of that instance.

So I am wondering, what is an optimal way of getting the schemas in
the collection BifSchemas that has the definition of the element
(there may in fact be multiple schemas that have this)?

Database is Exist.


Cheers,
Bryan Rasmussen


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.