Frank Thilo Mueller wrote:

Dear Apache Community,

I am a cocoon newbie and would like to implement an Oracle database
frontend.

The database tables are user generated, therefore I know neither the table
names nor the type of the contents of the rows. They could be filled with
ORDBMS Oracle specific constructions.

I would like to implement a generic "pretty print" function. I found out
after a while that the first column name will be found using
<esql:get-column-name column="1">. I have tried to change this 1 to an
variable i using <expr>i</expr> but with no success so far.

<esql:get-column-name> <esql:param name="column"><xsp:expr>i</xsp:expr></esql:param> </esql:get-column-name>


I would be really thankful for a working example. I suppose others will have the same problem, too. So, implementing a pretty print with table names could be an idea.

<xspdoc:desc>results in a set of elements whose names are the names of the columns. the elements each have one text child, whose value is the value of the column interpreted as a string. No special formatting is allowed here. If you want to mess around with the names of the elements or the value of the text field, use the type-specific get methods and write out the result fragment yourself. </xspdoc:desc> <xsl:template match="esql:row-results//esql:get-columns">

like

<esql:row-results>
   <esql:get-columns/>
</esql:row-results>


HTH Chris.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to