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 (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ 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
(Deleted User) Subject: Records Extraction from XML
Author: (Deleted User)
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.