About XSLTC, i’ve modified the output_html.properties( indent-amount=2, before:0 ).

I’ve rebuild the xalan-2.5.2.jar and now, the indentation works with XSLTC.

 

So, XSLTC doesnot take care of xalan:indent-amount="2" in the XSL( bug ? ).

 

About the strip-spaces, I did not find yet a solution.

 

-----Message d'origine-----
De : Laurent Michenaud
Envoyé : mercredi 14 janvier 2004 12:00
À : '[EMAIL PROTECTED]'
Objet : Problem with indentation (xalan & xsltc )

 

Hi,

 

When i use Xalan, the html output is quite correct :

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">

<html>

  <body>

    <table>

      <tr>

        <td></td>

      </tr>

    </table>

    <span> test  </span>

  </body>

</html>

 

A little problem : I would like the spaces before and after “test” to be deleted.

 

I tried with <xsl:strip-space elements="*"/> but it doesnot work.

 

The big problem : When I activate XSLTC, the ouput is horrible :

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">

<html xmlns:xalan="http://xml.apache.org/xslt">

<body>

<table>

<tr>

<td></td>

</tr>

</table>

<span>      test  </span>

</body>

</html>

 

My XSL is very simple :

 

<?xml version="1.0" encoding="ISO-8859-1"?>

  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  xmlns:xalan="http://xml.apache.org/xslt">

                       

  <xsl:output encoding="ISO-8859-1" method="html" version="4.0"

  doctype-public="-//W3C//DTD HTML 4.01//EN"

  doctype-system="http://www.w3.org/TR/html4/strict.dtd"

  indent="yes" xalan:indent-amount="2" media-type="text/html"/>

 

  <xsl:strip-space elements="*"/>

  <xsl:preserve-space elements="pre|code" />

 

  <xsl:template match="/">

 

  <html>

  <body>

  <table><tr><td>

  </td>

  </tr></table>

  <span>      test     </span>    

 

  </body>

  </html>

  </xsl:template>

 

</xsl:stylesheet>

 

Do u know why ?    

 

Thanks

 

Reply via email to