This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: simple problem of getting line breaks in the output


> The output I get is :
> <?xml version="1.0" encoding="UTF-8"?>
> <constant>reading</constant><constant>singing</constant>
> 
> but the output I need is:
> <?xml version="1.0" encoding="UTF-8"?>
> <constant>reading</constant>
> <constant>singing</constant>

In your stylesheet, add <xsl:output method="xml" indent="yes"/> to your
stylesheet after the xsl:stylesheet element (not always guaranteed to
work). Or, insert <xsl:text>&#10;</xsl:text> after the </constant>.

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]