Hi Peter,

please try if this one works (didn't test it).

AnD
----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 8:52 AM
Subject: RE: [Andromda-user] Re: AndroMDA support for TogetherJ (Version
6.2)


One thing that I coldn't figure out how to do it automatically is how to
change the XML namespace identifier in Together's XMI output. The write <XMI
xmi.version = '1.1' xmlns:UML = '//org.omg/UML/1.4'> which is plain
bullsh***, since you have to write <XMI xmi.version = '1.1' xmlns:UML =
'org.omg/UML/1.4'>. The XSL file contains a transformation that should
perform this change, but it does not work for me. So, you'll have to change
this manually or use some other piece of software to change this
automatically. If someone comes up with a solution for this problem, please
speak up!

Hopefully, we'll see a better XMI support in Together quite soon. I'll keep
you posted.


<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
	xmlns:UML="//org.omg/UML/1.4"
	xmlns:UMLOK="org.omg/UML/1.4"
	version='1.1'>
<xsl:namespace-alias stylesheet-prefix="UML" result-prefix="UMLOK"/>
	
<xsl:template match="/">
    <xsl:apply-templates />
</xsl:template>

<xsl:template match="UML:Attribute/UML:StructuralFeature.type">
</xsl:template>

<xsl:template match="UML:Parameter/UML:Parameter.type">
</xsl:template>

<!--
<xsl:template match="UML:Classifier">
  <xsl:apply-templates />
</xsl:template>
-->

<!--
<xsl:template match="UML:Classifier/UML:Namespace.ownedElement">
  <xsl:apply-templates />
</xsl:template>
-->

<!--
<xsl:template match="UML:Attribute/UML:StructuralFeature.multiplicity">
</xsl:template>
-->

<!--
<xsl:template match="UML:Attribute/@type">
</xsl:template>
-->

<!--
<xsl:template match="UML:Parameter/@type">
</xsl:template>
-->


<xsl:template match="UML:Stereotype/UML:Stereotype.extendedElement">
</xsl:template>

<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

</xsl:stylesheet>

Reply via email to