XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Muhammad AkramSubject: Records Extraction from XML
Author: Muhammad Akram
Date: 25 Sep 2007 08:52 AM
HI i asked this question from "Tony Lavinio" in this forum, but i think he is busy and haven't replied, in response to my question i have gien an example of what i want to do. if you could help me please do so.. thank you

I want to do something like this but i am not aware of how to create RDF using Stylus studio, or may be some other way.. and how to associate this RDF to XML file.. I could understand the query but will i be able to do it in stylus studio.. I tried to find creating RDF in stylus studio, but did not find any help relating this..Below is the example code and working...

<products>
<product><name>Water Corola</name>
<price>15<price>
</product >
<product>… </product> …
</products>
--------------------------------------------
This XMl file is associated to the following RDF description.

Catalog.xml#product1 lastUpdate “10/1/2005”.
Catalog.xml#product2 lastUpdate “10/2/1990”.
----------------------------------------------
To get products which lastupdate is before 1990, the query is as follows:

for $p in doc(“http://.../catalog.xml”) //product
metadata $p in
SELECT ?p
WHERE (?p lastUpdate ?u)
AND ?u < “1/1/1990”
return $p
------------------------------------

In this query, variable $p stores the product elements
of the document (line 1). The SPARQL query (lines
3 and 4) stores in variable ?p elements which last
update, stored in variable ?u, is before 1990. The
content of variable $p in the external XQuery query
is intersected with the content of the ?p variable in
internal SPARQL query, yielding the set of desired
products.
------------------------------------



Hope you could help me...

Regards,

Nomi

Posttop
Alberto MassariSubject: Records Extraction from XML
Author: Alberto Massari
Date: 25 Sep 2007 02:41 PM
Please do not cross-post: see the answer at http://www.stylusstudio.com/SSDN/default.asp?action=9&read=6916&fid=57

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.