[Home] [By Thread] [By Date] [Recent Entries]
Luke,
This is XSLT. The rule is, whitespace in a template doesn't count, *except* when it's mixed with non-whitespace text, at which point it gets copied into the result just like all the other text. This is what's happening to you. (If you think about it, actually, no other rule would be quite sane.) In order to get around the mess this sometimes causes when we nevertheless wish our templates to be formatted legibly (as in your case), we have <xsl:text>...</xsl:text>: <xsl:template match="name"> <xsl:value-of select="name" /> <xsl:text> : </xsl:text> <xsl:apply-templates /> </xsl:template> (But are you sure you want the value of the first name element child of the name element? That seems rather odd.) Cheers, Wendell At 04:30 PM 9/7/2006, you wrote: Ok, so I've broken this stuff down into templates, and I *think* I'm understanding how its handling everything. However, I seem to be running into a bit of a formatting nightmare.
|

Cart



