Hi,
i have small problem,
below is my expected xml o/p
Code:
<dokument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="universal.xsd">
<hlavicka>
<identifikacneCislo>
<kodStatu/>
<dic>xyz</dic>
</identifikacneCislo>
</hlavicka>
<telo>
<strana>
<oznacenie>
<aktualna>1</aktualna>
<celkovo>2</celkovo>
</oznacenie>
</strana>
<strana>
<oznacenie>
<aktualna>3</aktualna>
<celkovo>4</celkovo>
</oznacenie>
</strana>
</telo>
</dokument>
my xml o/p should start with <dokument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="universal.xsd">
and should end with </dokument>
in my xsl i mentioned like below
Code:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<dokument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="universal.xsd">
<xsl:apply-templates select="/ZXXEUSL" mode="temp1"/>
</dokument>
</xsl:template>
<xsl:template match="ZXXEUSL" mode="temp1">
...some logic..
</xsl:template>
</xsl:stylesheet>
but when iam trying to apply it in apps it is saying invalid xsl file..
Kindly suggest how i can get my expected xml o/p
Thanks
Anil