View Single Post
  #2 (permalink)  
Old December 1st, 2008, 05:02 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Your root template matches the root of the document, then tells the stylesheet to apply templates to all irs children.

The first child, the "cars" node, is then matched, on the second template. This template tells it to do nothing else, so that's what it does. No other nodes are therefore being processed.

Change <xsl:template match="*"/> to <xsl:template match="text()"/> - this will probably give you the output you want.

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote