473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

trying to create a style sheet for XMI

I am attempting to create a style sheet for an XMI export created by
MagicDraw to produce an XML input file for a repository. Everything works
fine until I need to follow one of XMI's many idref/id links. I have
followed many examples from texts and the web but I cannot seem to correctly
follow the links. I either get no output or I get a blank.

An example of one such link is to output the data type for an attribute.
The path expression for the data type as a descendant of the attribute is:
"/XMI/XMI.content/Model_Management.Model/Foundation.Core.Namespace.ownedElem
ent/Model_Management.Package
/Foundation.Core.Namespace.ownedElement/Model_Management.Package/Foundation.
Core.Namespace.ownedElement
/Foundation.Core.Class/Foundation.Core.Classifier.feature
/Foundation.Core.Attribute /Foundation.Core.StructuralFeature.type
/Foundation.Core.DataType"
with 'xmi.idref' equal to the id of the data type. The idref points to:
""/XMI/XMI.content/Model_Management.Model/Foundation.Core.Namespace.ownedEle
ment/Model_Management.Package/
Foundation.Core.Namespace.ownedElement/Foundation.Core.DataType" where
xmi.id contains the ref. I need to output the text value of a descendant of
"Foundation.Core.DataType" called "Foundation.Core.ModelElement.name".
Jul 20 '05 #1
0 1212

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages...
7
by: gsb | last post by:
Is there a way to create, say createElement( "STYLE"), to create new classes or style sheets from within JavaScript? Thanks, gsb
2
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but...
2
by: Haines Brown | last post by:
I have a list defined in a stylesheet that includes: li.down { list-style-image: url(../bin/arrow-f.png); } <ul> <li class="down">list item text </li> </ul>
9
by: JimO | last post by:
I'm a newbie at this and I can't seem to find a list properties names to change styles on the fly. So far I've been lucky and managed to guess the names such as BodyElement.style.marginTop = 0;...
1
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. ...
3
by: Jukka K. Korpela | last post by:
Some time ago in this group, someone suggested that we should develop a "different" user style sheet to demonstrate what a user style sheet or a browser style sheet _could_ do. I guess the idea was...
0
prabunewindia
by: prabunewindia | last post by:
Hi all, i am doing a project which need to create RTF document on fly, which has to pick up the value from database. I am now doing that by using xml dataset and xsl style sheet. I just created a...
4
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.