You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by David <da...@nmp.es> on 2000/12/15 18:38:07 UTC
Java function in a xsl
Hi Cocoonians
We obtain from the data base an xml file like:
<root>
<id> ... </id>
<definition> ... </definition>
</root>
And the definition field is very long so we want to apply a function to make
it shorter. We tried in the xsl something like:
...
<xsl:template match="definition">
<h6> <xsp:expr> myfunction(???)</xsp:expr> </h6>
</xsl:template>
....
What should it be in the args of the function?
Is a good idea to trim the result in the xsl?
Thanks folks!