View Single Post
 
Old July 8th, 2010, 06:32 AM
anarleti anarleti is offline
Authorized User
 
Join Date: Mar 2010
Posts: 45
Thanks: 6
Thanked 0 Times in 0 Posts
Default How do we include the namespace and xsd as attributes to the tag

Hi,

I am using XSL1.0 version
In my xsl file using name space like
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
In my output should be like below as
Code:
<dokument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="universal.xsd">
<hlavicka>		
    <identifikacneCislo>			
      <kodStatu/>			
      <dic><![CDATA[2020372640]]></dic>		
    </identifikacneCislo>		
    <danovyUrad/>		
    <druhSV>			
      <riadny><![CDATA[1]]></riadny>			
      <opravny><![CDATA[0]]></opravny>			
      <dodatocny><![CDATA[0]]></dodatocny>		
    </druhSV>
</hlavicka>
</dokument>
How do we add name space and xsd as a attribute to the corresponding tag?
Pleae help me out.

Regards,
Jyotsna.