Comment #4 on issue 59 by
vpereto...@gmail.com: xspec produces a different
Yes certainly - here is a minimized test case.
This is what I get with it - it also seems to bug out internally, but from
the xsl:message, you can tell that the name isn't being made right anyway:
PS C:\Users\VadimPeretokin\Desktop\dcm2ea>
C:\Tools\xspec-0.4.0rc1\bin\xspec.bat .\DCM2EA.xspec
Creating Test Stylesheet...
"C:\Users\VadimPeretokin\Desktop\dcm2ea\xspec\DCM2EA.xsl"
.\DCM2EA.xspec
Running Tests...
Testing with SAXON HE 9.4.0.9
Cut-down test to see the $packagename
The package name is: v draft
Package name should be properly formed
Error on line 66 of DCM2EA.xsl:
XPDY0050: The root of the tree containing the context item is not a
document node
Transformation failed: Run-time errors were reported
Formatting Report...
Error on line 1 column 1 of DCM2EA-result.xml:
SXXP0003: Error reported by XML parser: Premature end of file.
Transformation failed: Run-time errors were reported
Done.
PS C:\Users\VadimPeretokin\Desktop\dcm2ea>
If you run the xsl on the source sample file, you'll get this result:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmlns:uml="
http://www.omg.org/spec/UML/20101101"
xmlns:xmi="
http://www.omg.org/spec/XMI/20101101"
xmi:version="2.4">
<xmi:Documentation exporter="Enterprise Architect"
exporterVersion="6.5"/>
<uml:Model xmi:type="uml:Model" name="DCM Model" visibility="public">
<packagedElement xmi:type="uml:Package"
xmi:id="d1e3"
name="Adverse Reaction v5.1 draft 72"
visibility="public"/>
</uml:Model>
</xmi:XMI>
Which is obviously different than from what xspec produces when it runs the
transformation.
Saxon-HE is used in all cases here as the transformer.
Attachments:
xspec - bad attribute name.zip 2.6 KB