Roberto Nunnari wrote:
[...]
You can use a recursive template to calculate the relative path
to the images URL.
ok.. I'm clearly missing basilar know-how here, as I don't
understand what you're talking about..
would you please
- explain to me what is and how to use a recursive template?
In XSLT, you have no iteration facilities due to the declarative
language characteristics. You have to use recursion instead, which
means you build a template which calls itself.
An example, taken from sitetree2nav.xsl:
<xsl:template name="create-path-to-context">
<xsl:param name="local-url" select="$url"/>
<xsl:if test="contains($local-url, '/')">
<xsl:text/>../<xsl:call-template name="create-path-to-context">
<xsl:with-param name="local-url" select="substring-after($local-url,
'/')"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- give me some links that could help me grab the know-how
I need for working effectively with lenya?
That's hard to tell ... these issues are rather technology-related
(XSLT) than related to the Lenya framework.
Basically, knowing Cocoon concepts and XSLT helps a lot.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]