You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Schultz, Gary - COMM" <GS...@commerce.state.wi.us> on 2005/12/12 22:22:46 UTC
RE: cinclude, include and xinclude in Cocoon 2.1.8 - includes wor
k
I discovered the problem, for my setup that is, was the build/run
environment. Includes work as expected when I did a build of 2.1.8 using JDK
1.4.2_10 and running Cocoon under JDK 1.4.2_10/Tomcat 5.0.28. Building with
JDK1.5.0_x and running under JDK1.5.0/Tomcat 5.0.28 and JDK1.5.0/Tomcat
5.5.12 didn't work. I also was frequently getting an initialization error
when attempting to run under JDK1.5.0_x.
Is there any advantage to running Cocoon under JDK 1.5 and Tomcat 5.5.x? If
not I will continue to use JDK 1.4 and Tomcat 5.0.x as I see more of an
advantage to our agency to running Cocoon 2.1.8 versus running JDK 1.5 or
Tomcat 5.5.x.
Will there ever be a time in Cocoon development in which Cocoon will not run
under JDK1.4.2_x and Tomcat 5.0.x?
-----Original Message-----
From: Jason Johnston [mailto:cocoon@lojjic.net]
Sent: Friday, December 09, 2005 3:35 PM
To: users@cocoon.apache.org
Subject: RE: cinclude, include and xinclude in Cocoon 2.1.8
Sure, I will try to find time this weekend to package it up and send it to
you off-list. I'll also try CInclude, as I only tried XInclude before.
> Jason, would it be possible to get your code for testing? If your code
> doesn't work for me it could be a configuration problem on my end.
> I've tried for a few hours and still cannot get it to work in 2.1.7 or
2.1.8.
>
> -----Original Message-----
> From: Jason Johnston [mailto:cocoon@lojjic.net]
> Sent: Friday, December 09, 2005 8:41 AM
> To: users@cocoon.apache.org
> Subject: Re: cinclude, include and xinclude in Cocoon 2.1.8
>
> Have you verified that the output of your XSLT is the same now as it
> was in the older version? e.g. by putting a <map:serialize type="xml"
> /> right after your xslt transform?
>
> I just did a quick test here with 2.1.8, and an xinclude transform
> immediately following an xsl transform (which creates the xi:include
> elements) works just fine.
>
>
> Schultz, Gary - COMM wrote:
>> I performed a pretty exhaustive search and only found information on
>> cinclude problems when using POST method. Nothing on cinclude
>> problems in general, and nothing detailed on the use of cocoon
>> include transformer.
>>
>> I should have added that cincludes, includes and xincludes all work
>> when placed before the <map:transform. In 2.1.5.1 all three includes
>> also worked when placed after the <map:transform. In 2.1.8 the
>> includes only work before the <map:transform. The includes are not
>> working
> after the <map:transform.
>> This is a problem in that I'm using the XSLT transformation to create
>> cincludes dynamically based on parameters determined by element
>> attribute values passed from the XML source.
>>
>> -----Original Message-----
>> From: Ralph Goers [mailto:Ralph.Goers@dslextreme.com]
>> Sent: Thursday, December 08, 2005 11:28 PM
>> To: users@cocoon.apache.org
>> Subject: Re: cinclude, include and xinclude in Cocoon 2.1.8
>>
>> Did you search the mailing list for similar issues. I seem to
>> recollect that the namespace is different so your cinclude might be
>> ignored. But I could be wrong.
>>
>> Schultz, Gary - COMM wrote:
>>
>>
>>>The following code snippet worked in Cocoon 2.1.5.1 but isn't working
>>>in Cocoon 2.1.8
>>>
>>> <map:match pattern="TSS-IncludeTest-01.html">
>>> <map:generate
>>>src="d:/comwps/TSS/content/TSS-IncludeTest-01.html"/>
>>> <map:transform src="d:/comwps/xslt/page2html-tss01.xsl">
>>> </map:transform>
>>> <map:transform type="cinclude"/>
>>> <map:serialize/>
>>> </map:match>
>>>Has there been a change to include transformation in Cocoon 2.1.8?
>>>Has the ability to use cinclude after transformations been
>>>eliminated? If it did, this is very discouraging. What I'm doing is
>>>inside an XHTML template I call a single template that builds a
>>>cinclude element. I call this cinclude template several times, each
>>>time passing different parameters to produce several cincludes. The
>>>cincludes are then processed at the end of the map:match. I need to
>>>process the cincludes at the end of the map:match after the
transformation.
>>>
>>>I've thought about using i:include, but I did some searching and
>>>cannot find any good examples for using <i:include>. How does one go
>>>about using i:include to include only a portion of a xml document?
>>>Form what I could tell, the 2.1.8 i:include samples only show the use
>>>of i:include serving an entire xml file, not a part of a file. I
>>>tried using cinclude select but that did not work?
>>>
>>>
>>>
>>>Gary T. Schultz
>>>IT Administrator
>>>Wisconsin Department of Commerce
>>>201 W. Washington Ave
>>>Madison, WI 53214
>>>608-266-1283
>>>gschultz@commerce.state.wi.us <ma...@commerce.state.wi.us>
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: cinclude, include and xinclude in Cocoon 2.1.8 - includes wor
k
Posted by Ralph Goers <Ra...@dslextreme.com>.
Schultz, Gary - COMM wrote:
>Is there any advantage to running Cocoon under JDK 1.5 and Tomcat 5.5.x? If
>not I will continue to use JDK 1.4 and Tomcat 5.0.x as I see more of an
>advantage to our agency to running Cocoon 2.1.8 versus running JDK 1.5 or
>Tomcat 5.5.x.
>
>
>
I've heard antecdotal information that JDK 1.5 performs better than
1.4. JDK 1.5 also comes with a few more bells and whistles.
>Will there ever be a time in Cocoon development in which Cocoon will not run
>under JDK1.4.2_x and Tomcat 5.0.x?
>
>
Cocoon 2.1 will always be compatible with JDK 1.3. Cocoon 2.2 will be
compatible with 1.4.
Ralph
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org