After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 472143 - Export function doesn't work for code generation
Export function doesn't work for code generation
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
0.96-pre1
Other All
: Normal major
: 0.97
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-31 08:04 UTC by legal101205
Modified: 2008-05-03 14:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description legal101205 2007-08-31 08:04:57 UTC
Please describe the problem:
When exporting the diagram to code, i have a blank file ! 

I can have pdf or all other images files, but not the *.code option.

Steps to reproduce:
1. I try : export and follow extension (Impossible de déterminer quel filtre d'exportation
utiliser pour enregistrer « C:\Program Files\Dia\help\eu\Diagramme1.cpp »)
2. when i use export with .code, and select c++ language, i have a blank file, i tried with all others extensions too, the same thing happens.

3. 


Actual results:
File blank !

Expected results:
Code generation in the chosen language !

Does this happen every time?
All the time since i know dia (three months), i re-formated my computer recently (with the thinkvantage system) and nothing changes.

Other information:
My computer is a Thinkpad T60 under XP, and i have installed GTK 2.10 with dia0.96.1.
Comment 1 Peter Sulyok 2007-10-09 08:46:11 UTC
I also found that XSLT(*.code) fails without error or warning message on Windows XP, while it works perfectly on Fedora 7.
So the windows version produces empty foo.code file and no *.java or *.cpp files,
but I found this:
>>>>>>
<?xml version="1.0"?>
<html><head><title>Component List</title></head><body><h1>Component List</h1><table border="1"><tr><th>Stereotype</th><th>Component</th><th>Count</th></tr></table></body></html>
<<<<<<
for Component List and this
>>>>>>
<?xml version="1.0"?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:s="http://www.w3.org/2000/01/rdf-schema#" xmlns:dia="http://www.lysator.liu.se/~alla/dia/" xmlns:owl="http://www.w3.org/2002/07/owl@@#"/>
<<<<<<
for OWL output in the .code file.

My configuration is: Win XP SP2 + dia-0.96.1-7.exe + GTK 2.10

Comment 2 Julio Delgado 2007-11-19 15:34:40 UTC
I´m experiencing the same problem with the same configuration. I´ve confirmed the behavior when exporting to owl:

<?xml version="1.0"?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:s="http://www.w3.org/2000/01/rdf-schema#" xmlns:dia="http://www.lysator.liu.se/~alla/dia/" xmlns:owl="http://www.w3.org/2002/07/owl@@#"/>

At the moment I´m using Dia2Code tool, but I wish I could use this Dia feature in the future, not via an externa application.

Thanks
Comment 3 Hans Breuer 2008-05-03 14:44:28 UTC
next version will include the fix

2008-05-03  Hans Breuer  <hans@breuer.org>

	* plug-ins/xslt/xslt.c(xslt_ok) : the directory name passed into xslt
	needs to be an uri (*NIX being more tolerant). Fixes bug #472143.