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

EXSL's dyn:evaluate() and XALAN vs. xsl:use-attribute-

Subject: EXSL's dyn:evaluate() and XALAN vs. xsl:use-attribute-sets
From: raphead@xxxxxxx
Date: Thu, 21 Aug 2003 00:16:39 +0200 (MEST)
dyn evaluate
Hi,

As I don't really like mailinglists it was kind of hard for me do this step
but for my current problem
I can't find a proper answer elsewhere:

Suppose I have the following XML document:

...
<elemxy class="test1">Some content</elemxy>
...

And the following template snippet:

...
  <xsl:template match="elemxy">
	    <fo:block  xsl:use-attribute-sets="dyn:evaluate(@class)">
	    			<xsl:apply-templates/>
	    </fo:block> 
  </xsl:template>
...

Obviously I have several different class attributes (like test1 here) and
want
them to be the name of an attribute-set. This because: I'm generating the
attribute-sets dynamically
and attach them to the xsl stylesheet.

My question is now: Why is the above construct NOT working?
I'm using xalan-j_2_5_1 and my root element of the stylesheet looks like
this:

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format"
                xmlns:xalan="http://xml.apache.org/xalan"
                xmlns:dyn="http://exslt.org/dynamic"
                extension-element-prefixes="dyn">

Xalan simply ignores the statement. When I replace the expression with 
a static name the proper attribute-set is used.

Thomas H.
With greets from Germany


-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


 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.