Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Apply templates problem!

From: "Ariana" <ariana_paris@-----.--.-->
To: NULL
Date: 4/4/2006 6:03:00 AM

I'm not 100% sure what you're asking, because your first example looks
correct, but your description sounds as if you might be looking for
something different. You access the value of a paramater using the same
syntax as for a variable. So for example, you could call

<xsl:apply-templates select="../TABLE[@id='Table_24C' and
DBNR=$CURRENT_DBNR]/>

(Assuming of course that you are looking for all TABLE elements that
are siblings of the current element, and have an attribute called id
with the value 'Table_24C' and a child element called DBNR with the
value of CURRENT_DBNR.)

However, if your parameter is defined in the actual template (ie it
isn't a global parameter defined at the top of your xsl stylesheet)
this is how you call the template:

      <xsl:apply-templates select="Table">
          <xsl:with-param name="CURRENT_DBNR" select="DBNR"/>
      </xsl:apply-templates>

Googling "xsl:param" or "xsl:with-param" will give you more general
information about parameters in xslt, but I hope this helps in the
meantime.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent