Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 71458 invoked from network); 2 Nov 2000 12:35:51 -0000 Received: from mail.urova.fi (193.167.212.200) by locus.apache.org with SMTP; 2 Nov 2000 12:35:51 -0000 Received: from mail.urova.fi (d213-223.urova.fi [193.167.213.223]) by mail.urova.fi (8.10.2/8.10.2) with ESMTP id eA2CZJs00741; Thu, 2 Nov 2000 14:35:20 +0200 (EET) Message-ID: <3A015A53.10098008@mail.urova.fi> Date: Thu, 02 Nov 2000 14:13:07 +0200 From: Lassi Immonen X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: fi,en,sv MIME-Version: 1.0 To: cocoon-dev@xml.apache.org CC: Lassi Immonen Subject: Re: [C2]Xinclude transformer bug? References: <20001101202530.22657.qmail@web117.yahoomail.com> Content-Type: multipart/mixed; boundary="------------6E5385BC70990F48B5A4FA30" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------6E5385BC70990F48B5A4FA30 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Davanum, It works right. Great many thanks. Lassi Davanum Srinivas wrote: > > Lassi, > > Can you please get the new sources and try your sample again? Checked in a fix to > XIncludeTransformer.java for this problem. > > Thanks, > dims > > --- Lassi Immonen wrote: > > Hi, > > > > I'm investigating ways to use xinclude in stylesheet to get common > > elements in html page through stylesheet. > > > > This is my setup. > > ---------------------------- > > Sitemap: > > > > > > > > > > > > > > > > --------------------------- > > include_test.xml: > > > > > > > > Title from include_test > > Para1 from include_test > > Para2 from include_test > > > > --------------------------- > > include2page.xsl: > > > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > > > > > > > xmlns:xinclude="http://www.w3.org/1999/XML/xinclude" > > xmlns:base="http://www.w3.org/XML/1998/namespace"> > > > > > base:base="file:/f:/tomcat4.0m3/webapps/cocoon/digma/"/> > > This part is from include2page.xsl > > > > > > > > > > > > > > > > > > > > > > > > ------------------------- > > include_me.xml: > > > > > > > > This is coming from inside include_me.xml > > > > ------------------------- > > > > Without xinclude transformation in sitemap output is: > > > > > xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"> > > > parse="xml" href="include_me.xml"> > > This part is from include2page.xsl > > > > Title from include_test > > Para1 from include_test > > Para2 from include_test > > > > > > > > When I set it on I get error: > > > > Error creating the resource, > > java.lang.NullPointerException > > java.lang.Throwable() > > java.lang.Exception() > > org.xml.sax.SAXException(java.lang.Exception) > > void > > org.apache.xerces.framework.XMLParser.parse(org.xml.sax.InputSource) > > void > > org.apache.cocoon.components.parser.XercesParser.parse(org.xml.sax.InputSource) > > void > > org.apache.cocoon.generation.FileGenerator.generate() > > boolean > > org.apache.cocoon.sitemap.ResourcePipeline.process(org.apache.cocoon.environment.Environment)... > > > > When I change stylesheet by commenting out the copy template, output is: > > > > > xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"> > > This is coming from inside include_me.xml > > This part is from include2page.xsl > > Title from include_test > > Para1 from include_test > > Para2 from include_test > > > > > > So Xinclude doesn't like copy template. > > > > Is this problem with Xalan or Xinclude transformer or what? > > > > Another thing, Xinclude transformer doesn't get setDocumentLocator call > > when using it in stylesheet, thus need to put path in base attribute. Is > > this the way it should be? > > > > Thanks, > > Lassi Immonen > > ===== > Davanum Srinivas, JNI-FAQ Manager > http://www.jGuru.com/faq/JNI > > __________________________________________________ > Do You Yahoo!? > From homework help to love advice, Yahoo! Experts has your answer. > http://experts.yahoo.com/ --------------6E5385BC70990F48B5A4FA30 Content-Type: text/x-vcard; charset=us-ascii; name="limmonen.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Lassi Immonen Content-Disposition: attachment; filename="limmonen.vcf" begin:vcard n:Immonen;Lassi tel;cell:+358-40-7529690 tel;home:+358-40-7529690 tel;work:+358-40-7529690 x-mozilla-html:TRUE url:www.urova.fi org:University of Lapland;Digitys-project adr:;;PL 122;Rovaniemi;;96100;Finland version:2.1 email;internet:lassi.immonen@urova.fi title:Designer fn:Lassi Immonen end:vcard --------------6E5385BC70990F48B5A4FA30--