List Info

Thread: How to merge XSLT-filterpackage into unopackage?




How to merge XSLT-filterpackage into unopackage?
user name
2006-03-29 12:04:07
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" 
   xmlnss=&q
uot;http://www.w3.org/20
01/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">
    		
<value>com.sun.star.sheet.SpreadsheetDocument</valu
e>
   	      </prop>
  	      <prop oor:name="FileFormatVersion"
oor:type="xs:int">
		<value>0</value> 
	     </prop>
   	     <prop oor:name="FilterService"
oor:type="xs:string">
		<value>com.sun.star.comp.Writer.XmlFilterAdaptor<
/value>
	    </prop>
	   <prop oor:name="Flags"
oor:type="oor:string-list">
		<value>3RDPARTYFILTER ALIEN EXPORT
IMPORT</value>
	  </prop>
	  <prop oor:name="TemplateName"
oor:type="xs:string>
                      <value/>
   	 </prop>
   	<prop oor:name="Type" 
oor:type="xs:string">
		<value>DXF2CALCFilterTemplateGenerator</value>
        </prop>
   	<prop oor:name="UIComponent"
oor:type="xs:string">
                    <value/>
        </prop>
   	<prop oor:name="UIName">
    		<value xml:lang="de">My Template
Filter</value> 
        </prop> 
        <prop oor:name="UserData"
                     
oor:type="oor:string-list">
                  <value
oor:separator=",">com.sun.star.documentconver
sion.XSLTFilter,,com.sun.star.comp.Calc.XMLOasisImporter,com
.sun.star.comp.Calc.XMLOasisExporter,%origin%/TemplateGenera
tor/import_template.xsl,%origin%/TemplateGenerator/export_te
mplate.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/au
KD32_/my-import.uno.zip/TemplateGenerator/export_template.xs
l
 
Is this possible or must setup the path by hand (or by a
java install
class)?

Best Regards,

Simon








------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )