This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How can I reindent an XML-file for readability?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How can I reindent an XML-file for readability?
- From: Janning Vygen <vygen at planwerk6 dot de>
- Date: Tue, 5 Jun 2001 16:42:06 +0200
- Organization: Planwerk 6 /websolutions
- References: <D1F94D8C7C1FD111A5290020AF92B1B3E4CAF3@INTRASERVER>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Van: Michael Kay [SMTP:mhkay@iclway.co.uk]
> The following stylesheet:
>
> <xsl:stylesheet
> version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method=
> "xml" indent="yes"/>
> <xsl:strip-space elements="*"/>
> <xsl:template match="/"><xsl:copy-of
> select="."/></xsl:template>
> </xsl:stylesheet>
It works fine for xml documents which are just one file in the file system
How can i reindent files which belong to one big xml document.
if i have a master.xml with external entitites like this:
<book><docinfo><author>anybody</author></docinfo>
&part1;
&part2;
</book>
i cant apply the given stylsheet to this masterfile because i get one big
indented xml, but i want to keep the xml file splitted into small entities.
Is there a way to indent those files with XSL?
janning
--
Planwerk 6 /websolutions
Herzogstraße 86
40215 Düsseldorf
fon 0211-6015919
fax 0211-6015917
http://www.planwerk6.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list