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

Re: xsl:use-attribute-sets, xslt 1.0, fo output

Subject: Re: xsl:use-attribute-sets, xslt 1.0, fo output
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Wed, 19 Jan 2011 13:01:01 +0000
Re:  xsl:use-attribute-sets
On Wed, 19 Jan 2011 07:48:11 -0500
"G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:

> The xsl:attribute instructions in an attribute set work just as well 
> in a called template (though they are executed in real time with the 
> current node being what it is rather than the current node being the
> root).
> 
> Perhaps you could despatch to the appropriately named called template 
> by creating a despatch called template that knows the name of each of 
> the attribute set called templates (since calling a template also 
> cannot be done through an AVT).
> 
> A bit awkward, but you don't lose the concept of an attribute set, 
> per se, you are just creating a dynamically callable version of one 
> rather than a pre-defined one.
> 
> I hope this helps.

I think so Ken. 
  How about a named template, param the @remap value,
read the external file of attribute sets, then copy over
the attributes explicitly and generates the output element
with all the attributes... 
  Long winded, but keeps the world tidy. 

Bit messy with nested xsl:use-attribute-sets :-)
  
Thanks 


-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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.