View Single Post
 
Old July 8th, 2010, 07:43 AM
anarleti anarleti is offline
Authorized User
 
Join Date: Mar 2010
Posts: 45
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by anarleti View Post
Hi Martin,

Thanks for your reply.

Regards,
Jyotsna.
Hi

I am uploading bellow xsl file
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output  method="xml" indent="yes" omit-xml-declaration="no"/>
<!-- Root template -->
<xsl:template match="/">
<dokument><xsl:attribute name="xsi:noNamespaceSchemaLocation">universal.xsd</xsl:attribute>
<hlavicka>		
<identifikacneCislo>			
<kodStatu/>			
<dic><xsl:value-of select="substring(/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_FIRST_PARTY_TAX_REG_NUM,2,30)"/></dic><xsl:text>&#xD;</xsl:text>		
</identifikacneCislo>
<druhSV>			
<riadny><xsl:value-of select="1"/></riadny><xsl:text>&#xD;</xsl:text>			
<opravny><xsl:value-of select="0"/></opravny><xsl:text>&#xD;</xsl:text>			
<dodatocny><xsl:value-of select="0"/></dodatocny><xsl:text>&#xD;</xsl:text>		
</druhSV>
<obdobie>			
<mesiac><xsl:value-of select="substring(/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/P_CUSTOM_CHAR4,4,2)"/></mesiac><xsl:text>&#xD;</xsl:text>				
<rok><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/P_CUSTOM_CHAR3"/></rok><xsl:text>&#xD;</xsl:text>		
</obdobie>
<obchodneMeno>			
<riadok><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_ESTABLISHMENT_NAME"/></riadok><xsl:text>&#xD;</xsl:text>	
</obchodneMeno>	
<adresa>			
<ulica><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_ADDRESS_LINE_1"/></ulica><xsl:text>&#xD;</xsl:text>			
<cislo><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_ADDRESS_LINE_2"/></cislo><xsl:text>&#xD;</xsl:text>			
<psc><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_POSTAL_CODE"/></psc><xsl:text>&#xD;</xsl:text>			
<obec><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_TOWN_OR_CITY"/></obec><xsl:text>&#xD;</xsl:text>			
<tel>				
<predcislie></predcislie>				
<cislo></cislo>			
</tel>			
<fax>				
<predcislie></predcislie>				
<cislo></cislo>			
</fax>		
</adresa>		
<celkovaHodnota><xsl:value-of select="sum(/ZXXEUSL/LIST_G_REP_TRX_DETAIL_INFO/G_REP_TRX_DETAIL_INFO/C_FUNCTIONAL_TOTAL)"/></celkovaHodnota><xsl:text>&#xD;</xsl:text>		
<pocet2Stran><xsl:apply-templates select="ZXXEUSL" mode="temp2"/></pocet2Stran><xsl:text>&#xD;</xsl:text>		
<konatel></konatel>
<konatelTel>			
<predcislie></predcislie>			
<cislo></cislo>		
</konatelTel>
<datumVyhlasenia>			
<den><xsl:value-of select="substring(/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/P_CUSTOM_CHAR4,1,2)"/></den><xsl:text>&#xD;</xsl:text>			
<mesiac><xsl:value-of select="substring(/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/P_CUSTOM_CHAR4,4,2)"/></mesiac><xsl:text>&#xD;</xsl:text>			
<rok><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/P_CUSTOM_CHAR3"/></rok><xsl:text>&#xD;</xsl:text>		
</datumVyhlasenia>
</hlavicka>
<telo>	
<strana>
<xsl:apply-templates select="/ZXXEUSL" mode="temp1"/> 
</strana>
</telo>
</dokument>	
</xsl:template>
<xsl:template name="t1" match="ZXXEUSL" mode="temp1">
<xsl:variable name="y"><xsl:apply-templates select="/ZXXEUSL" mode="temp2"/></xsl:variable>
<xsl:for-each-group select="LIST_G_REP_TRX_DETAIL_INFO/G_REP_TRX_DETAIL_INFO" group-by="concat(C_VAT_TAX_REG_NUM,C_BILLING_TP_SITE_NAME,C_TAX_REPORTING_NAME)">
<xsl:variable name="gds"><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_ESL_EU_GOODS_NAME"/></xsl:variable>
<xsl:variable name="serv"><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_ESL_EU_SERVICES_NAME"/></xsl:variable>
<xsl:variable name="trng"><xsl:value-of select="/ZXXEUSL/LIST_G_REP_PARAMETER_INFO/G_REP_PARAMETER_INFO/CP_ESL_EU_ADDL_CODE1_NAME"/></xsl:variable>
<xsl:if test="(((position()+3) mod 4) + 1) =  1 ">
<oznacenie>				
<aktualna><xsl:value-of select="(position()+3) idiv 4"/></aktualna><xsl:text>&#xD;</xsl:text>
<celkovo><xsl:value-of select="$y"/></celkovo><xsl:text>&#xD;</xsl:text>  			
</oznacenie>
</xsl:if> 			
<zaznam>				
<kodStatu><xsl:value-of select="substring(C_VAT_TAX_REG_NUM,1,2)"/></kodStatu><xsl:text>&#xD;</xsl:text>				
<idCislo><xsl:value-of select="substring(C_VAT_TAX_REG_NUM,3,30)"/></idCislo><xsl:text>&#xD;</xsl:text>				
<hodnota><xsl:value-of select="sum(current-group()/C_FUNCTIONAL_TOTAL)"/></hodnota><xsl:text>&#xD;</xsl:text>				
<xsl:if test="C_TAX_REPORTING_NAME =$gds"> 
<kod></kod><xsl:text>&#xD;</xsl:text>
</xsl:if>
<xsl:if test="C_TAX_REPORTING_NAME =$trng"> 
<kod>1</kod><xsl:text>&#xD;</xsl:text>
</xsl:if>
<xsl:if test="C_TAX_REPORTING_NAME =$serv"> 
<kod>2</kod><xsl:text>&#xD;</xsl:text>
</xsl:if>	
</zaznam>
</xsl:for-each-group>
</xsl:template>
<xsl:template name="tpgs" match="ZXXEUSL" mode="temp2">
<xsl:variable name="x">	
<xsl:for-each-group select="LIST_G_REP_TRX_DETAIL_INFO/G_REP_TRX_DETAIL_INFO" group-by="concat(C_VAT_TAX_REG_NUM,C_BILLING_TP_SITE_NAME,C_TAX_REPORTING_NAME)">
<P><xsl:value-of select="1"/></P><xsl:text>&#xD;</xsl:text>
</xsl:for-each-group>
</xsl:variable>
<xsl:for-each select="$x"> 
<xsl:variable name="jCount" select="sum(P)"/> 
<xsl:value-of select="ceiling($jCount div 4)"/> 
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
It is working perfectly in j developer but
I am unable to upload into applications
while uploading into applications its giving error as "The uploaded file CLEF347SK.xsl is invalid. The file should be in XSL format."

Regards,
Jyotsna.