cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marco <m.spine...@pisa.iol.it>
Subject Re: XSP FRAGMENT
Date Wed, 18 Oct 2000 13:58:24 GMT
Robin Green wrote:

> Try this
>
>      <?cocoon-process type="xsp"?>
>      <?cocoon-process type="xslt"?>
>      <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>        xmlns:request="http://www.apache.org/1999/XSP/Request">
>
>        <page>
>         <xsp:pi target="xml-stylesheet">
>           <xsp:expr>href="<request:get-parameter name="stylesheet">"
> type="text/xsl"</xsp:expr>
>         </xsp:pi>
>        </page>
>      </xsp:page>
>
> Then you might want to read up on strip-space or normalize-space to get rid
> of the newlines.
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Hi Robin, I think I have not understood well: you tell me to take the text
inside the Tag "GENERALE" through

<xsp:logic>
String body = "<xsl:value-of select="GENERALE"/>";
</xsp:logic>

but I do not  understand your answer:

 <?cocoon-process type="xsp"?>
     <?cocoon-process type="xslt"?>
     <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
       xmlns:request="http://www.apache.org/1999/XSP/Request">

       <page>
        <xsp:pi target="xml-stylesheet">
          <xsp:expr>href="<request:get-parameter name="stylesheet">"
type="text/xsl"</xsp:expr>
        </xsp:pi>
       </page>
     </xsp:page>


  My Xsl document begins with:

?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsp="http://www.apache.org/1999/XSP/Core">
<xsl:param name='sceltau'/>
<xsl:param name='segnou'/>
<xsl:template match="Oroscopo">
<xsl:processing-instruction
name="cocoon-process">type="xsp"</xsl:processing-instruction>
<xsl:processing-instruction
name="cocoon-process">type="xslt"</xsl:processing-instruction>
<xsl:processing-instruction name="xml-stylesheet">href="stampa15-wml.xsl"
type="text/xsl"</xsl:processing-instruction>
<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
<OROSCOPO>
.............

 How can I to insert what you have told me?
Marco
m.spinetti@pisa.iol.it



Mime
View raw message