Share

uml2svg

Tracker: Bugs

5 Stylesheets are not compliant with apache xalan/xerces XSLT - ID: 1726826
Last Update: Settings changed ( pmoukhataev )

I've tried to process one of the given sample files CoffeeMachine.xmi with
uml2svg stylesheets using apache xalan/xerces engine. It produced the
following error:

Transforming into C:\Projects\jnetx\4.0\doc\Designs\SLEE
Processing C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.xmi
to C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.html
Loading stylesheet
C:\Java\Misc\docbook-xsl\1\uml2svg-0.18\src\xsl\Main.xsl
Unknown file:109:140: Fatal Error! Prefix must resolve to a namespace:
UML2
: Fatal Error! Fatal error during transformation Cause: Fatal error during
transformation
Failed to process
C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.xmi


I've tried both 2.7 and 2.6 versions.





The following ant script was used:
<target name="UMLtest" >
<java classname="org.apache.xalan.Version" />
<java classname="org.apache.xerces.impl.Version" />

<mkdir dir="${build.dir}"/>
<xslt includes="${build.dir}/CoffeeMachine.xmi" destdir="."
style="C:/Java/Misc/docbook-xsl/1/uml2svg-0.18/src/xsl/Main.xsl" >
<!--<xmlcatalog refid="dtdcatalog" />-->
</xslt>
</target>





Ant output is:

UMLtest:
[java] Xalan Java 2.7.0
[java] Xerces-J 2.7.1
[xslt] Transforming into C:\Projects\jnetx\4.0\doc\Designs\SLEE
[xslt] Processing
C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.xmi to
C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.html
[xslt] Loading stylesheet
C:\Java\Misc\docbook-xsl\1\uml2svg-0.18\src\xsl\Main.xsl
[xslt] Unknown file:109:140: Fatal Error! Prefix must resolve to a
namespace: UML2
[xslt] : Fatal Error! Fatal error during transformation Cause: Fatal
error during transformation
[xslt] Failed to process null

BUILD FAILED
C:\Projects\jnetx\4.0\doc\Designs\SLEE\build.xml:112: Fatal error during
transformation

Total time: 1 second





Pavel Moukhataev ( pmoukhataev ) - 2007-05-28 11:09

5

Closed

Invalid

Nobody/Anonymous

XSLT

v0.1

Public


Comments ( 2 )




Date: 2007-05-28 11:45
Sender: pmoukhataev


uml2svg version 0.18


Date: 2007-05-28 11:11
Sender: pmoukhataev


Workaround:

To fix this problem I've added 'xmlns:UML2="org.omg.xmi.namespace.UML2"'
attribute to all files that used UML2.

After that the following error occurred:
Processing C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.xmi
to C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.html
Loading stylesheet C:\Java\Misc\docbook-xsl\uml2svg-0.18\src\xsl\Main.xsl
: Fatal Error! org.xml.sax.SAXException: (StylesheetHandler)
file:/C:/Java/Misc/docbook-xsl/uml2svg-0.18/src/xsl/StateDiagrams/RegionCompartment.xsl
is directly or indirectly importing itself! Cause:
org.xml.sax.SAXException: (StylesheetHandler)
file:/C:/Java/Misc/docbook-xsl/uml2svg-0.18/src/xsl/StateDiagrams/RegionCompartment.xsl
is directly or indirectly importing itself!
Failed to process
C:\Projects\jnetx\4.0\doc\Designs\SLEE\build\CoffeeMachine.xmi



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2007-05-28 12:34 pmoukhataev
resolution_id None 2007-05-28 12:34 pmoukhataev
close_date - 2007-05-28 12:34 pmoukhataev