Rf. : 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 gnration 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,

    Frdric

                                                                                                                                                                              
                 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 rpondre 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