xsl-list
[Top] [All Lists]

Re: processing code embedded inside a stylesheet

2004-04-14 07:08:04
At 06:49 PM 4/13/2004, you wrote:
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


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================



<Prev in Thread] Current Thread [Next in Thread>