servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Valdes" <javiervaldesp...@gmail.com>
Subject Problem with output indent in saxon component
Date Mon, 01 Dec 2008 07:49:25 GMT
Hi,

We are having a problem with the output indent when using the saxon
component. We are using the XSLT endpoint, and our xslt files are as the
following:

<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output encoding="ISO-8859-1" indent="yes" />
    <xsl:template match='/'>
        <ack>
            <xsl:apply-templates />
        </ack>
    </xsl:template>
    <xsl:template match='header'>
        <header>
            <id>ACK<xsl:value-of select='id'/></id>
            ...
        </header>
        <body>
             ...
        </body>
    </xsl:template>
    <xsl:template match="text()" />
</xsl:stylesheet>

But the output that we get do not respect the indent, is something like
this:

<ack><header><id>...</header><body>...</body></ack>

Instead of

<ack>
    <header>
        <id>
            ...
        </id>
    </header>
    <body>
        ...
    </body>
</ack>

Can anyone help us?

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message