cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Stouffs <alexandre.stou...@oqibo.com>
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 http://xml.apache.org/cocoon/xsp.html ("Another Example: Tag 
Libraries"). Maybe I am certainly missing something.

Alex

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...
>
>Yann.
>>----- Original Message -----
>>From: <mailto:alexandre.stouffs@oqibo.com>Alexandre Stouffs
>>To: <mailto:cocoon-users@xml.apache.org>cocoon-users@xml.apache.org
>>Sent: Thursday, August 03, 2000 3:08 PM
>>Subject: no stylesheet --> no root element ?
>>
>>Hi,
>>
>>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.
>>Alex
>>
>><?xml version="1.0"?>
>><xsl:stylesheet
>>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
>>   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>>   xmlns:oqiejb="http://www.oqibo.com/DTD/XSP/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>

Mime
View raw message