<?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:Repository="http://www.tibco.com/xmlns/repo/types/2002" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:getZipList="getZipList">
	<xsl:output method="xml" indent="yes"/>

	<xsl:template match="/">
		<xsl:call-template name="getZipList">
			<xsl:with-param name="filename" select="'c:/sample.zip'"/>
		</xsl:call-template>
		<xsl:call-template name="getZipListEntry">
			<xsl:with-param name="zipfilename" select="'c:/sample.zip'"/>
			<xsl:with-param name="filename" select="'getZipList.xslt'"/>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="getZipList">
		<xsl:param name="filename"/>
		<zipfile file="{$filename}">
			<xsl:variable name="zip" as="xsd:string" select="getZipList:getList($filename)"/>
			<xsl:variable name="files" select="tokenize($zip,',')"/>

			<xsl:value-of select="$zip"/>
			<xsl:for-each select="$files">
				<file>
					<xsl:value-of select="."/>
				</file>
			</xsl:for-each>
		</zipfile>
	</xsl:template>
	<xsl:template name="getZipListEntry">
		<xsl:param name="filename"/>
		<xsl:param name="zipfilename"/>
		<xsl:variable name="T" select="getZipList:getFileContent($zipfilename,$filename)"/>
		<xsl:variable name="zip">
			<dd>
				<xsl:value-of  disable-output-escaping="yes" select="$T"/>
			
			</dd>
		</xsl:variable>
		<xsl:value-of disable-output-escaping="yes" select="$zip"/>"?<xsl:value-of select="$zip//*"/>?</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="no" externalpreview="no" url="file:///c:/Documents and Settings/nlv18129/My Documents/adb exception handling/TRACER.PSC_MSG_FLOW_DEF_DETAIL.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="..\TRACER.PSC_MSG_FLOW_DEF_DETAIL.xml" srcSchemaRoot="root" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="xsl:value&#x2D;of" x="243" y="0"/><block path="xsl:for&#x2D;each" x="173" y="0"/><block path="xsl:for&#x2D;each/xsl:value&#x2D;of" x="283" y="0"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->