Hey all, Okay, so it's a small thing, but I was really painfully aware of my lack of knowledge about XSL while doing it, shedding blood and tears, and though someone out there might appreciate it. I wrote a little XSL stylesheet to drop the UML:Diagram section of the Poseidon 2.0 XSL exported file. Something like this little baby here:
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:UML="org.omg/UML/1.3" version="1.0" exclude-result-prefixes="#default"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="@* | node()"> <xsl:if test="not(name()='UML:Diagram')"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates select="node()"/> </xsl:copy> </xsl:if> </xsl:template> </xsl:stylesheet> And then you can wedge that into the ANT script prior to running AndroMDA on the model: <target name="do-style"> <style in="${basedir}/src/uml/blank-model.xmi" out="${basedir}/src/uml/model.xmi" style="${basedir}/src/uml/poseidon-2.xsl" force="yes"> </style> </target> <target name="compile-uml" depends="init,do-style"> <taskdef name="andromda" classname="org.andromda.core.anttasks.AndroMDAGenTask"> <classpat.... Then I just set model to model.xmi in my build.properties and all seems to be running well. I just save to blank-model.xmi and then the XSL transform cuts out the bit that AndroMDA doesn't like, and continues happily. Hope this helps someone. -Neal ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
