[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xalan Encoding Problems - RETRACTION

Subject: Re: Xalan Encoding Problems - RETRACTION
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 31 Oct 2001 12:01:51 +0100
xalan escaping
> I'm not sure hot to interpret what you are saying but does this mean with
> these two fixes, it works?
>
> BTW, check out bug #1639 which is about Xalan escaping characters for ISO
> encodings.


No, it's not a problem with the encoding. Xerces is completely working for
me, also in the current version 1.4.3.

But there is a bug in Xalan. It mixes the values of the params $code-type
and $height in the template 'barcode-EAN-cleaned' line 213 when calling the
template 'draw-barcode-EAN' in line 256.

<xsl:call-template name="draw-barcode-EAN">
    <!-- many with-param's -->
    ...
    <!-- the first with inner call-template (line 271): still correct value
of $code-type -->
    <xsl:with-param name="bar-and-space-widths">
      <xsl:call-template name="get-bar-space-width">
        <xsl:with-param name="value" select="$value"/>
        <xsl:with-param name="code-type" select="$code-type"/>
      </xsl:call-template>
    </xsl:with-param>


    <!-- the second with inner call-template (line 279): incorrect value of
$code-type -->
    <!-- it has the value of $height now -->
    <xsl:with-param name="bar-heights">
      <xsl:call-template name="get-bar-height">
        <xsl:with-param name="code-type" select="$code-type"/>
      </xsl:call-template>
    </xsl:with-param>

    <!-- more with-params with inner call-template, all with wrong
$code-type -->
</xsl:call-template>

Because of this wrong value of $code-type in the template 'get-bar-height'
(line 549) nothing matches there. Only the values 'EAN13', 'UPC-A', 'EAN-8'
and 'UPC-E' are possible as you can see, but not '70'. You can add an
<xsl:otherwise> below the 4 <xsl:when>. For example
<xsl:otherwise>||.....</xsl:otherwise>. So you will get a 'half' barcode.

The 2 things in bartest-FO.xsl are completely different. FOP doesn't work
with the wrong XSL-FO namespace and Xalan doesn't work with <xsl:import>,
but <xsl:include>, what I do not understand.

Regards,

Joerg


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.