Subject: Re: [xsl] dynamically generate value for xsl:use-attribute-sets? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 03 Feb 2010 11:47:29 -0500 |
I'm working in FO and would like to do the following:
<fo:block xsl:use-attribute-sets="as_SectionTOCTitleLvl{parent::*/@level}"> ... </fo:block>
Error gets thrown up. Did a quick google search and seems that use-attribute-sets value cannot be dynamic.
<xsl:template mode="TOCTitleLvl" match="@level[.='1']"> <xsl:attribute name="font-size">125%</xsl:attribute> </xsl:template>
<xsl:template mode="TOCTitleLvl" match="@level[.='2']"> <xsl:attribute name="font-size">115%</xsl:attribute> <xsl:attribute name="font-style">italic</xsl:attribute> </xsl:template>
<fo:block xsl:use-attribute-sets="as_SectionTOCTitle"> <xsl:apply-templates mode="TOCTitleLvl" select="../@level"/> ... </fo:block>
So my question is, are there plans to allow this in a future XSLT recommendation?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] dynamically generate value fo, Mario Madunic | Thread | RE: [xsl] dynamically generate valu, Mario Madunic |
Re: [xsl] best practices, insert PI, Wendell Piez | Date | RE: [xsl] dynamically generate valu, Mario Madunic |
Month |