Re: Export xsl, Save diagram error

2009-06-10 Thread david
Hey, I'm still on my problem : an error appears when the export finished (but the made file semms correct). I've cleaned my xsl file to find the problem : NO ERROR http://www.w3.org/1999/XSL/Transform"; xmlns:dia="http://www.lysator.liu.se/~alla/dia/"; version="1.0"> ERROR

Re: Export xsl, Save diagram error

2009-06-04 Thread Loek Bergman
Hi David, I have worked with Java and xml on the web. Using spaces instead of underscores gave me sometimes trouble. To have some hierarchy in namespaces I always make sure they are considered one string separated by underscores. It almost reads as convenient as spaces, but then I know how the par

Re: Export xsl, Save diagram error

2009-06-04 Thread david
Hi, * * I use these select statements to apply my templates for a particalr kind of object. It works and it's all what I want about my XSL export. If I follow you, what do you purpose to simplify the reference before the type of the object ? Your exemple with Spaceships is interresting but I don

Re: Export xsl, Save diagram error

2009-06-04 Thread Loek Bergman
Hi David, Why do you need that particular complicated select statement? You might need that type of object in the end, I agree, but do you need that complicated reference? Would a reference like UML_State_Term do as well? I always prefer using underscores instead of spaces. It is more reliable ho

Re: Export xsl, Save diagram error

2009-06-04 Thread david
Hi, thank for your answer. I think you're right, I was working on it just before you answered. After an export, I've tried to remove the new file (with windows explorer) and it's impossible(file still used by an other program...) I think that my XSL export has a problem to finalize the conver

Re: Export xsl, Save diagram error

2009-06-04 Thread Loek Bergman
Hi David, I have not seen your code, so it is a pure guess. What I can think of is that you still have a hook on the original file. If you nullify the hook on the original file it might work. Something like this: File fl = getFile(fileName); //work on file //save file File newFile = getFile(fil

Re: Export xsl, Save diagram error

2009-06-04 Thread Loek Bergman
Hi David, I have not seen your code, so it is a pure guess. What I can think of is that you still have a hook on the original file. If you nullify the hook on the original file it might work. Something like this: File fl = getFile(fileName); //work on file //save file File newFile = getFile(fil

Export xsl, Save diagram error

2009-06-04 Thread david
Hey! I'm still working on my own xsl export. It works : it's ok to create a new xml file from my Diagram. But, I have a probleme : a messagebox appears after the export and says :*Error while saving result: *. I don't understand because this file is full and contains my diagram converted. A seco