cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Stouffs <>
Subject Re: no stylesheet --> no root element ?
Date Thu, 03 Aug 2000 14:32:44 GMT
I use XSL to create tags and based myself on the tag library example 
presented on ("Another Example: Tag 
Libraries"). Maybe I am certainly missing something.


At 15:27 03.08.2000 +0100, you wrote:
>I get the feeling that this kind of issue happens when one starts to mix 
>xsl tags and xsp tags in the same file.
>First, I don't quite understand why both should be mixed (apart from some 
>sort of chaining?).
>I personnally never mix XSP and XSL in the same file. I feel it defeats 
>Cocoon purpose.
>Why can't one have one XSP *then* a stylesheet used to transform it? Or is 
>there some times when it is justified to mix the two?
>I must miss something but I see absolutely *no* reason to mix the two. 
>Enquiring mind wants to know...
>>----- Original Message -----
>>From: <>Alexandre Stouffs
>>To: <>
>>Sent: Thursday, August 03, 2000 3:08 PM
>>Subject: no stylesheet --> no root element ?
>>I have trouble accessing the session object in XSP.
>>I read in an earlier posting that the built-in objects are only available 
>>from within the page root element.
>>But in my case, I am not using any stylesheet, only a XHTML and a XSP a 
>>tag library. Could it be that the root element (<html> in my case) is not 
>>defined when no stylesheet is applied or am I doing something wrong in 
>>the code extract below ?
>>For info, the XHTML page is called with a redirect from a servlet which 
>>use putAttribute to define attributes in the session.
>>Thank you.
>><?xml version="1.0"?>
>>   xmlns:xsl="" version="1.0"
>>   xmlns:xsp=""
>>   xmlns:oqiejb=""
>> >
>>   <xsl:template match="xsp:page">
>>     <xsp:page>
>>       <xsl:copy>
>>         <xsl:apply-templates select="@*"/>
>>       </xsl:copy>
>>       <xsp:structure>
>>                 [....]
>>       </xsp:structure>
>>           <xsp:logic>
>>                     String chaine = session.getAttribute("test");
>>                 [....]
>>           </xsp:logic>

View raw message