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

XSL hold, compare, and replace param value

Subject: XSL hold, compare, and replace param value
From: "Steve Sze" <steveyksze@xxxxxxxxx>
Date: Thu, 13 Jul 2006 08:52:16 -0400
compare and replace
Hi All

I have a problem holding on to a param or variable value in xslt.
Setting it Globally or Locally.

How can I hold onto the country value? Compare to the next value, if
country is diff. then replace the value for that param with the next
country value?

Any help would be much appreciated.  Ive read all the solutions and
tried diff. ways but no cigar.

Thank You
Steve

Sample XML file
<report>
      <column>name</column>
      <column>country</column>
      <column>group</column>
      <table>
              <date>07-13-2006
                      <group type="AAA">111111
                              <entry>
                                      <name>Adel</name>
                                      <country>USA</country>
                                      <id>12345</id>
                              </entry>
                              <entry>
                                      <name>Barry</name>
                                      <country>USA</country>
                                      <id>12346</id>
                              </entry>
                              <entry>
                                      <name>Carl</name>
                                      <country>USA</country>
                                      <id>12347</id>
                              </entry>
                      </group>
                      <group type="BBB">111111
                              <entry>
                                      <name>Dave</name>
                                      <country>USA</country>
                                      <id>12345</id>
                              </entry>
                              <entry>
                                      <name>Ethel</name>
                                      <country>USA</country>
                                      <id>12346</id>
                              </entry>
                              <entry>
                                      <name>Fred</name>
                                      <country>USA</country>
                                      <id>12347</id>
                              </entry>
                      </group>
                      <group type="CCC">111111
                              <entry>
                                      <name>George</name>
                                      <country>EUR</country>
                                      <id>24567</id>
                              </entry>
                              <entry>
                                      <name>Harold</name>
                                      <country>EUR</country>
                                      <id>23458</id>
                              </entry>
                              <entry>
                                      <name>Jennifer</name>
                                      <country>EUR</country>
                                      <id>23459</id>
                              </entry>
                      </group>
              </date>
      </table>
</report>

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.