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

Re: How can I reindent an XML-file for readability?

Subject: Re: How can I reindent an XML-file for readability?
From: Janning Vygen <vygen@xxxxxxxxxxxx>
Date: Wed, 6 Jun 2001 12:35:44 +0200
reindent xml
Am Dienstag,  5. Juni 2001 20:06 schrieb Goetz Bock:

> > 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.

but this way i can only indent the last files in a chain of external 
entities. so all files which have external entitites themself cant be 
indented, so you usally have to use another tool to reindent your xml code. 
very strange to use a non xsl tool to transform an xml file.

sometimes i think that external entities are less powerfull than it seems to 
be..

janning

>     Goetz.

----------------------------------------
Content-Type: application/pgp-signature; charset="us-ascii"; name="Anhang: 1"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

-- 
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


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.