cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject RE: How can I influence output type?
Date Wed, 20 Dec 2000 19:42:24 GMT
That looks better - but have you tested it?

Drasko Kokic <drasko_kokic@yahoo.com> wrote:
>just wondered if the XSLT example specifying multiple
>stylesheets would look simpler if the "xslt" PI would
>be outside of the <xsl:choose> block?!
>
>Actually ... could the whole <xsl:choose> block be
>imbedded in the <xsl:processing-instruction> like
>this:
>
>   <xsl:template match="/">
>     <xsl:processing-instruction name="xml-stylesheet">
>       <xsl:choose>
>         <!-- when style is specified -->
>         <xsl:when test="$style">
>           href="<xsl:value-of select="$style"/>"
>type="text/xsl"
>         </xsl:when>
>         <!-- Otherwise use default.xsl -->
>         <xsl:otherwise>
>           href="default.xsl" type="text/xsl"
>         </xsl:otherwise>
>       </xsl:choose>
>     </xsl:processing-instruction>
>     <xsl:processing-instruction name="cocoon-process">
>       type="xslt"
>     </xsl:processing-instruction>
>     <xsl:apply-templates/>
>   </xsl:template>
>
>
>Cheers,
>Drasko
>
>--- Robin Green <greenrd@hotmail.com> wrote:
> > The website FAQ is more up-to-date than the one
> > included in 1.8.
> >
> >
>http://xml.apache.org/cocoon/faqs.html#faq-stylesheetreq
> >
> > That covers stylesheets only. But it's easy to adapt
> > those examples to
> > select a cocoon-format as well as an xml-stylesheet.
> >
> > Sommer@realTech.de
> > >Sorry, if I'm blind (->is it really in the FAQ?) or
> > if I didn't write it
> > >clearly, but I repeat my problem:
> > >I want to call a xml-file with a request parameter.
> > Depending on this
> > >parameter the xml-file should use different
> > xsl-files (either tohtml.xsl or
> > >topdf.xsl) to output in a different format (html or
> > pdf)
> >
> >
> >
> >
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
> > http://www.hotmail.com.
> >
> >
> >
>---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail:
> > cocoon-users-help@xml.apache.org
> >
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Shopping - Thousands of Stores. Millions of Products.
>http://shopping.yahoo.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message