This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Assignment no, dynamic scoping si (was: Re: RE: Wishes for XSL revisions ...


Gunther,

Is there a reason I missed why

<xsl:template match='paragraph'>
   <p class='ancestor-or-self::*[@source][last()]/@source'>
     <xsl:apply-templates/>
   </p>
</xsl:template>

wouldn't work for your example?

(And just checking ... XPath experts ... 
ancestor-or-self::*[@source][last()] will give me the *closest* 'source' 
attribute on an ancestor or self ... not the most distant, won't it?)

Cheers,
Wendell


======================================================================
Wendell Piez                            mailto:wapiez@mulberrytech.com
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
======================================================================


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]