[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: A problem with [embedded templates???]

Subject: RE: A problem with [embedded templates???]
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Mon, 4 Oct 1999 13:09:49 -0600
msxsl default template
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.