Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: I want to have an empty textarea

From: Joe Kesselman <keshlam-nospam@-------.--->
To: NULL
Date: 2/9/2007 1:37:00 PM

Cecil Westerhof wrote:
> I do not understand your explanation, but maybe when I take the time to
> comprehend it ...

Part of the problem is that Pavel gave you a slightly over-theoretical 
explanation. It's correct, but not the information you really needed 
right at this time.

> Why did the make the for-each when it is not useful?

It is useful... when there's actually more than one node to iterate 
over. The sloppiness in your example is that <xsl:for-each select=".">, 
in specific, is a no-op. "Process all instances of 'the current node'" 
is the same as just going ahead and processing the current node. 
For-each is useful when you want to gather and process _multiple_ 
nodes/values.

In many cases, it actually is better to use an apply-templates call and 
additional templates rather than a for-each. Learning when to use each 
of those techniques is something that comes with experience.

-- 
() ASCII Ribbon Campaign  | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


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