xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Amiro <Tom.Am...@Sun.COM>
Subject Re: Differences between "normal" and xsltc output
Date Wed, 28 Aug 2002 12:17:44 GMT
Hi Timo,

While XSLTC doesn't match Xalan 100% on all output, I think the problems 
you describe have been fixed since release 2.3.1. You could try 
the lastest xsltc.jar from

  http://xml.apache.org/dist/xalan-j/nightly/

Tom

Timo Neumann wrote:
> 
> Gopal,
> 
> > | Is it intentional that there are differences between the HTML-Output of
> > | "normal" Xalan and using xsltc?
> > | We would like to use xsltc but it always tries to pretty-print our html
> > | output, which destroys our web page layout. It seems it doesn't take any
> > | care of the parameters in <xsl:output>. I saw no difference between
> > |
> > | <xsl:output method="html" media-type="text/html" encoding="UTF-8"/>
> > | and
> > | <xsl:output method="html" media-type="text/html" encoding="UTF-8"
> > | indent="no"/>
> >   I just tried with current code and it worked perfectly fine for me.
> >   Can you please say something more like in which Xalan/XSLTC version etc ?
> 
> I am using Xalan 2.31 and Xerces 2.02. Our application creates XML
> dynamically with Struts and then uses Xalan to create HTML output. It is
> running on a Weblogic Server.
> The Weblogic classpath contains xercesImpl202.jar, xmlParserAPIs202.jar,
> xml-apis231.jar, xsltc231.jar, and xalan231.jar. It is started with
> -Djavax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.TransformerFactoryImpl
> 
> I don't think that it is a bug in Xalan, as it would have been
> encountered by many people before. I am experiencing another problem
> with XSLTC:
> 
> It seems to treat umlauts (ä [ae],ö [oe],ü [ue]) different depending on
> the place of appearance.
> 
> XSL:
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="html" media-type="text/html" encoding="UTF-8"/>
> 
>   <input type="button" name="Submit">
>    <xsl:attribute name="value">
>     <xsl:value-of
> select="xmlData/resource[@name='organisation']/text[@name='accept']"/>
>    </xsl:attribute>
>   </input>
>   <font class="caption">
>    <xsl:value-of
> select="xmlData/resource[@name='organisation']/text[@name='selectOrg']"/>
>   </font>
> 
> XML:
> <?xml version="1.0" encoding="UTF-8"?>
> <xmlData>
>   <resource name="organisation" scope="application">
>    <text name="selectOrg">Bitte Organisation auswählen:</text>
>    <text name="accept">Übernehmen</text>
>   </resource>
> </xmlData>
> 
> Delivers this HTML:
>   <input type="button" name="Submit" value="%dcbernehmen">
>   <font class="caption">Bitte Organisation ausw&#228;hlen:</font>
> 
> The first umlaut should also be in the form "&#xxx", otherwise the
> browsers just print "%dc" and not "Ü".
> 
> I would be very happy if you could help me as I am still a beginner with
> Xalan.
> 
> Thanks a lot for your help,
> 
> Timo
> --
> F&F Computer Anwendungen        Tel: +49 89 51727-352
> und Unternehmensberatung GmbH   Fax: +49 89 51727-111
> Westendstr. 195                 Mail: t.neumann@ff-muenchen.de
> D-80686 Muenchen                http://www.ff-muenchen.de

-- 
 Tom Amiro -- SQA Engineer
 Sun XML Technology Development
 voice: 781-442-0589 Fax: 781-442-1437
 eMail: tom.amiro@.sun.com

Mime
View raw message