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

Re: [XSLT] Put element in new-line

Subject: Re: [XSLT] Put element in new-line
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 6 Mar 2008 11:17:40 +0000
Re:  [XSLT] Put element in new-line
On 06/03/2008, igutierrez027@xxxxxxxxxxxxx <igutierrez027@xxxxxxxxxxxxx> wrote:
> Hello everybody!
>
>  How I can do for put <xs:schema ....> in his next new-line and also
>  <xs:element name="newFile" type="xs:string"/> in his next new-line?
>
>
>  <?xml version="1.0" encoding="UTF-8><xs:schema
>  xmlns:xs="http://www.w3.org/2001/XMLSchema"
>  xmlns:dc="http://purl.org/dc/elements/1.1/"
>  xmlns:ns1="http://bibtexml.sf.net/" elementFormDefault="qualified"
>  targetNamespace="http://bibtexml.sf.net/" version="2.0">
>
>   <xs:import namespace="http://purl.org/dc/elements/1.1/"
>  schemaLocation="dc.xsd"/>
>   <xs:element name="dateofread" type="xs:date"/>
>   <xs:element name="reviewed" type="xs:string"/><xs:element
>  name="newFile" type="xs:string"/>
>
>  </xs:schema>

I think you are after:

<xsl:output indent="yes"/>

used with at least:

<xsl:template match="/">
  <xsl:copy-of select="."/>
</xsl:template>

By the way your XML declaration is:

<?xml version="1.0" encoding="UTF-8>

when it should end with:

....encoding="UTF-8"?>

you get some funny error message without that quote and question mark  :)


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.