Subject: Re: [xsl] Using mode removes linebreaks/indents From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 19 Apr 2013 16:30:56 -0400 |
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?
-- Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using mode removes linebreaks, trond.huso | Thread | [xsl] accumulators, Jakub Malý |
[xsl] Using mode removes linebreaks, trond.huso | Date | [xsl] accumulators, Jakub Malý |
Month |