xsl-list
[Top] [All Lists]

RE: Passing params problem.

2005-04-30 10:59:47
I think you should try to put together a complete runnable example that
demonstrates the problem, making it as short as possible. I don't think
there's anything wrong with the code you've shown us here, the problem must
be elsewhere.

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: Francesco Barresi [mailto:kywocs(_at_)gmail(_dot_)com] 
Sent: 29 April 2005 23:37
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Passing params problem.

Me again, I still can't solve the problem...this time I have the
problem more identified so I'll make the email much more short,
because is obvious that nobdy have the time to read all my source
code.

here is templates.xml:
[...]
<bbwps:navigationMenu-open>
 <html:li>
      <bbwps:navigationMenu-pageHere/>
      <html:ul class="abierto">
              <bbwps:navigationMenu-childrenHere/>
      </html:ul>
 </html:li>
</bbwps:navigationMenu-open>
[...]

and here my index.xml
[..]
<root open="true" subs="true" subhome="true">
      <nome>Ambiti di condivisione</nome>
      <id_inter>ambcondiv</id_inter>
      <child>
              <nome>Servizio Condivisione Anziani</nome>
              <id_inter>sanziani</id_inter>
      </child>
</root>
[..]

Assume that we are parsing the index, and we are at the <child>
element, then this template gets invoqued:

<xsl:template match="child" mode="navigationMenu">
 <xsl:param name="templates"/> <!-- this param works just fine -->
 <xsl:variable name="tmpParam" select="."/> <!-- 'save' the current
node in a variable -->
 <xsl:apply-templates select="$templates//bbwps:navigationMenu-any"
mode="navigationMenu">
      <xsl:with-param name="currentpage" select="$tmpParam"/>
 </xsl:apply-templates>
</xsl:template>

This apply template with the $currentpage param to the
bbwps:navigationMenu-any in the templates.xml (look code above)

The html:li is the first tag, and the strange thing is that this
template doesn't recieve the $currentpage param, how is that possible?
I'm using msxml 4.  

I'm desperate, I don't know what else try :_(

Any tip about that?

Thanks bye.

-- 
www.GetFirefox.com !!
http://kywocs.blogspot.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>