View Single Post
  #5 (permalink)  
Old September 19th, 2005, 05:44 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

>The
Code:
<xsl:for-each select="//P | //L">
was just me trying every thing I could possibly think of.

Really, trial and error is a very poor method of coding. Sometimes you hit on things that seem to work, but only work because you haven't written enough test cases. Try to avoid it: you need to understand the semantics of the language you are using.


Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote