Andreas Hartmann wrote:

Roberto Nunnari wrote:

To make it clearer:

the label I'm talking about comes from the publication's
sitetree.xml file..

this is an extract from my sitetree.xml
*********************************************************
  <node id="ricerca" visibleinnav="true">
    <label xml:lang="it">Ricerca</label>
    <node id="ric_descrizione" visibleinnav="true">
      <label xml:lang="it">Descrizione</label>
      <node id="sottodescrizione" visibleinnav="true">
        <label xml:lang="it">Sotto 1</label>
      </node>
    </node>
  </node>
*********************************************************

to be concrete, given the above date, when viewing the document
with id='ric_descrizione' I should see the text 'Descrizione'
in my page template text.

Any hints, please?


Two approaches:

I've tried to look into both approches, but can't get it work..



a) pass the parameter to page2xhtml.xsl from the sitemap,
   using an input module (maybe the SiteTreeModule already supports it)

I've tried to find sitemap and SiteTreeModule but could not find
any of them



b) use a navigation component to extract the label from the
   current node and use it in page2xhtml.xsl

I have a couple of template in page2xhtml.xsl that get called
with navigation elements:

<xsl:template match="xhtml:[EMAIL PROTECTED]'menuitem-selected-2']">
...
</xsl:template>

and thought I could use that or a new template match="nav:node",
but even then, I don't know how I can set a global variable in
page2xhtml.xsl

any more hints?




-- Andreas


---------------------------------------------------------------------
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