Subject: RE: A problem with [embedded templates???] From: "Hunter, David" <dhunter@xxxxxxxxxxxx> Date: Mon, 4 Oct 1999 14:14:59 -0400 |
From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Monday, October 04, 1999 11:46 AM > <xsl:template match="title"> > <h1><xsl:apply-templates/></h1> > </xsl:template> > > <xsl:template match="italics"> > <i><xsl:apply-templates/></i> > </xsl:template> for: <title>This is some <italics>text</italics> in some XML</title> this gives me empty tags (<h1><i></i></h1>) The closest I can get is the following: <xsl:template match="title"> <h1><xsl:value-of select="."/></h1> </xsl:template> <xsl:template match="italics"> <i><xsl:value-of select="."/></i> </xsl:template> which gives me the entire text but the italics template doesn't get called, or I can do things like this: <xsl:template match="title"> <h1><xsl:apply-templates/><xsl:value-of select="."/></h1> </xsl:template> or <xsl:template match="title"> <h1><xsl:value-of select="."/><xsl:apply-templates/></h1> </xsl:template> which gives me all of the text, with no formatting, and ALSO places the formatted italicized text either before or after the main text. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: A problem with [embedded templa, David Carlisle | Thread | RE: A problem with [embedded templa, John Dreystadt |
xsl:attribute with html option tags, Ken Schneider | Date | Re: Is fo:block an area-container?, Stephen Deach |
Month |