cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pål Wester <pal.wester.l...@florence.never.no>
Subject SV: is there any way i can know tha columnnames in esql??
Date Mon, 26 Mar 2001 15:25:31 GMT
Something like this then:

<xspdoc:desc>returns the number of columns in the resultset.</xspdoc:desc>
<xsl:template match="esql:row-results//esql:get-column-count">
  <xsp:expr><xsl:call-template
name="get-resultset"/>.getMetaData().getColumnCount()</xsp:expr>
</xsl:template>


mvh: Pål Wester <mailto:pal.wester@never.no>
høgskoleingenør/programmerer

> -----Opprinnelig melding-----
> Fra: Donald Ball [mailto:balld@webslingerZ.com]
> Sendt: 26. mars 2001 07:18
> Til: Cocoon
> Emne: Re: is there any way i can know tha columnnames in esql??
>
>
> On Sat, 24 Mar 2001, [iso-8859-1] Pål Wester wrote:
>
> > Heres the problem:
> >
> > I'm making a pushingsystem which has custom-documents.
> > these consists of 5 known fields and a an unknown other
> > fields.
> >
> > Is there any way to access the field-names after
> > executing a query?
>
> that'd be metadata stuff:
>
> <xsl:template match="esql:row-results//esql:get-column-name">
>   <xsp:expr><xsl:call-template
> name="get-resultset"/>.getMetaData().getColumnName(<xsl:value-of
> select="@column"/>)</xsp:expr>
> </xsl:template>
>
> ta-da. well, i guess we need to add a template for getColumnCount as wel
> tho...
>
> - donald
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message