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

RE: ordering problem

Subject: RE: ordering problem
From: cknell@xxxxxxxxxx
Date: Tue, 03 Feb 2004 12:22:34 -0500
RE:  ordering problem
Is there a reason why you don't replace this:
	<xsl:template match="report:layout">
	    <xsl:apply-templates select="report:group"/>
	    <xsl:apply-templates select="report:fact"/>
	</xsl:template>

With this?:
	<xsl:template match="report:layout">
	    <xsl:apply-templates/>
	</xsl:template>

-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Márcio Ferreira <mferreira@xxxxxxxxx>
Sent:     03 Feb 2004 17:12:30 +0000
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:   ordering problem

Hello,
I am writing a stylesheet for processing one xml-document like that: 
<layout>
    <fact>preco_da_chamada</fact>
    <group id="grupo">
      <fact>bonus_atr_medio</fact>
      <fact>desconto</fact>
      <fact>montante_desc_medio</fact>
    </group>
    <fact>montante_medio</fact>

i want to processe this document orderly, and in my stylesheet i have:
	<xsl:template match="report:layout">
	    <xsl:apply-templates select="report:group"/>
	    <xsl:apply-templates select="report:fact"/>
	</xsl:template>

i.e. the xml is processed in this order, first the groups and then the
facts, and i want this to processe it in the same order as i have in my
xml-document.


Any hint?
Thank you in advance,
Márcio





 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.