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: Goetz Bock <bock at blacknet dot de>
- Date: Tue, 5 Jun 2001 20:06:21 +0200
- References: <D1F94D8C7C1FD111A5290020AF92B1B3E4CAF3@INTRASERVER> <0106051642060U.10190@janning>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Tue, Jun 05 '01 at 16:42, Janning Vygen wrote:
> 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?
Jein ;-)
You must use the given XSL-T on the included files, not on the master
files. If you reindent the master file the included files are included
by the XML parser and the XSL-T processor can not figure out, that the
given section of an XML document was included using an entity.
Goetz.
PGP signature