Subject: Re: [XSLT] Put element in new-line
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 6 Mar 2008 11:17:40 +0000
|
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/
|