Réf. : Re: [xep-support] How can I use FOTransformer with xsl:include relative path.

From: frederic.ouellet@desjardins.com
Date: Thu Oct 21 2004 - 11:32:51 PDT

  • Next message: David Tolpin: "Re: R?f. : Re: [xep-support] How can I use FOTransformer with xsl:include relative path."

    David,

    My Resolver work well.

    In debug, I've seen the FOTransformer throw the IO exception because he don't find the include external file. The prob is the validation. The validation of the xsl is
    done before I can setURIResolver.

    This was the stack trace when I have put the XSL at the FOTransformer creation:

    fcdq.tiinap.infra.presdesj.servlet.GenerateurException: Impossible de completer l'appel a GenerateurReponsePDF.produireReponseNormale
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:306)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Causé par: fcdq.tiinap.infra.presdesj.gabarit.GabaritException: Erreur de génération du gabarit PDF
          à fcdq.tiinap.infra.presdesj.gabarit.GestGabaritPDF.construirePDF(GestGabaritPDF.java:102)
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:254)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Causé par: fcdq.tiinap.infra.commun.generationpdf.GenerateurPDFException: javax.xml.transform.TransformerConfigurationException:
    javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Exception d?E/S avec le fichier
    de feuille de style : /res/gabarit/pres/xsl/ergoDesjardins.xsl
          à fcdq.tiinap.infra.commun.generationpdf.GenerateurPDF.generePDF(GenerateurPDF.java:127)
          à fcdq.tiinap.infra.presdesj.gabarit.GestGabaritPDF.construirePDF(GestGabaritPDF.java:97)
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:254)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Causé par: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException:
    javax.xml.transform.TransformerException: Exception d?E/S avec le fichier de feuille de style : /res/gabarit/pres/xsl/ergoDesjardins.xsl
          à org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:767)
          à weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransformerFactory.java:195)
          à weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209)
          à com.renderx.xep.FOTransformer.createTransformer(Unknown Source)
          à com.renderx.xep.FOTransformer.<init>(Unknown Source)
          à fcdq.tiinap.infra.commun.generationpdf.GenerateurPDF.generePDF(GenerateurPDF.java:107)
          à fcdq.tiinap.infra.presdesj.gabarit.GestGabaritPDF.construirePDF(GestGabaritPDF.java:97)
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:254)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Causé par: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Exception d?E/S avec
    le fichier de feuille de style : /res/gabarit/pres/xsl/ergoDesjardins.xsl
          à org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:946)
          à org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:750)
          à weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransformerFactory.java:195)
          à weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209)
          à com.renderx.xep.FOTransformer.createTransformer(Unknown Source)
          à com.renderx.xep.FOTransformer.<init>(Unknown Source)
          à fcdq.tiinap.infra.commun.generationpdf.GenerateurPDF.generePDF(GenerateurPDF.java:107)
          à fcdq.tiinap.infra.presdesj.gabarit.GestGabaritPDF.construirePDF(GestGabaritPDF.java:97)
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:254)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Causé par: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Exception d?E/S avec le fichier de feuille de style :
    /res/gabarit/pres/xsl/ergoDesjardins.xsl
          à org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:942)
          à org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:750)
          à weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransformerFactory.java:195)
          à weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209)
          à com.renderx.xep.FOTransformer.createTransformer(Unknown Source)
          à com.renderx.xep.FOTransformer.<init>(Unknown Source)
          à fcdq.tiinap.infra.commun.generationpdf.GenerateurPDF.generePDF(GenerateurPDF.java:107)
          à fcdq.tiinap.infra.presdesj.gabarit.GestGabaritPDF.construirePDF(GestGabaritPDF.java:97)
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:254)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Causé par: org.xml.sax.SAXException: Exception d?E/S avec le fichier de feuille de style : /res/gabarit/pres/xsl/ergoDesjardins.xsl
          à org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:891)
          à org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:919)
          à org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:316)
          à org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:189)
          à org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:656)
          à weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
          à weblogic.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
          à weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
          à weblogic.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
          à weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
          à weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
          à weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
          à weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
          à weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
          à weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
          à weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
          à weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
          à weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
          à org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:934)
          à org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:750)
          à weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransformerFactory.java:195)
          à weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209)
          à com.renderx.xep.FOTransformer.createTransformer(Unknown Source)
          à com.renderx.xep.FOTransformer.<init>(Unknown Source)
          à fcdq.tiinap.infra.commun.generationpdf.GenerateurPDF.generePDF(GenerateurPDF.java:107)
          à fcdq.tiinap.infra.presdesj.gabarit.GestGabaritPDF.construirePDF(GestGabaritPDF.java:97)
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:254)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    The path of the ergoDesjardins.xsl is really good but the URIResolver for the xsl:include have not been set because the exception was trown at construction. The
    validation could be put in the transform method, this will give better use for the URIResolver with the FOTransformer constructor that take xsl file...

    SO, I am working on how to pass in setParameter my xsl. If you have suggestion or other thing could help, it will be gladly appreciate.

    Regards,

    Frédéric

                                                                                                                                                                              
                 David Tolpin <dvd@davidashen.net>
                 Envoyé par : owner-xep-support@renderx.com
                                                                                                                                                                         Pour
                                                                                 xep-support@renderx.com
                 2004-10-21 13:06 cc
                                                                                                                                                                              
                                                                                                                                                                        Objet
                                   Veuillez répondre à Re: [xep-support] How can I use FOTransformer with xsl:include relative path.
                                 xep-support@renderx.com
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              

    >
    > How can I use xsl:include relative path (with the URIResolver) with the FOTransformer?
    >
    > The only logical path I found to do it:
    >
    > FOTransformer transformer = new FOTransformer(new StreamSource(XSLfile.openStream()),formatter);
    > transformer.setURIResolver(genPDFURIResolver);
    > transformer.transform(new StreamSource(new StringReader(xmlStringData)), target);

    Frederic,

    this looks reasonable. Are you sure your resolver is working properly.
    XEP takes uriresolver on the command-line.

    if you call it as

    java -Dcom.renderx.jaxp.uriresolver=your.package.name.URIResolver \
                 com.renderx.xep.XSLDriver -DCONFIG=/path/to/XEP/xep.xml \
                 document.xml -xsl style.xsl

    it should call your resolver to resolve URLs. Does it work for
    your resolver? It works with DocBook XSL stylesheets and catalogs.

    What XSLT transformer are you using? Is it a problem with SAXON
    or with another XSLT engine?

    David

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Thu Oct 21 2004 - 11:51:35 PDT