[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] How can I reindent an XML-file for readability?
Subject: RE: [xsl] How can I reindent an XML-file for readability? From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Thu, 7 Jun 2001 10:26:38 +0100 |
> 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? > Preprocess the file using SED to replace "&" by ""; then run the transformation; then postprocess using SED to replace "" by "&". Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How can I reindent an XML, Wendell Piez | Thread | [xsl] XSLT and IE-mac, Hasselback, Matt |
Re: [xsl] xml->xsl->pdf, Joern Clausen | Date | Re: [xsl] xml->xsl->pdf, Sebastian Rahtz |
Month |
Keywords