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

RE: Partial XSLT on grandchildren only?

Subject: RE: Partial XSLT on grandchildren only?
From: "Dion Houston" <dionh@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Feb 2003 12:40:10 -0800
tranform only node
Hey Richard:

In any compliant XSLT processor (to include ours :) ) to process only on
the grandchildren, simply have the following in your root template:

<xsl:template match="/">
   <xsl:apply-templates select="*/*/*"/>
</xsl:template>

The default template rule for elements is to apply-templates from that
element, hence in the absence of other rules the processor will iterate
through an entire document.

However, by having a template like the above, you are overriding the
default and going direct to the grandchildren nodes of the document.

HTH!

Dion

-----Original Message-----
From: Richard Heintze [mailto:sieg_heintze@xxxxxxxxx] 
Sent: Friday, February 21, 2003 12:25 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx

Is it possible to use XALAN to only transform the
grandchildren of a XML document?

I want to load the XML file and manually iteratate
over the grandchildren of the document. Each
grandchild represents a page in a power-point like
presentation.

I don't want to tranform the entire document. I've had
trouble making the Microsoft DOM constrain itself to
only the grandchild node -- it climbs up (down,
actually) to the grandparent and transforms the whole
document, even when I only pass it the grand child
node. Does XALAN do this too?
 
   Thanks,
           Siegfried

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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


 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.