another problem running krysalis-barcode

"Kloeck, Erwin" <[email protected]> Mon, 3 Nov 2003 11:12:06 +0100
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Jeremias, 

thanks for your help.

Now I have another problem. I wrote a template that renders strings
as barcode (see the template below). I cannot get it to render the
string I pass in as a parameter. The template, as given below, renders
the string "$message" as barcode, when I write msg="{$message}" the resulting
PDF file cannot be read. Any help is appreciated.

Thanks in advance,

Erwin




    <xsl:template name="render-barcode">
        <xsl:param name="code" select="code39" />
        <xsl:param name="message" select="'0000000000000'"/>

        <fo:instream-foreign-object>

            <barcode:barcode xmlns:barcode="http://www.krysalis.org/barcode/ns"
                msg="$message">
                <xsl:choose>
                    <xsl:when test="$code = 'code39'">
                        <barcode:code39>
                            <barcode:height>15mm</barcode:height>
                        </barcode:code39>
                    </xsl:when>
                    <xsl:when test="$code = 'code128'">
                        <barcode:code128>
                            <barcode:height>15mm</barcode:height>
                        </barcode:code128>
                    </xsl:when>
                    <xsl:otherwise>
                        <barcode:code39>
                            <barcode:height>10mm</barcode:height>
                        </barcode:code39>
                    </xsl:otherwise>
                </xsl:choose>
            </barcode:barcode>
        </fo:instream-foreign-object>
    </xsl:template>


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/