xsl-list
[Top] [All Lists]

Problem with empty spaces

2005-07-21 00:48:05

Hi List,

In my XSLT, I converted some of the child nodes vales as attributes to the
parent. In the resultant XML file, I am getting empty spaces in place
of child nodes which are not added. How can I eliminate the white space.
for eg:
input xml looks like this:
<A>
        <ch name="ch1" value="1"/>
        <ch name="ch2" value="2"/>
        <ch name="ch3" value="3"/>
        <B>
                <ch name="ch4" value="4"/>
                <ch name="ch5" value="5"/>
        </B>
</A>

Output XML looks like this:
<A ch1="1" ch2="2" ch3="3">



        <B ch4="4" ch5="5" />
</A>

Thanks,
Laxmi Narayana




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>