Re: [dev] Writer XSLT import does not work as expected.
Morning Oliver. The config file shows the correct config entry. DocBook Export / Import works and creates a logfile. Using my filter OOO does not, so I assume that for some reason the Java Logging is not or too late initialized ;-( However, as stated yesterday, a normal XSLT Filter is not sufficient for my concrete problem here. I am working on a Java Filter now, which allows my to create an OpenOffice file directly using the XSLT and a portion of Java Code, which patches the testsuite CDATA stuff and the incompatible TestSuite quotes. As I don't need the XSTL Filter stuff for my current problem, I would suggest to leave is as it is for now until you are not kean to find the problem of my case. Thanks for your help so far. I may come back with an EMail once my Java programm is finished and I want to integrate that into OOO (as an extension). Mit freundlichen Grüßen / with best regards Werner Schulte -- DSA - Daten- und Systemtechnik GmbH Pascalstraße 28 D-52076 Aachen Germany Phone:+49 (0)2408 9492 - 694 Fax: +49 (0)2408 9492 - 92 E-Mail: werner.schu...@dsa-ac.de Internet: http://www.dsa.de Sitz und Registergericht/Domicile and Court of Registry: Aachen HRB-Nr./Commercial Register No.: 11960 Geschäftsführung/Board of Management: Dr. Eckhard Schulz, Dr. Volker Gehring - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Writer XSLT import does not work as expected.
Hello all. I am working on an import/export filter for TestLink (http://testlink.sourceforge.net/docs/testLink.php) XML exports to enable TestLink users to edit their TestSuites and TestCases in OOO as this would speed up things while creating / supporting test cases for testlink a lot. Working on the import filter, I still have no success until now. As I cannot find appropriate writer import howtos (or documented examples) browsing the internet, this mailing list is my last hope. My first (very easy) filter example should present OOO header lines containing the testsuites.xml testsuite and testcase names. However, OOO presents the complete testsuites.xml content (XML). So I assume that OOO is not happy with my filter. Is there any logfile / debug possibility where I can find more information ? Here is what I did. - Using OOO : 3.1.1 - Using Netbeans 6.7 for XSL development - created a OOO template and a OOO example document. - used the content.xml of that dokument to define the XML OOO header in the xsl:template (root) (Reviewing the OOO docbook import filter as an example filter) - Checked XML and XML validity of the stylesheet - Transformed testsuite.xml using the Netbeans 'com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl' - Checked the resulting testsuite_content.xml, which looked good so far. - Created an OOO filter due to OOO help - File-Open filetype=TESTLINK (the Import Filter), select testsuites.xml Result is the the raw XML content of that file :-( Just being curious, I copied the transformation result of the Netbeans Transformer into the content.xml of the exmple odt file. What a suprise, OOO shows the expected result after loading that file. My Filter and example is attached. P.S. If I should have success, I would be willing to document the necessary steps somewhere, so that other people can use the Import filter feature, which from my point of view enhances the OOO possibilities a lot. Mit freundlichen Grüßen / with best regards Werner Schulte -- DSA - Daten- und Systemtechnik GmbH Pascalstraße 28 D-52076 Aachen Germany Phone:+49 (0)2408 9492 - 694 Fax: +49 (0)2408 9492 - 92 E-Mail: werner.schu...@dsa-ac.de Internet: http://www.dsa.de Sitz und Registergericht/Domicile and Court of Registry: Aachen HRB-Nr./Commercial Register No.: 11960 Geschäftsführung/Board of Management: Dr. Eckhard Schulz, Dr. Volker Gehring - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Writer XSLT import does not work as expected.
Hi Werner, is not happy with my filter. Is there any logfile / debug possibility where I can find more information ? The logfile is being activated by setting a Java System Property in the office (Tools-Option-Java), for example: -DXSLTransformer.statsfile=E:\Temp\xslt_debug.txt btw: have you seen: http://blogs.sun.com/GullFOSS/entry/new_in_3_0_xslt regards Oliver -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45 signature.asc Description: OpenPGP digital signature
Re: [dev] Writer XSLT import does not work as expected.
Hi Oliver. Oliver Brinzing schrieb: Hi Werner, is not happy with my filter. Is there any logfile / debug possibility where I can find more information ? The logfile is being activated by setting a Java System Property in the office (Tools-Option-Java), for example: -DXSLTransformer.statsfile=E:\Temp\xslt_debug.txt Thanks for the quick answer. I tried it, but don't get a logfile. Java is enabled (JRE1.5) and the Parameter is set due to your hint. The target directory is writeable as well (c:\log on my PC). btw: have you seen: http://blogs.sun.com/GullFOSS/entry/new_in_3_0_xslt Thanks for the hint. That sounds interesting! Will keep an I on that. Here is the current status of my tries. I am able to create an externally tranformed content.xml. Unfortunately I have to patch this file afterwards, as the testlink export contains the important information in CDATA with lots of embedded HTML as well as OOO unknown quoted string (like nbsp;, auml; ...). Of course I could create an external tool now to generate my odt file and to generate a testlink file back from odt, but that is not what you really want at the end. Is there a chance to hook a piece of java code into the XML Filter process, which would be able to patch the transformed files to the users needs ? Mit freundlichen Grüßen / with best regards Werner Schulte -- DSA - Daten- und Systemtechnik GmbH Pascalstraße 28 D-52076 Aachen Germany Phone:+49 (0)2408 9492 - 694 Fax: +49 (0)2408 9492 - 92 E-Mail: werner.schu...@dsa-ac.de Internet: http://www.dsa.de Sitz und Registergericht/Domicile and Court of Registry: Aachen HRB-Nr./Commercial Register No.: 11960 Geschäftsführung/Board of Management: Dr. Eckhard Schulz, Dr. Volker Gehring
Re: [dev] Writer XSLT import does not work as expected.
Hi Werner, Thanks for the quick answer. I tried it, but don't get a logfile. just tried it - testing with the docbook filter - i get a log file: The transformation's parameters as 'name = value' pairs: StylesheetURL = file:///C:/Program%20Files/OpenOffice.org/Basis/share/xslt/docbook/sofftodocbookheadings.xsl TargetURL = DoctypeSystem = TargetBaseURL = Starting transformation... TransformerFactory is 'net.sf.saxon.TransformerFactoryImpl' Warning: at xsl:stylesheet on line 32 of file:///C:/Program%20Files/OpenOffice.org/Basis/share/xslt/docbook/sofftodocbookheadings.xsl: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor finished transformation in 147ms are you sure, your \user\config\javasettings_Windows_x86.xml looks like: param-DXSLTransformer.statsfile=E:\Temp\xslt_debug.txt/param see the leading hyphen -DXSL... Is there a chance to hook a piece of java code into the XML Filter process, which would be able to patch the transformed files to the users needs have you seen http://wiki.services.openoffice.org/wiki/Xml ? regards Oliver -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45 signature.asc Description: OpenPGP digital signature