IT WORKS! IT WORKS!
hehehe.. this is my first real programming with xsl!

Thank you very much, Andreas!

Have a wonderful weekend!



Andreas Hartmann wrote:
Roberto Nunnari wrote:

Andreas,

could you be so kind to tell me how I could go for this?

I mean.. sitetree2nav.xsl receives a parameter named url
that is later used to find the path to context..

I cannot see such a variable/parameter in menu.xsl..


IIRC it is passed as well, you just have to declare it.

-- Andreas



I can I then obtain the
Andreas Hartmann wrote:

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]





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



--
               Roberto Nunnari -software engineer-
                    mailto:[EMAIL PROTECTED]
                    http://www.nunnisoft.ch
  Residenza Boschetto 12           tel/fax: +41-91-6046511
  6935 Bosco Luganese        """    mobile: +41-76-3208561
  Switzerland               (o o)
========================oOO==(_)==OOo========================


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

Reply via email to