|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: My Intent: Template to generate RTF
Karl,
I might add, At 02:52 PM 10/17/2003, I wrote: Anyways, this is what I ended up with for a variable declaration: <xsl:variable name="xmTmplt" select="$DOC_TEMPLATE_XML//DOC[@id=ancestor-or-self::*[count(current()/ances tor-or-self::*)-1]/@id]"/> On the other hand, the expression above could be tightened to $DOC_TEMPLATE_XML//DOC[@id=ancestor::*[last() - 1]/@id] or even $DOC_TEMPLATE_XML//DOC[@id=ancestor::*/@id] if the ancestor you are interested in is the only ancestor with an @id (ancestor::*/@id collects @id attributes on all ancestors). Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








