cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drasko Kokic <drasko_ko...@yahoo.com>
Subject Re: SQL and XSP
Date Mon, 18 Sep 2000 21:08:50 GMT
Maybe this helps:

<xsl:apply-templates select="ROWSET/ROW"/>
  .
  .
  .
<xsl:template match="ROWSET/ROW">
  <DATE>
    <YEAR><xsl:value-of select="YEAR"/></YEAR>
    <MONTH><xsl:value-of select="MONTH"/></MONTH>
    <DAY><xsl:value-of select="DAY"/></DAY>
  </DATE>
</xsl:template>


Hope this helps
Drasko


--- Benjamin Dixon <beatle@arches.uga.edu> wrote:
> 
> Are you using XSP at all? I have a question about
> grouping columns from a
> sql database into logical tags. For example I was
> trying to modify the
> taglib.xml sample in the sql directory to select
> dates out of my database.
> Dates are stored in separate fields as month, day,
> and year so they come
> out as <month> etc... what I want is for them to
> come out as
> <date>...</date>. I don't mind even if it comes out
> as
> <date><month>...</year></date>. I've found the
> documentation on the
> sqlProcessor and XSP to be somewhat limited. Any
> pointers would be
> appreciated as well.
> 
> Ben
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message