<?xml version="1.0" encoding="utf-8"?>
<list>
<item type="dictionary"><dictionary>
<item key="type"><![CDATA[filter]]></item>
<item key="value" type="dictionary"><dictionary>
<item key="acquired" type="int">0</item>
<item key="content_type"><![CDATA[application/x-excel]]></item>
<item key="description"></item>
<item key="format"><![CDATA[XML]]></item>
<item key="id"><![CDATA[excel2ZMSRecordSetExport]]></item>
<item key="meta_types" type="list"><list>
</list>
</item>
<item key="name"><![CDATA[Excel Recordset-Export]]></item>
<item key="processes" type="list"><list>
<item type="dictionary"><dictionary>
<item key="file" type="file">
<data content_type="text/xml" filename="ZMSRecordSet2Excel.xsl" type="file"><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
	xmlns:spreadsheet="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:output method="xml" encoding="ISO-8859-1"/>
	<xsl:template match="/">
		<Workbook
				xmlns="urn:schemas-microsoft-com:office:spreadsheet"
				xmlns:o="urn:schemas-microsoft-com:office:office"
				xmlns:x="urn:schemas-microsoft-com:office:excel"
				xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
				xmlns:html="http://www.w3.org/TR/REC-html40">
			<Styles>
				<Style ss:ID="head">
					<Font ss:Bold="1"/>
					<Interior ss:Color="#CCCCCC" ss:Pattern="Solid"/>
				</Style>
			</Styles>
			<Worksheet ss:Name="ZMSRecordSet">
				<Table>
					<xsl:for-each select="ZMSCustom/records/lang/list/item/dictionary|ZMSCustom/records/list/item/dictionary">
						<xsl:if test="position()=1">
							<Row>
								<xsl:for-each select="item">
									<Cell ss:StyleID="head"><Data ss:Type="String"><xsl:value-of select="@key"/></Data></Cell>
								</xsl:for-each>
							</Row>
						</xsl:if>
						<Row>
							<xsl:for-each select="item">
								<Cell><Data ss:Type="String"><xsl:value-of select="."/></Data></Cell>
							</xsl:for-each>
						</Row>
					</xsl:for-each>
				</Table>
			</Worksheet>
		</Workbook>
	</xsl:template>
</xsl:stylesheet>

]]></data></item>
<item key="id"><![CDATA[xslt]]></item>
</dictionary>
</item>
</list>
</item>
<item key="roles" type="list"><list>
</list>
</item>
</dictionary>
</item>
</dictionary>
</item>
<item type="dictionary"><dictionary>
<item key="type"><![CDATA[filter]]></item>
<item key="value" type="dictionary"><dictionary>
<item key="acquired" type="int">0</item>
<item key="content_type"><![CDATA[text/xml]]></item>
<item key="description"></item>
<item key="format"><![CDATA[import]]></item>
<item key="id"><![CDATA[excel2ZMSRecordSetImport]]></item>
<item key="meta_types" type="list"><list>
</list>
</item>
<item key="name"><![CDATA[Excel Recordset-Import]]></item>
<item key="processes" type="list"><list>
<item type="dictionary"><dictionary>
<item key="file"></item>
<item key="id"><![CDATA[excel2ZMSRecordSet]]></item>
</dictionary>
</item>
<item type="dictionary"><dictionary>
<item key="file"></item>
<item key="id"><![CDATA[xslt_trans_xsl]]></item>
</dictionary>
</item>
</list>
</item>
<item key="roles" type="list"><list>
<item><![CDATA[ZMSAuthor]]></item>
<item><![CDATA[ZMSEditor]]></item>
</list>
</item>
</dictionary>
</item>
</dictionary>
</item>
<item type="dictionary"><dictionary>
<item key="type"><![CDATA[process]]></item>
<item key="value" type="dictionary"><dictionary>
<item key="acquired" type="int">0</item>
<item key="command"><![CDATA[<!-- BO excel2ZMSRecordSet -->

<dtml-let xsl="[]">
 <dtml-call "xsl.append('<?xml version='+QUOT+'1.0'+QUOT+' encoding='+QUOT+'ISO-8859-1'+QUOT+'?>\n')">
 <dtml-call "xsl.append('<xsl:stylesheet version='+QUOT+'1.0'+QUOT+'\n')">
 <dtml-call "xsl.append(' xmlns:xsl='+QUOT+'http://www.w3.org/1999/XSL/Transform'+QUOT+'\n')">
 <dtml-call "xsl.append(' xmlns:ss='+QUOT+'urn:schemas-microsoft-com:office:spreadsheet'+QUOT+'\n')">
 <dtml-call "xsl.append(' xmlns:spreadsheet='+QUOT+'urn:schemas-microsoft-com:office:spreadsheet'+QUOT+'\n')">
 <dtml-call "xsl.append('>\n')">
 <dtml-call "xsl.append('<xsl:output method='+QUOT+'xml'+QUOT+' encoding='+QUOT+'ISO-8859-1'+QUOT+'/>\n')">
 <dtml-call "xsl.append('<xsl:template match='+QUOT+'/'+QUOT+'>\n')">
 <dtml-call "xsl.append('<list>\n')">
 <dtml-call "xsl.append('<xsl:for-each select='+QUOT+'spreadsheet:Workbook/spreadsheet:Worksheet/spreadsheet:Table/spreadsheet:Row'+QUOT+'>\n')">
 <dtml-call "xsl.append('<item type='+QUOT+'dictionary'+QUOT+'>\n')">
 <dtml-call "xsl.append('<dictionary>\n')">
 <dtml-in "getMetaobjAttrIds(meta_id)[1:]">
  <dtml-let index=sequence-index key=sequence-item metaobjAttr="getMetaobjAttr(meta_id,key)">
   <dtml-call "xsl.append('<item')">
   <dtml-call "xsl.append(' key='+QUOT+key+QUOT)">
   <dtml-call "xsl.append(' type='+QUOT+metaobjAttr['type']+QUOT)">
   <dtml-call "xsl.append('>')">
   <dtml-if "key=='sort_id'">
    <dtml-call "xsl.append('<xsl:value-of select='+QUOT+'position()'+QUOT+'/>')">
   <dtml-else>
    <dtml-call "xsl.append('<xsl:value-of select='+QUOT+'spreadsheet:Cell[%i]/spreadsheet:Data'%index+QUOT+'/>')">
   </dtml-if>
   <dtml-call "xsl.append('</item>\n')">
  </dtml-let>
 </dtml-in>
 <dtml-call "xsl.append('</dictionary>\n')">
 <dtml-call "xsl.append('</item>\n')">
 <dtml-call "xsl.append('</xsl:for-each>\n')">
 <dtml-call "xsl.append('</list>\n')">
 <dtml-call "xsl.append('</xsl:template>\n')">
 <dtml-call "xsl.append('</xsl:stylesheet>\n')">
 <dtml-call "localfs_write(ZMS_FILTER_CUR_DIR+'/trans.xsl',''.join(xsl),'')">
</dtml-let>

<!-- EO excel2ZMSRecordSet -->]]></item>
<item key="id"><![CDATA[excel2ZMSRecordSet]]></item>
<item key="name"><![CDATA[Excel Recordset-Transformation]]></item>
<item key="type"><![CDATA[DTML Method]]></item>
</dictionary>
</item>
</dictionary>
</item>
<item type="dictionary"><dictionary>
<item key="type"><![CDATA[process]]></item>
<item key="value" type="dictionary"><dictionary>
<item key="acquired" type="int">0</item>
<item key="command"><![CDATA[<!-- BO ZMSRecordSet2Excel -->

<!-- EO ZMSRecordSet2Excel -->]]></item>
<item key="id"><![CDATA[ZMSRecordSet2Excel]]></item>
<item key="name"><![CDATA[RecordSet Excel-Transformation]]></item>
<item key="type"><![CDATA[DTML Method]]></item>
</dictionary>
</item>
</dictionary>
</item>
<item type="dictionary"><dictionary>
<item key="type"><![CDATA[process]]></item>
<item key="value" type="dictionary"><dictionary>
<item key="acquired" type="int">0</item>
<item key="command"><![CDATA[java -jar C:\Programme\zms\saxon\saxon.jar {in} {trans} > {out.xml}]]></item>
<item key="id"><![CDATA[xslt]]></item>
<item key="name"><![CDATA[XSLT (Saxon)]]></item>
<item key="type"><![CDATA[process]]></item>
</dictionary>
</item>
</dictionary>
</item>
<item type="dictionary"><dictionary>
<item key="type"><![CDATA[process]]></item>
<item key="value" type="dictionary"><dictionary>
<item key="acquired" type="int">0</item>
<item key="command"><![CDATA[java -jar C:\Programme\zms\saxon\saxon.jar {in} {cur_dir}/trans.xsl > {out.xml}]]></item>
<item key="id"><![CDATA[xslt_trans_xsl]]></item>
<item key="name"><![CDATA[XSLT (Saxon) {cur_dir}/trans.xsl]]></item>
<item key="type"><![CDATA[process]]></item>
</dictionary>
</item>
</dictionary>
</item>
</list>
