Subject: Re: [xsl] change number of indent blanks from default=3 to 2 ? From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx> Date: Tue, 03 Aug 2010 11:07:08 +0200 |
Hope this help, Regards
I applied the following simple XSLT script onto a given XML doc which let me indent the tags according to their hierarchy level.
The number of blanks used for each level is by default 3. How can I change this to 2
Even better: Is it possible to leave the indention for the top most 3 levels at 3 and change it only for all deeper levels to 2?
Ben
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes" method="xml"/>
<xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template> </xsl:stylesheet>
-- Matthieu Ricaud IGS-CP Service Livre numirique
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] change number of indent blan, Ben Stover | Thread | RE: [xsl] change number of indent , Praveen Chauhan |
[xsl] change number of indent blan, Ben Stover | Date | RE: [xsl] change number of indent , Praveen Chauhan |
Month |