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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Meno KSubject: Xmi File
Author: Meno K
Date: 03 Apr 2007 03:42 PM
Hello,,
I'm have files in xmi format.. can i inquire these files using xquery expression directly or do i need to converting them to xml format?

if i need to convert them to xml format, i know that i suppose to use XSLT stylesheet to do that but i don't know how..

thankx in advance

Postnext
(Deleted User) Subject: Re: Xmi File
Author: (Deleted User)
Date: 03 Apr 2007 04:34 PM
Hi,
XMI is a dialect of XML, so you can run XQuery directly on top of them.

Alberto

Postnext
Meno KSubject: Xmi File
Author: Meno K
Date: 03 Apr 2007 04:49 PM
Thank you Mr. Alberto for fast responding :)
when i execute my XQuery on xmi file i got error this message "No namespace for prefix 'UML'[err:XPST0081]

My xquery is:
//XMI/XMI.content/UML:Model/UML:Namespace.ownedElement//UML:Class[@xmi.id='0122245']/UML:Classifier.feature/UML:Attribute[@visibility='public']

Any suggestion or help will greatfully recived :)
Meno

Postnext
(Deleted User) Subject: Re: Xmi File
Author: (Deleted User)
Date: 04 Apr 2007 03:18 AM
Hi Meno,
you must declare the namespace you are going to use in the XQuery:

declare namespace UML = "omg.org/UML13";

(but please check which namespace your XMI is actually using for the
UML prefix...)

Hope this helps,
Alberto

Posttop
Meno KSubject: Re: Xmi File
Author: Meno K
Date: 04 Apr 2007 08:35 AM
Thank you very much..really i dont know what to say :)
You are the best!

i should write:
declare namespace UML = "org.omg.xmi.namespace.UML";

God bless you..
Meno

 
Topic Page 1 2 3 4 5 6 7 8 9 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.