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 (1169)
- Stylus Studio Technical Forum (14440)
-> - Error Message (1)
-> - jvm disabled message keeps pop... (1)
-> + XTSE0620: An xsl:param element... (3)
-> + Fail in installing Apache FOP... (3)
-> - Jenkins: about the path of bui... (1)
-> + problem with Stylus X15 XML RE... (2)
-> + Cannot remove a row into a tab... (6)
-> + prevent the meta data from bei... (3)
-> + Unable to auto detect JRE in X... (2)
-> - Unable to auto detect JRE in X... (1)
-> - where to find information (1)
-> + X16 - XPath 3.0, XQuery 3.0, X... (2)
-> - Test (1)
-> + XSLT debugger shows [symbol u... (3)
-> - How do i use *.conv to process... (1)
-> - How do i use *.conv to process... (1)
-> + Not able to configure JVM in ... (5)
-> + Converting Cobol flat file to ... (2)
-> + Problem with uninstall - Windo... (2)
-> + Function current() is not reco... (6)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (244)
+ XSLT Help and Discussion (7593)
+ XQuery Help and Discussion (1941)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (363)
+ Stylus Studio Announcements (113)
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...

<product><name>Water Corola</name>
</product >
<product> </product>
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
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

Hope you could help me...



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


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!  

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.