Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: problems with apply-templates

From: David Carlisle <davidc@---.--.-->
To: NULL
Date: 3/2/2005 10:27:00 AM
  Hi, Thanks for the response I will try that.  How about when the first
  <xsl:apply-templates\> is called?  It seems that I cannot get this to
  just apply the following template specifically... any ideas?  I tried
  the following but maybe something is wrong here?


you used a similar wording in your original message and I didn't
understand what you meant then or now. I suspect that you have the
wrong mental model of how xslt is working.
When you use apply-templates you _never_ specify which templates are to
be applied (and there is no real notion of a "next" template, the order
of templates in the stylesheet  is not significant). apply-templates uses
a select expression which selects nodes in the input tree.

If you want to call  a block of code explictly then you want to use a
named template not a match template and use xsl:call-template rather
than apply-templates. However that isn't normally what you would want to
do for this kind of transform.

David


transparent
Print
Mail
Digg
delicious
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