GNOME Bugzilla – Bug 472143
Export function doesn't work for code generation
Last modified: 2008-05-03 14:44:28 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.
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
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
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.