xsl-list
[Top] [All Lists]

[xsl] Using mode removes linebreaks/indents

2013-04-19 15:23:52
Hi,

For some reason when using mode the indentation and line breaks are all removed:
This is the initiater:
<xsl:template match="/" mode="run2">
        
        <nitf version="-//IPTC//DTD NITF 3.2//EN" change.date="October 10, 
2003" change.time="19:30"
            baselang="no-NO">
            <!-- Call template header -->
            <xsl:call-template name="header" />
            
            <body>
                <xsl:call-template name="body3"/>
            </body>
        </nitf>
    </xsl:template>
    
Output:
<?xml version="1.0" encoding="UTF-8"?><nitf 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:ckbk="http://my.safaribooksonline.com/book/xml/0596009747/dates-and-times/";
 version="-//IPTC//DTD NITF 3.2//EN" change.date="October 10, 2003" 
change.time="19:30" baselang="no-NO"><head><title>Langoddstips uke 
16</title><meta name="timestamp" content="2013.4.18 12:52:50"/>

I have this in the "global" area of xslt:
<xsl:output method="xml" indent="yes" encoding="ISO-8859-1" name="xml" />

Any suggestions?

Best regards,

Trond Husø

--~------------------------------------------------------------------
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>