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

Re: Standardizing HTML look-and-feel in XSL (named templates

Subject: Re: Standardizing HTML look-and-feel in XSL (named templates)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 8 Dec 1999 10:21:40 GMT
standardizing html

<xsl:template match="NAME">
   <xsl:call-template name="TABLE_CELL">
      <xsl:call-template name="BOLD"/>
   </xsl:call-template>
</xsl:template>


That inner call-template is a syntax error.
If you want to pass information to a named template, declare a parameter
to the template and then use xsl:with-param to pass the value of the
BOLD template to the TABLE_CELL template.

>  Am I thinking about this problem the wrong way?

Probably:-) Hard to tell from your description.

Since you aren't using FO, another way to get
> so that I can change the BGCOLOR attribute in it and have the change
> apply throughout.
of course is to use css styling.


Also are you sure you want to be using 
      <xsl:value-of select="."/>

rather than apply-templates ? Using value-of just gets you the character
data, so if there is any xml markup in the content of the current
element then that won't get converted to html.

David


 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.