Project

Profile

Help

Support #3539 » sample.xsl

abhishek munjal, 2017-11-21 13:01

 
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:saxonJavaMappingTransformation="java:com.adeptia.indigo.services.mapping.MappingTransformation" xmlns:saxonJavaMapperQueryExecutor="java:com.adeptia.indigo.services.mapping.support.dbquery.MapperQueryExecutor" xmlns:saxonJavaAggregateFunctionHandler="java:com.adeptia.indigo.services.mapping.AggregateFunctionHandler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:lda="http://www.cunamutual.com/LendingData.xsd" xmlns:LendingData.xsd="http://www.cunamutual.com/LendingData.xsd" xmlns:str="http://exslt.org/strings" exclude-result-prefixes="saxonJavaMappingTransformation saxonJavaMapperQueryExecutor saxonJavaAggregateFunctionHandler str" xmlns:saxon="http://saxon.sf.net/" extension-element-prefixes="saxon">
<xsl:output method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/>
<xsl:mode streamable="yes"/>
<xsl:param name="_userName"/>
<xsl:param name="_password"/>
<xsl:param name="_class"/>
<xsl:param name="_identifier"/>
<xsl:param name="_subject"/>
<xsl:param name="_repositoryPath"/>
<xsl:param name="_Input1"/>
<xsl:variable name="varConn" select="saxonJavaMapperQueryExecutor:getInstance($_identifier,'false')"/>
<xsl:variable name="apos">'</xsl:variable>
<xsl:variable name="quot">"</xsl:variable>
<xsl:template match="/">
<lda:LendingDataMessage>
<Sender>
<name>
<xsl:value-of select="lda:LendingDataMessage/Sender/name"/>
</name>
</Sender>
<Summary>
<fileCreationTimeStamp>
<xsl:value-of select="lda:LendingDataMessage/Summary/fileCreationTimeStamp"/>
</fileCreationTimeStamp>
</Summary>
<xsl:for-each select="lda:LendingDataMessage/Persons ! copy-of(.)">
<Persons>
<xsl:for-each select="Person ! copy-of(.)">
<Person>
<genderCode>
<xsl:value-of select="genderCode"/>
</genderCode>
</Person>
</xsl:for-each>
</Persons>
</xsl:for-each>
</lda:LendingDataMessage>
</xsl:template>
</xsl:stylesheet>
(1-1/3)