You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/04/18 04:50:05 UTC

[c2] example of selector in use?

last message for a while, i promise. does anyone have an example of a
selector in use in a sitemap?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] example of selector in use?

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 18 Apr 2001, giacomo wrote:

> > last message for a while, i promise.
>
>  :)
>
> > does anyone have an example of a
> > selector in use in a sitemap?
>
>    <map:match pattern="welcome">
>     <map:generate src="docs/samples/samples.xml"/>
>     <map:select>
>       <map:when test="wap">
>         <map:transform src="stylesheets/simple-samples2html.xsl"/>
>       </map:when>
>       <map:when test="netscape">
>         <map:transform src="stylesheets/simple-samples2html.xsl"/>
>       </map:when>
>       <map:otherwise>
>         <map:transform src="stylesheets/simple-samples2html.xsl"/>
>       </map:otherwise>
>     </map:select>
>     <map:transform src="stylesheets/simple-samples2html.xsl"/>
>     <map:serialize/>
>    </map:match>
>
> It's in the sample sitemap IIRC

doh! i was searching for map:selector, not map:select. that'll teach me to
try to do five things at once.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] example of selector in use?

Posted by giacomo <gi...@apache.org>.

On Tue, 17 Apr 2001, Donald Ball wrote:

> last message for a while, i promise.

 :)

> does anyone have an example of a
> selector in use in a sitemap?

   <map:match pattern="welcome">
    <map:generate src="docs/samples/samples.xml"/>
    <map:select>
      <map:when test="wap">
        <map:transform src="stylesheets/simple-samples2html.xsl"/>
      </map:when>
      <map:when test="netscape">
        <map:transform src="stylesheets/simple-samples2html.xsl"/>
      </map:when>
      <map:otherwise>
        <map:transform src="stylesheets/simple-samples2html.xsl"/>
      </map:otherwise>
    </map:select>
    <map:transform src="stylesheets/simple-samples2html.xsl"/>
    <map:serialize/>
   </map:match>

It's in the sample sitemap IIRC

Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org