Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 26681 invoked from network); 6 Dec 2006 08:11:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2006 08:11:18 -0000 Received: (qmail 1686 invoked by uid 500); 6 Dec 2006 08:11:19 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 1616 invoked by uid 500); 6 Dec 2006 08:11:19 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 1605 invoked by uid 99); 6 Dec 2006 08:11:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 00:11:19 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.115.153.110] (HELO arkoon.altaprofits.fr) (195.115.153.110) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 00:11:07 -0800 Received: (from uucp@localhost) by arkoon.altaprofits.fr (8.12.8p1/8.12.8) id kB67OdGg015217 for ; Wed, 6 Dec 2006 08:24:39 +0100 Received: from A by B ; Wed, 06 Dec 2006 08:24:32 +0100 Received: from A by B ; Wed, 6 Dec 2006 08:54:00 +0100 Message-ID: <1FA71C5250B9D411A5D200C00D0163CCE19DB8@SRV002> From: Habib Kaci To: "'users@cocoon.apache.org'" Subject: RE: Specify the stylesheet location dynamically Date: Wed, 6 Dec 2006 08:53:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7190B.AFEE4070" X-Spam-Checker: Dolphian Message Content Scanner version 2.1.8 X-Spam-Score: -50.000000 / 15.000000 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=-50.0 required=15.0 ------_=_NextPart_001_01C7190B.AFEE4070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thank you for response, I want to specify that in xsp page. I'm migrating a large number of cocoon 1.7 xsp pages to cocoon 2. In cocoon 1, the xslt transformation is specified within the xsp pages (). So, If there any way to do the same think in C2 xsp pages, that will avoid to writing a complexe sitemap. Thank you=20 =09 -----Message d'origine----- De : Steven D. Majewski [mailto:sdm7g@virginia.edu] Envoy=E9 : mardi 5 d=E9cembre 2006 20:02 =C0 : users@cocoon.apache.org Objet : Re: Specify the stylesheet location dynamically On Dec 5, 2006, at 1:22 PM, Habib Kaci wrote: > Hi, > > I have a specic need to specify the stylesheet doing the =20 > xslt transformation at runtime. > > Can I specify this within the XSP (without writing action). > > Thank you, > Yes -- you can specify the transform "at runtime" . The question is: how do you intend to specify it ? For an example, I use the following in my sitemap, so that published/XYZ/ABC.document styles published/XYZ/ABC.xml thru the xsl/document.xsl stylesheet. In other cases, a stylesheet is passed as a request parameter. I imagine with flowscript you can do pretty much any arbitrary =20 processing to define parameters before calliing another pipeline. ( And IMHO, =20 writing flowscripts is likely easier than writing actions. ) Like perhaps if you wanted =20 to lookup a user preference to determine a stylesheet. ( Did I understand the question correctly ? ) -- Steve Majewski / UVA Alderman Library --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org ------_=_NextPart_001_01C7190B.AFEE4070 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Specify the stylesheet location dynamically

Thank you for response,

        I want to = specify that in xsp page.

        I'm = migrating a large number of cocoon 1.7 xsp pages to cocoon 2. In cocoon = 1, the xslt transformation is specified within the xsp pages = (<xsp:pi>).

        So, If = there any way to do the same think in C2 xsp pages, that will avoid to = writing a complexe sitemap.

Thank you
       =20


-----Message d'origine-----
De : Steven D. Majewski [mailto:sdm7g@virginia.edu]=
Envoy=E9 : mardi 5 d=E9cembre 2006 20:02
=C0 : users@cocoon.apache.org
Objet : Re: Specify the stylesheet location = dynamically



On Dec 5, 2006, at 1:22 PM, Habib Kaci wrote:

> Hi,
>
>         = I have a specic need to specify the stylesheet doing the 
> xslt transformation at runtime.
>
>         = Can I specify this within the XSP (without writing action).
>
> Thank you,
>

Yes -- you can specify the transform "at = runtime" .
The question is: how do you intend to specify it = ?

For an example, I use the following in my sitemap, so = that

        published/XYZ/ABC.document

styles  published/XYZ/ABC.xml  thru the = xsl/document.xsl stylesheet.



<!-- STYLED CONTENT -->
         = <!--  For the rest of the files, we use the file = extension 
as a stylesheet -->
         = <map:match pattern=3D"published/*/*.*">
           = <map:generate src=3D"published/{1}/{2}.xml"/>
           = <map:transform src=3D"xsl/{3}.xsl">
          &nb= sp;  <map:parameter name=3D"contextPath"  =
value=3D"{request:contextPath}"/>
          &nb= sp;  <map:parameter name=3D"who" = value=3D"{1}"/>
           = </map:transform>
           = <map:serialize type=3D"html"/>
         = </map:match>


In other cases, a stylesheet is passed as a request = parameter.
I imagine with flowscript you can do pretty much any = arbitrary 
processing
  to define parameters before calliing another = pipeline. ( And IMHO, 
writing flowscripts
  is likely easier than writing actions. ) Like = perhaps if you wanted 
to lookup a
user preference to determine a stylesheet.

( Did I understand the question correctly ? )


-- Steve Majewski / UVA Alderman Library



---------------------------------------------------------------= ------
To unsubscribe, e-mail: = users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: = users-help@cocoon.apache.org

------_=_NextPart_001_01C7190B.AFEE4070--