Article View: fr.comp.text.xml
Article #10634Re: xalan et xsl:include
From: hagnoux
Date: Thu, 17 Aug 2000 00:00
Date: Thu, 17 Aug 2000 00:00
41 lines
1973 bytes
1973 bytes
Pour infos, j'ai pos� ma question sur la liste de mulberrytech, et voici la r�ponse : ===> From: David_Marston@lotus.com Subject: Re: include with xalan ? To: xsl-list@mulberrytech.com Date sent: Wed, 9 Aug 2000 14:58:01 -0400 Send reply to: xsl-list@mulberrytech.com Herve Agnoux asks: >I use a XSLTInputSource on a FileReader, and when the processor >see the xsl:include tag, it search from the current directory, not >from the directory of the parent xsl file. >What is the solution ? I found this snippet on a shelf in my closet: > File fFile = new File(sDocbase, sFilename); > FileInputStream fIn = new FileInputStream(fFile); > XSLTInputSource xsltIn = new XSLTInputSource(fIn); > xsltIn.setSystemId(sDocbase); I hope that you adapt that to your scenario. ................David Marston XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list <=== ... j'ai appliqu� cette piste, et cela s'est mis � marcher � peu pr�s. Je dis � peu pr�s, parce que je n'ai pas tout compris. En particulier, d�s fois si je passe un File ou String au XSLTInputSource �a ne marche pas, et �a se met � marcher si je lui passe un FileReader du m�me... Egalement je ne comprends pas exactement ce qu'est de "systemId". Ope vissehelp, malheureusement. -- hagnoux@mail.club-internet.fr
Technical Details
Message-ID:
<399b79a1.2108382@news.club-internet.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3991787d.2233580@news.club-internet.fr> <399abfcb.17140596@news.dial.oleane.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 114f60,9ecaceb19c5dda64 X-Google-Attributes: gid114f60,public From: hagnoux@club-internet.fr Subject: Re: xalan et xsl:include Date: 2000/08/17 Message-ID: <399b79a1.2108382@news.club-internet.fr> X-Deja-AN: 659220204 References: <3991787d.2233580@news.club-internet.fr> <399abfcb.17140596@news.dial.oleane.com> X-Trace: front3m.grolier.fr 966491144 11060 213.44.16.71 (17 Aug 2000 05:45:44 GMT) Organization: Club-Internet (France) NNTP-Posting-Date: 17 Aug 2000 05:45:44 GMT Newsgroups: fr.comp.text.xml