xsl-list
[Top] [All Lists]

Re: Re: Re: Re: [xsl] Namespace and key function issue?

2010-10-12 20:34:46
At 2010-10-12 18:37 -0400, I wrote:
If you are using XSLT 2.0 (which is in OpenOffice 3.2), you can expose all of the attributes (but not their names) using something like:
...
    key=<xsl:value-of select="key('style:find_style',@text:style-name)/
                              @*/concat(name(.),'=',.)"/>
    lookup=<xsl:value-of select="//style:style[(_at_)style:name=
                                       current()/@text:style-name]/
                                       @*/concat(name(.),'=',.)"/>

To get the above to work you'll have to change version="1.0" to version="2.0" in your <xsl:stylesheet>. That may have other ramifications in your stylesheet, so you may have to revert back to 1.0 when you are done diagnosing this.

. . . . . . . . . Ken

--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
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>
--~--