Re: [api-dev] How to package an XSLT Filter with multiple XSL files
Hi Ian, it is currently not possible to use multiple XSLT stylesheets in one JAR. A workaround would be to deploy/copy all used stylesheets into one before the JAR is being created. Ian Shields wrote: On Thu, 2007-05-24 at 15:54 +0200, PA Galmes wrote: http://qa.openoffice.org/issues/show_bug.cgi?id=27325 This is the correct issue for it and I just added some notes that I would rather use OXT files (UNO components) instead of fixing this ability for JAR filter, better allowing to ZIP a folder with multiple files for the transformation (e.g. stylesheets, XML templates, images, etc.). Positive side effects in using OXT would be that the filter suddenly gain all advantages of OXT (deployment/update/versioning). Best regards, Svante - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to merge XSLT-filterpackage into unopackage?
Hi Simon, some weeks ago I stumbled over the same problem as I wanted to provide an UNO package with the new LaTex filter for testing [see 1]. I ended up providing a UNO package with an additional JAR to be copied into OFFICE_PATH/program/classes. The issue you mentioned will be fixed for the next major. Regards, Svante [1] - http://www.openoffice.org/issues/show_bug.cgi?id=24813 Simon Mieth wrote: Hallo all, I have developed a java uno-component, which needs an xslt-filterpackage. At the moment the user needs to deploy the xslt-filterpackage(XML-Filter Settings) and the uno-package(Package Manager) separately. I'm trying to integrate the xslt-filterpackage into the uno-package, but it looks like that the %origin% -variable does not work here. In the uno-package I have added the Filter.xcu and the TypeDetection.xcu from the xslt-filterpackage and replaced the location for the stylesheets with %origin%. ?xml version=1.0 encoding=UTF-8? oor:component-data xmlns:oor=http://openoffice.org/2001/registry; xmlns:xs=http://www.w3.org/2001/XMLSchema; oor:package=org.openoffice.TypeDetection oor:name=Filter node oor:name=Filters node oor:name=MyTemplateGenerator oor:op=replace prop oor:name=DocumentService oor:type=xs:string valuecom.sun.star.sheet.SpreadsheetDocument/value /prop prop oor:name=FileFormatVersion oor:type=xs:int value0/value /prop prop oor:name=FilterService oor:type=xs:string valuecom.sun.star.comp.Writer.XmlFilterAdaptor/value /prop prop oor:name=Flags oor:type=oor:string-list value3RDPARTYFILTER ALIEN EXPORT IMPORT/value /prop prop oor:name=TemplateName oor:type=xs:string value/ /prop prop oor:name=Type oor:type=xs:string valueDXF2CALCFilterTemplateGenerator/value /prop prop oor:name=UIComponent oor:type=xs:string value/ /prop prop oor:name=UIName value xml:lang=deMy Template Filter/value /prop prop oor:name=UserData oor:type=oor:string-list value oor:separator=,com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,%origin%/TemplateGenerator/import_template.xsl,%origin%/TemplateGenerator/export_template.xsl,,Generate%20Template/value /prop /node /node /oor:component-data After deploy the uno-package the filter is registered and listed inside the XML-Filter Settings and I can see the expanded '%origin%' variable like: vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/auKD32_/my-import.uno.zip/TemplateGenerator/export_template.xsl Is this possible or must setup the path by hand (or by a java install class)? Best Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] draw_html_export
Hi Jaime, instead of using macros, you even might integrate your mappings of OOo XML to HTML into the exisiting XHTML export filter. This filter is used for every application type and might get greatly enhanced for Draw documents. To receive the latest version, install http://ftp.stardiv.de/pub/OpenOffice.org/developer/680_m79/ and add during installation the XSLT Sample Filter. The XHTML filter is still based on the old OpenOffice.org XML, and can therefore easily be used in earlier StarOffice/OpenOffice versions by using the start stylesheet from INST/share/xslt/export/xhtml/ooo2xhtml.xsl If XSLT is completly new for you, any mapping you provide might be used as input for XSLT developer to enhance this filter. Have you a link to a sample document you want to transform? Regards, Svante Jaime Alvarez wrote: I want to export to html some OOoDraw flowcharts with several slides and links. Unfortunately, it appears to me that the draw_html_export filter transforms the slides into plain images. I want to develop this functionality by using image maps in html for adding the links where they belong. I guess a macro would work, which would lead me to unearth my programming neurons from college... ;-) After looking into the 'content.xml' file of a OOoDraw document, it seems to me that all the information I need about the links is available. Therefore, my ideal macro would do the following: 1. Use the draw_html_export filter to create the html files. 2. Get the links' location and url without having to save, unzip it and open the respective content.xml file. 3. Modify the files created in #1 and add the links and some navigation features. I'm looking forward to work on this. However, I'd like to know beforehand whether it is feasible or not (specially for #2). Any suggestions? Regards Jaime - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]