[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using mode removes linebreaks/indents

Subject: Using mode removes linebreaks/indents
From: <trond.huso@xxxxxx>
Date: Thu, 18 Apr 2013 11:07:49 +0000
 Using mode removes linebreaks/indents
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-tim
es/" 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 Husx

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.