Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


querying XML document with schema

From: =?iso-8859-1?q?gayathri=20veerarajan?= <gaytri_v@-----.--.-->
To: xmlschema-dev@--.---
Date: 5/11/2004 12:28:00 PM
I have wriiten a xml schema file  which contains a substitution group. hence I have two xml documents which uses the substitution members interchangeably.
<?xm version="1.0" ?> 
- <camera:PurchaseableItem xmlns:camera="http://www.xfront.com/owl/ontologies/camera/#">
-    <camera:Lens>
-          <Instance>
              <camera:size>"10"</camera:size> 

              <camera:aperture>"20"</camera:aperture> 

    </Instance>


  </camera:Lens>
 </camera:PurchaseableItem>




 
<?xm version="1.0" ?> 
- <camera:PurchaseableItem xmlns:camera="http://www.xfront.com/owl/ontologies/camera/#">
-     <camera:Lens>
-         <Instance>
              <camera:focal-length>"10"</camera:focal-length> 

        <camera:f-stop>"20"</camera:f-stop> 

    </Instance>


  </camera:Lens>
 </camera:PurchaseableItem>
 
I wrote a small query in GALAX to retrieve the values of focal length in these two documents  and it gave me an error saying 
" Internal Error: Invalid schema: complexcontent element is found "
 
This error occurs even if I query just one document as follows

import schema namespace camera = "cameraFun.xsd"

<PurchaseableItems>{

for $a in document("cameraTest.xml")/camera:PurchaseableItem/camera:Lens/Instance/camera:size

return

<cameraSize>{ $a/text()} </cameraSize> }

</PurchaseableItems>

I have validated the xsd and xml files using XSV , Im sure there is no problem with the files.

I think Galax accepts only  simple xsd files without derived types.  

Is there any other query engine for this purpose.

 With Regards ,

V.Gayathri.






Yahoo! India Matrimony: Find your partner online.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent