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

Processing xsl within an included document

Subject: Processing xsl within an included document
From: "Talley, Brooks" <brooks@xxxxxxxx>
Date: Wed, 13 Oct 2004 10:33:57 -0700
processing xsl
I know that this is something of a FAQ, and I apologize.  But I've
searched the list archives and googled until the "g" key on my keyboard
begged for mercy, and I'm still stuck.

I just can't get my head around processing XSL elements inside an
included document.

Here's what I've got now:

--- main.xsl ---
<xsl:variable name="testvar" select="'hello'" />
<xsl:copy-of select="document('include/header.xsl')//page/header" />
Boring main stuff

--- include/header.xsl ---
<page>
<header>
<h1><xsl:value-of select="$testvar" /></h1>
</header>
</page>

...clearly, that's not going to work because the copy-of deep copy
thing.  The <xsl:value-of...> element is just being included verbatim in
the output.

So here's where I'm stuck.  It seems like it should be a very
straightforward operation, and I've done gymnastics with <xsl:copy> and
<xsl:apply-templates/>, but I just can't seem to make it make sense.

Please advise!
-b

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.