[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: "John Dreystadt" <jdreysta@xxxxxxxxxxxxx>
Date: Mon, 4 Oct 1999 14:34:41 -0400
xsl embedded template in template
I suspect you are hitting a known problem with IE5.

http://msdn.microsoft.com/xml/xslguide/xsl-built-in.asp

IE5 has a problem about processing text nodes correctly by default.
The fix is simple, add in the built in rules that they should have
honored in the first place. The good news is that other XSL processors
won't care because your added in rules match rules they have already.

John Dreystadt

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Hunter, David
> Sent: Monday, October 04, 1999 2:15 PM
> To: 'xsl-list@xxxxxxxxxxxxxxxx'
> Subject: RE: A problem with [embedded templates???]
>
>
> 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
>


 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.