Subject: Re: Style Rules for Mixed Elements From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 10 Jul 2000 16:02:55 +0100 (BST) |
> I would like to write an xsl style rule that would format elements inside > the Para element with a color, for example, while leaving the "text" of the > Para element alone. That's the default behaviour, just have <xsl:template match="Para/Menu"> <green> <xsl:apply-templates/> </green> </xsl:text> > Then I could do > > <xsl:for-each> > <xsl:apply-template select="Menu"/> > <xsl:for-each> > > in my Para rule. No, you don't want to do that. It's invalid as it stands, but even if you added a select attribute for the for-each it would not do what you want. You just want to have a <xsl:apply-templates/> This will apply templates to all the text and element node childeren in order, the text will by default just appear and the menu nodes will get surrounded by ,green> or whetver markup you want. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Style Rules for Mixed Elements, Charles Cantrell | Thread | child node using variable, xsl list |
Re: Combining XML data, T_MULLEN 58211 6th S | Date | RE: [Ann] Useful XSLT stylesheets, Kay Michael |
Month |