Re: [xsl] Exception : Could not compile stylesheet

Subject: Re: [xsl] Exception : Could not compile stylesheet
From: "Charanpreet Arora" <send2charan@xxxxxxxxx>
Date: Mon, 31 Dec 2007 02:24:36 -0800
Please find below the styleheet for your reference:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="";

    <xsl:output method="xml" version="1.0" indent="yes"/>

    <xsl:include href="barcode.xsl"/>
    <xsl:include href="USReceiptTemplates.xsl"/>

    <xsl:template match="/">

        <fo:root font-size="8pt" color="black" font-family="MyriadMed">

                <fo:simple-page-master master-name="POSReceipt"
                    page-width="2.83in" margin-top="1cm"
margin-bottom="0.20cm" margin-left="0.20cm"
                    <fo:region-body margin-top="0.20cm" margin-bottom="0.20cm"/>

            <fo:page-sequence master-reference="POSReceipt">
                <fo:flow flow-name="xsl-region-body">
                        <xsl:call-template name="adminReceiptHeader"/>
                        <xsl:call-template name="adminReceiptBody"/>
                        <xsl:call-template name="adminReceiptFooter"/>


    <xsl:template name="adminReceiptHeader">
        <xsl:if test="//header/text() != ''">
            <xsl:call-template name="receipt_header"/>
        <xsl:call-template name="apple_logo"/>
        <xsl:call-template name="store_info"/>
        <xsl:call-template name="customer_info"/>
        <xsl:call-template name="rule">
            <xsl:with-param name="thickness">1pt</xsl:with-param>

    <xsl:template name="adminReceiptBody">
            <fo:table-column column-width="75%" column-number="1"/>
            <fo:table-column column-width="25%" column-number="2"/>
                <xsl:for-each select="//items">
                        <xsl:call-template name="item_detail_line"/>
                        <fo:table-cell number-columns-spanned="2">
                            <xsl:copy-of select="$blank_line"/>
        <xsl:call-template name="rule">
            <xsl:with-param name="thickness">1pt</xsl:with-param>
        <xsl:call-template name="totals"/>
        <xsl:call-template name="rule">
            <xsl:with-param name="thickness">2pt</xsl:with-param>

    <xsl:template name="adminReceiptFooter">
        <xsl:call-template name="barcode"/>
        <xsl:call-template name="loop">
            <xsl:with-param name="var" select="//footerBlankLines"/>
        <xsl:for-each select="//footer">
            <fo:block text-align="center">
                <xsl:value-of select="."/>


On Dec 31, 2007 1:56 AM, Kamal Bhatt <kbhatt@xxxxxxxxx> wrote:
> Hi,
> I think you will get a better response from the Xalan mailing list. That
> said, I think that this is a problem with your stylesheet. Do you have a
> copy of the stylesheet in question?
> Cheers.
> > Dear All,
> >
> > I'm using (renamed as for
> > custom use) found in xalan-j_2_7_0 samples directory for
> > transformations in my custom application. The program compiles
> > successfully but gives the following error during runtime:
> >
> > ERROR:  'org/apache/avalon/framework/configuration/Configuration'
> > FATAL ERROR:  'Could not compile stylesheet'
> > Exception in thread "main"
> > javax.xml.transform.TransformerConfigurationException: Could not
> > compile stylesheet
> >
> > I'll really appreciate any help in
> > this regard.
> >
> > Thanks,
> > Charan.

Current Thread