[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: A problem with [embedded templates???]
David Hunter wrote: > David Carlisle wrote: > > <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>) Because you said you are using MSXSL, you need to add some default templates required by the current spec before David Carlisle's templates will work: <!-- default template for root or element node --> <xsl:template><xsl:apply-templates/></xsl:template> <!-- default template for text or attribute node --> <xsl:template match="text()|@*"><xsl:value-of/></xsl:template> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|