You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Francois Thomasset <fr...@inria.fr> on 2002/08/09 13:19:37 UTC

xsl output: I'm perplex

Hi again
I have just started to play with xalan.
I have plainly imitated the birds example in SimpleTransform and I am surprised 
at
the output: I get a newline inserted after each element. 
How can I control the formatting?
Here is an excerpt of my xsl:
<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="xml" indent="yes"/>
<xsl:template match="identifier"><xsl:value-of select="@name"/>
<xsl:apply-templates/></xsl:template>
<xsl:template match="type"><xsl:apply-templates/></xsl:template>
<xsl:template match="basic_type"><xsl:value-of select="@size"/>
<xsl:value-ofselect="@type_name"/> </xsl:template>

And of my output:
   i
     integer 

with the following xml input:
   <identifier name="i">
    <type> <basic_type type_name="integer"/> </type>

     integer 



					François Thomasset.
					INRIA (A3)

Francois.Thomasset@inria.fr		Tel: +33 (1) 39-63-54-75
					Fax: +33 (1) 39-63-59-95
INRIA, Rocquencourt, BP 105, 78153 Le Chesnay Cedex, France