cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: Steep on the XSL/XSP learning curve
Date Sun, 04 Jun 2000 06:15:15 GMT
On Fri, 2 Jun 2000, Charles Yates wrote:

> Hello,
> 
>   I have a xml file of the form:
> 
> <diary>
>   <entry id=1>
>      blah
>   </entry>
> .....
>   <entry id=n>
>     blah blah blah
>   </entry>
> </diary>
> 
> 1) I'd like my web server to serve up one entry at a time
> based on a parameter in the url.

<?xml version="1.0"?>
<xsl:stylesheet xmlns=...>
 <xsl:param name="entry">defaultnumber</xsl:param>
 <xsl:template match="entry[@id=$entry]">
  ... style ...
 </xsl:template>
</xsl:stylesheet>

foo.xml?entry=1

> 3) I've been learning a lot about XSP and XSL in tackling this
> problem but am not very successful in solving it so I thought
> I'd ask for help.

XSP isn't necessary for something this simple.

- donald


Mime
View raw message