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

Re: More Multi-Document Mambo

Subject: Re: More Multi-Document Mambo
From: Laurence O Garfield <lgarfiel@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Jul 2001 09:43:19 -0500 (CDT)
mambo multi index
> <!-- This SHOULD omit any element called with mode="sourceTree"
> that doesn't have a specific template for it, shouldn't it? -->
> <xsl:template match="*" mode="sourceTree"/>
>
>
> It does, and all its descendants of course, so if your para is in a
> branch of the tree you've pruned, it'll fall on the floor. (Dangerous
> business, tree surgery, I know about this as you may see if you look at
> my web site:-)

Heh.  I see that, except that have have nodes that are not under a
non-templated node.  Example:

chapter
 chapterinfo
  keyword
 para
 sect1
  para
  para
  simplelist
   member
   member
    product
 sect1
  para


I'm applying templates with

<xsl:apply-templates select="$chapter/*" mode="sourceTree"/>

which should select everything under the chapter node, but not the
chapter node itself, right?

I have templates in mode="sourceTree" for para, sect1, simplelist, and
member.  I want those to apply, but for chapterinfo (and everything under
it) and product to fall through null.  I can get one or the other to
happen, but not both.  What am I doing wrong here?  I tried adding a
template in mode="sourceTree" for chapter to pass that through
specifically, and it didn't help.

--Larry Garfield
lgarfiel@xxxxxxxxxxxxxxxxxxx

DePaul Linux Users Group Secretary

-- "If at first you don't succeed, skydiving isn't for you." :-)


 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.