DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11166>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11166

TransformerConfigurationException  - With valid XSLT file





------- Additional Comments From [EMAIL PROTECTED]  2002-07-25 15:22 
-------
Yes, it works.

My problem is that I programmatically build 5000 XML document and
want to transform them, does XSLTC is the best solution ?

But you have to know that your test is based on file !
In my application I build the XSLT file !

Note : To use XSLTC I change the property
       "javax.xml.transform.TransformerFactory",
      I have try to use Native API like this :

XSLTC tXSLTC = new XSLTC();
tXSLTC.init();
tXSLTC.compile( <-- I CANNOT PUT A DOCUMENT, HOW CAN I DO ??

My code
=============
// Install XSLTC
Properties p = System.getProperties();
p.put("javax.xml.transform.TransformerFactory",
       "org.apache.xalan.xsltc.trax.TransformerFactoryImpl");
System.setProperties( p );

// Build XSLT document
text = "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"; 
version=\"1.0\">";
text += ....

DOMParser tDOMParser = new DOMParser();
tDOMParser.parse( new InputSource( new StringReader( text) ) );
xslt = tDOMParser.getDocument();

// THE CRASH IS HERE !
TransformerFactory fact= TransformerFactory.newInstance();
mTransformer = fact.newTransformer(new DOMSource(xslt.getDocumentElement()) );

XSLT file
=============
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
    <xsl:template match="/">
        <xsl:apply-templates select="dataobject"/>
    </xsl:template>
    <xsl:template match="dataobject">
        <dataobject>
            <quotation>
                <quotation.instrument.code.ric/>
                <quotation.instrument.code.ch>
                    <xsl:value-of 
select="//dataobject/PRD/VAI/quotation.instrument.code.ch"/>
                </quotation.instrument.code.ch>
                <quotation.instrument.code.isin/>
                <quotation.instrument.code.fr/>
                <quotation.provider/>
                <quotation.provider.date>
                    <xsl:value-of 
select="//dataobject/PRD/DAE/quotation.provider.date"/>
                </quotation.provider.date>
                <quotation.quote.type>
                    <xsl:value-of 
select="//dataobject/PRD/PRU/quotation.quote.type"/>
                </quotation.quote.type>
                <quotation.quote.type.statistical/>
                <quotation.stockexchange/>
                <quotation.stockexchange.date>
                    <xsl:value-of 
select="//dataobject/PRD/PRU/quotation.stockexchange.date"/>
                </quotation.stockexchange.date>
                <quotation.stockexchange.time>
                    <xsl:value-of 
select="//dataobject/PRD/PRU/quotation.stockexchange.time"/>
                </quotation.stockexchange.time>
                <quotation.value>
                    <xsl:value-of 
select="//dataobject/PRD/PRU/quotation.value"/>
                </quotation.value>
                <quotation.currency>
                    <xsl:value-of 
select="//dataobject/PRD/WAI/quotation.currency"/>
                </quotation.currency>
                <quotation.midPrice/>
                <quotation.openPrice/>
                <quotation.previousClosePrice/>
                <quotation.priceQualifier/>
                <quotation.midPriceReuters/>
                <quotation.volume/>
                <quotation.lowPrice/>
                <quotation.latestRateMarker/>
                <quotation.latestRate/>
                <quotation.datePrevious/>
                <quotation.closingPrice/>
                <quotation.askPrice/>
                <quotation.bidPrice/>
                <quotation.highPrice/>
                <quotation.statisticalquotetype>
                    <xsl:value-of 
select="//dataobject/PRD/PRS/quotation.statisticalquotetype"/>
                </quotation.statisticalquotetype>
                <quotation.stockexchange.code.bcn>
                    <xsl:value-of 
select="//dataobject/PRD/GEI/quotation.stockexchange.code.bcn"/>
                </quotation.stockexchange.code.bcn>
                <income.number>
                    <xsl:value-of select="//dataobject/XCD/MGG/income.number"/>
                </income.number>
                <income.gross.currency>
                    <xsl:value-of 
select="//dataobject/XCD/XAB/income.gross.currency"/>
                </income.gross.currency>
                <income.gross.value>
                    <xsl:value-of 
select="//dataobject/XCD/XAB/income.gross.value"/>
                </income.gross.value>
                <income.paymentdate>
                    <xsl:value-of 
select="//dataobject/XCD/XAA/income.paymentdate"/>
                </income.paymentdate>
                <income.exdate>
                    <xsl:value-of select="//dataobject/XCD/XVE/income.exdate"/>
                </income.exdate>
            </quotation>
            <instrument>
                <instrument.code>
                    <xsl:value-of 
select="//dataobject/FAD/NKN/instrument.code"/>
                </instrument.code>
                <instrument.code.ric/>
                <instrument.code.ch>
                    <xsl:value-of 
select="//dataobject/FZD/VAI/instrument.code.ch"/>
                </instrument.code.ch>
                <instrument.code.isin>
                    <xsl:value-of 
select="//dataobject/FAD/FAS/instrument.code.isin"/>
                </instrument.code.isin>
                <instrument.type.code>
                    <xsl:value-of 
select="//dataobject/FAD/FMB/instrument.type.code"/>
                </instrument.type.code>
                <instrument.main.language.code>
                    <xsl:value-of 
select="//dataobject/FAD/FMB/instrument.main.language.code"/>
                </instrument.main.language.code>
                <instrument.language.code>
                    <xsl:value-of 
select="//dataobject/FAD/VAK/instrument.language.code"/>
                </instrument.language.code>
                <instrument.actor.code>
                    <xsl:value-of 
select="//dataobject/FAD/GEI/instrument.actor.code"/>
                </instrument.actor.code>
                <instrument.accounting.category/>
                <instrument.economic.sector/>
                <instrument.category.fiscal/>
                <instrument.category.internal/>
                <instrument.category.official/>
                <instrument.nominal.currency>
                    <xsl:value-of 
select="//dataobject/FAD/FMA/instrument.nominal.currency"/>
                </instrument.nominal.currency>
                <instrument.nominal.value>
                    <xsl:value-of 
select="//dataobject/FAD/FMA/instrument.nominal.value"/>
                </instrument.nominal.value>
                <instrument.unit>
                    <xsl:value-of 
select="//dataobject/FAD/FMA/instrument.unit"/>
                </instrument.unit>
                <instrument.sector.geographical/>
                <instrument.performance.class/>
                <instrument.statistical.primarycode/>
                <instrument.statistical.secondarycode.a/>
                <instrument.statistical.secondarycode.b/>
                <instrument.risk.class/>
                <instrument.shortname>
                    <xsl:value-of 
select="//dataobject/FAD/VAK/instrument.shortname"/>
                </instrument.shortname>
                <instrument.solvency.class/>
                <xsl:for-each select="//dataobject/FZD/FMF">
                    <instrument.callable.debtor>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.callable.debtor"/>
                    </instrument.callable.debtor>
                    <instrument.callable.creditor>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.callable.creditor"/>
                    </instrument.callable.creditor>
                    <instrument.amortisation>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.amortisation"/>
                    </instrument.amortisation>
                    <instrument.partly.paid.issue>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.partly.paid.issue"/>
                    </instrument.partly.paid.issue>
                    <instrument.extension.debtor>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.extension.debtor"/>
                    </instrument.extension.debtor>
                    <instrument.extension.creditor>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.extension.creditor"/>
                    </instrument.extension.creditor>
                    <instrument.conversion.debtor>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.conversion.debtor"/>
                    </instrument.conversion.debtor>
                    <instrument.conversion.creditor>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.conversion.creditor"/>
                    </instrument.conversion.creditor>
                    <instrument.repayment.other.CCY>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.repayment.other.CCY"/>
                    </instrument.repayment.other.CCY>
                    <instrument.stockingup>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.stockingup"/>
                    </instrument.stockingup>
                    <instrument.nominal.reduction>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.nominal.reduction"/>
                    </instrument.nominal.reduction>
                    <instrument.payment.known.issue>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.payment.known.issue"/>
                    </instrument.payment.known.issue>
                    <instrument.covered.warrant>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.covered.warrant"/>
                    </instrument.covered.warrant>
                    <instrument.certificate>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.certificate"/>
                    </instrument.certificate>
                    <instrument.vote.carrying>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.vote.carrying"/>
                    </instrument.vote.carrying>
                    <instrument.distribution.other.CCY>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.distribution.other.CCY"/>
                    </instrument.distribution.other.CCY>
                    <instrument.without.coupon>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.without.coupon"/>
                    </instrument.without.coupon>
                    <instrument.isma.regulated>
                        <xsl:value-of 
select="//dataobject/FZD/FMF/instrument.isma.regulated"/>
                    </instrument.isma.regulated>
                </xsl:for-each>
                <instrument.bond.interest.type>
                    <xsl:value-of 
select="//dataobject/FZD/FZY/instrument.bond.interest.type"/>
                </instrument.bond.interest.type>
                <instrument.bond.interest.rate>
                    <xsl:value-of 
select="//dataobject/FZD/FZY/instrument.bond.interest.rate"/>
                </instrument.bond.interest.rate>
                <instrument.bond.distribution>
                    <xsl:value-of 
select="//dataobject/FZD/FZY/instrument.bond.distribution"/>
                </instrument.bond.distribution>
                <instrument.bond.daycountconvention>
                    <xsl:value-of 
select="//dataobject/FZD/FZY/instrument.bond.daycountconvention"/>
                </instrument.bond.daycountconvention>
                <instrument.bond.firstdistribution>
                    <xsl:value-of 
select="//dataobject/FZD/FZY/instrument.bond.firstdistribution"/>
                </instrument.bond.firstdistribution>
                <instrument.bond.startofinterest>
                    <xsl:value-of 
select="//dataobject/FZD/FZY/instrument.bond.startofinterest"/>
                </instrument.bond.startofinterest>
                <instrument.bond.firstinterestpayment>
                    <xsl:value-of 
select="//dataobject/FZD/FZY/instrument.bond.firstinterestpayment"/>
                </instrument.bond.firstinterestpayment>
                <instrument.bond.redemption>
                    <xsl:value-of 
select="//dataobject/FZD/FZO/instrument.bond.redemption"/>
                </instrument.bond.redemption>
                <instrument.share.type>
                    <xsl:value-of 
select="//dataobject/FZD/FME/instrument.share.type"/>
                </instrument.share.type>
                <instrument.share.nominal.type>
                    <xsl:value-of 
select="//dataobject/FZD/FME/instrument.share.nominal.type"/>
                </instrument.share.nominal.type>
                <instrument.share.votingrightsnumber>
                    <xsl:value-of 
select="//dataobject/FZD/FME/instrument.share.votingrightsnumber"/>
                </instrument.share.votingrightsnumber>
                <instrument.share.preferencedividend.type>
                    <xsl:value-of 
select="//dataobject/FZD/FME/instrument.share.preferencedividend.type"/>
                </instrument.share.preferencedividend.type>
            </instrument>
            <actor>
                <actor.type.code>
                    <xsl:value-of 
select="//dataobject/IAD/IAB/actor.type.code"/>
                </actor.type.code>
                <actor.country>
                    <xsl:value-of select="//dataobject/IAD/IAC/actor.country"/>
                </actor.country>
                <actor.shortname>
                    <xsl:value-of 
select="//dataobject/IAD/GEL/actor.shortname"/>
                </actor.shortname>
                <actor.name>
                    <xsl:value-of select="//dataobject/IAD/GEL/actor.name"/>
                </actor.name>
                <actor.acronym>
                    <xsl:value-of select="//dataobject/IAD/GEL/actor.acronym"/>
                </actor.acronym>
                <actor.town>
                    <xsl:value-of select="//dataobject/IAD/GEL/actor.town"/>
                </actor.town>
                <actor.foundingdate>
                    <xsl:value-of 
select="//dataobject/IAD/IBC/actor.foundingdate"/>
                </actor.foundingdate>
                <actor.legalform>
                    <xsl:value-of 
select="//dataobject/IAD/IBC/actor.legalform"/>
                </actor.legalform>
                <actor.currency>
                    <xsl:value-of select="//dataobject/IAD/IBC/actor.currency"/>
                </actor.currency>
                <actor.endoflastfiscalyear>
                    <xsl:value-of 
select="//dataobject/IAD/IBC/actor.endoflastfiscalyear"/>
                </actor.endoflastfiscalyear>
                <actor.endofcurrentfiscalyear>
                    <xsl:value-of 
select="//dataobject/IAD/IBC/actor.endofcurrentfiscalyear"/>
                </actor.endofcurrentfiscalyear>
                <actor.company.economicsector>
                    <xsl:value-of 
select="//dataobject/IAD/IBB/actor.company.economicsector"/>
                </actor.company.economicsector>
                <actor.company.code>
                    <xsl:value-of 
select="//dataobject/IAD/GEI/actor.company.code"/>
                </actor.company.code>
                <actor.tradingplace.delta>
                    <xsl:value-of 
select="//dataobject/IHD/IBT/actor.tradingplace.delta"/>
                </actor.tradingplace.delta>
                <xsl:for-each select="//dataobject/IHD/IAI">
                    <actor.tradingplace.code.scheme>
                        <xsl:value-of 
select="//dataobject/IHD/IAI/actor.tradingplace.code.scheme"/>
                    </actor.tradingplace.code.scheme>
                    <actor.tradingplace.code>
                        <xsl:value-of 
select="//dataobject/IHD/IAI/actor.tradingplace.code"/>
                    </actor.tradingplace.code>
                </xsl:for-each>
                <actor.tradingplace.code.bcn>
                    <xsl:value-of 
select="//dataobject/IHD/GEI/actor.tradingplace.code.bcn"/>
                </actor.tradingplace.code.bcn>
                <actor.tradingplace.startingofsummer>
                    <xsl:value-of 
select="//dataobject/IHD/IBT/actor.tradingplace.startingofsummer"/>
                </actor.tradingplace.startingofsummer>
                <actor.tradingplace.startingofwinter>
                    <xsl:value-of 
select="//dataobject/IHD/IBT/actor.tradingplace.startingofwinter"/>
                </actor.tradingplace.startingofwinter>
                <rating.actor.code>
                    <xsl:value-of 
select="//dataobject/IRD/GEI/rating.actor.code"/>
                </rating.actor.code>
                <rating.agency.code>
                    <xsl:value-of 
select="//dataobject/IRD/IRI/rating.agency.code"/>
                </rating.agency.code>
                <rating.currentdate>
                    <xsl:value-of 
select="//dataobject/IRD/IRR/rating.currentdate"/>
                </rating.currentdate>
                <rating.icon>
                    <xsl:value-of select="//dataobject/IRD/IRR/rating.icon"/>
                </rating.icon>
                <corporateaction.actor.code>
                    <xsl:value-of 
select="//dataobject/ZAD/GEI/corporateaction.actor.code"/>
                </corporateaction.actor.code>
                <corporateaction.type>
                    <xsl:value-of 
select="//dataobject/ZAD/ZAB/corporateaction.type"/>
                </corporateaction.type>
                <corporateaction.distributiondate>
                    <xsl:value-of 
select="//dataobject/ZAD/MGG/corporateaction.distributiondate"/>
                </corporateaction.distributiondate>
                <corporateaction.effectivedate>
                    <xsl:value-of 
select="//dataobject/ZAD/ZAE/corporateaction.effectivedate"/>
                </corporateaction.effectivedate>
                <corporateaction.meetingdate>
                    <xsl:value-of 
select="//dataobject/ZAD/ZAE/corporateaction.meetingdate"/>
                </corporateaction.meetingdate>
                <corporateaction.relevance.level>
                    <xsl:value-of 
select="//dataobject/XCD/MGA/corporateaction.relevance.level"/>
                </corporateaction.relevance.level>
                <corporateaction.fulltext>
                    <xsl:value-of 
select="//dataobject/ZAD/TXM/corporateaction.fulltext"/>
                </corporateaction.fulltext>
                <event.type>
                    <xsl:value-of select="//dataobject/XCD/MGG/event.type"/>
                </event.type>
            </actor>
            <code>
                <code.ric/>
                <code.ricIdf/>
                <code.sedol/>
                <code.cusip/>
                <code.isin/>
                <code.wpk/>
                <code.longDescription/>
                <code.description/>
                <code.industrial/>
                <code.currency/>
                <code.issuer/>
                <code.editorial/>
            </code>
            <script>
                <script.validation.flag/>
            </script>
        </dataobject>
    </xsl:template>
</xsl:stylesheet>

Reply via email to