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

processing code embedded inside a stylesheet

Subject: processing code embedded inside a stylesheet
From: "Jeffrey Moss" <jeff@xxxxxxxxxxxx>
Date: Tue, 13 Apr 2004 16:49:39 -0600
processing code
I have a number of templates that are all recursed using a simple
<xsl:apply-templates /> within all the templates, its for processing XHTML.

I want to put some nodes to match inside another template, for example:

<xsl:template match="template:header">
 <head>
  <title><xsl:value-of select="@title" /></title>
 </head>
</xsl:template>

<xsl:template match="template:body">
 <body>
  <xsl:apply-templates />
 </body>
</xsl:template>

now I want to do:

<xsl:template match="template:defaultpage">
<html>
 <template:header title="Hello World" />
 <template:body>
  <xsl:apply-templates />
 </template:body>
</html>
</xsl:template>


Is there a way to tell xsltproc to process these nodes as if they were part
of the source file?

-Jeff

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.