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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1168)
- Stylus Studio Technical Forum (14388)
-> + API or web version (2)
-> + How to use Saxon for X16 on WI... (7)
-> + Error in SS X14 syntax highlig... (2)
-> + Option not available (2)
-> + XML Diff functionality and sor... (3)
-> + Convert Oagis XML file to TXT (4)
-> + DataDirect xqresultsequence is... (2)
-> - xfile Legacy file format suppo... (1)
-> + TPFDF (3)
-> + Help needed with SLSRPT - EDIF... (2)
-> - keeps crashing after I try and... (1)
-> + Can SS do this? (14)
-> - CargoImp support (1)
-> + No Preview Displayed - File is... (3)
-> - Stylus Studio X16 build 1974l ... (1)
-> + Help! Help!Help! Regading form... (2)
-> + FileNotFoundException generati... (6)
-> + FO External Graphic Producing ... (2)
-> + Use of Java methodes (4)
-> + get generated XQuery output on... (2)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (244)
+ XSLT Help and Discussion (7583)
+ XQuery Help and Discussion (1941)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (363)
+ Stylus Studio Announcements (113)
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

   
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.