473,770 Members | 4,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Managemen t.Model/Foundation.Core .Namespace.owne dElem
ent/Model_Managemen t.Package
/Foundation.Core .Namespace.owne dElement/Model_Managemen t.Package/Foundation.
Core.Namespace. ownedElement
/Foundation.Core .Class/Foundation.Core .Classifier.fea ture
/Foundation.Core .Attribute /Foundation.Core .StructuralFeat ure.type
/Foundation.Core .DataType"
with 'xmi.idref' equal to the id of the data type. The idref points to:
""/XMI/XMI.content/Model_Managemen t.Model/Foundation.Core .Namespace.owne dEle
ment/Model_Managemen t.Package/
Foundation.Core .Namespace.owne dElement/Foundation.Core .DataType" where
xmi.id contains the ref. I need to output the text value of a descendant of
"Foundation.Cor e.DataType" called "Foundation.Cor e.ModelElement. name".
Jul 20 '05 #1
0 1343

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

Similar topics

2
2017
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 to get the users colours, I have an includes file at the top of each page: <!--#include file="userconfig.asp" --> This is:
7
8232
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
3953
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 unfortunately restrictions on the architecture may this unfeasible. With the LINK tag I could use that but I understand older browsers dont support it properly. I will only ever have 2 style sheets. Is there a way to link one style sheet to...
2
5617
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
2193
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; BodyElement.style.paddingTop = 0; Can anybody direct me to a list of CSS properties available in javascript?
1
1982
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. Search "Amanda H." in this group and you can view my last post to see the original PHP and html junk. This below is the updated link rel and the meta tags. Before, it wouldn't refresh or change in Opera, Firefox, or IE6/Win & IE5/Mac. The...
3
2235
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 that the style would be rather different from common browser defaults, yet sensible and potentially useful. Partly for that reason, partly to demonstrate the idea that web page rendering _could_ be different from what people are used to, I...
0
887
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 style sheet for the RTF document needed and saved. but now my client need the option to add new RTF and edit the old one. So here i need to create the xsl style sheet on fly based on the RTF document. Is anyone know any way to do this? Please...
4
2402
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. The problem I am running into is that the tab style sheet uses attributes in the html and body and so does the content style sheet. Each one is specific to its content. The tab style sheet seems to take precedence over the content style sheet because...
0
9602
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9439
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.