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

Re: xsl: parsing through specific child nodes

Subject: Re: xsl: parsing through specific child nodes
From: "Mohit Anchlia" <mohitanchlia@xxxxxxxxx>
Date: Tue, 9 Sep 2008 09:55:09 -0700
Re:  xsl: parsing through specific child nodes
In my example below I didn't see any difference between the 2. I put a
debug in <xsl:template match="*"> just after <xsl:element ..> and it
looks like in both cases all element child nodes were pushed.

On Tue, Sep 9, 2008 at 9:46 AM, G. Ken Holman
<gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
> At 2008-09-09 09:42 -0700, Mohit Anchlia wrote:
>>
>> It's apache xalan. strange part is that if I remove select=* from
>> apply-templates then it indents properly.
>
> Omitting select= from <xsl:apply-templates/> is an abbreviation for using
> select="child::node()" which would push all child nodes..
>
> Since you are using select="*" you are pushing only element child nodes
> through your stylesheet, not *all* child nodes through your stylesheet.
>
> I hope this helps.
>
> . . . . . . . . . . Ken
>
> --
> Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
> Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
> G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
> Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
> Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.