Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2005, 10:28 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reordering Using XSL

Hello.

I have been searching extensively for about 12 hours and have not come across an example of a problem similar to mine. I hope someone here may be able to help me.

I have an XML file with a structure like this:

<listing>
|_<venuelist>
| |_<venue venueID="xxx">
| |_<venue venueID="yyy">
| |_ etc.
|_<eventlist>
| |_<event titleID="123" venueID="xxx">
| |_<event titleID="456" venueID="xxx">
| |_<event titleID="789" venueID="xxx">
| |_<event titleID="123" venueID="yyy">
| |_<event titleID="456" venueID="yyy">
| |_etc.
|_<titlelist>
| |_<title titleID="123">
| |_<title titleID="456">
| |_etc.

I expect you can guess what I'm after! I want to end up with:

  <div class="listing">
    <div class="program">
      <div class="venue">xxx</div>
      <ul class="event">
        <li>123</li>
        <li>456</li>
        <li>789</li>
      </ul>
      <div class="title>123 details</div>
      <div class="title>456 details</div>
      <div class="title>789 details</div>
    </div>
  </div>
etc.

I would be most grateful for any assistance.

Thank you.

 
Old December 7th, 2005, 07:51 AM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have solved this.

After 2 (very long) days I discovered that there was nothing wrong with my XSL - the sample XML data was rubbish :(

Thanks for looking, anyway.
 
Old December 7th, 2005, 08:14 AM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey!

Can u send me the new sample XML and the required output html for the same... you can post them as a reply to this message...
Just curious to solve the problem...
Thanks!
Ashish






Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports Data Reordering software_developer_kk ASP.NET 2.0 Professional 0 December 17th, 2007 10:49 AM
Pass link values as xsl:parameter to php5 then xsl pauljr8 XSLT 1 July 2nd, 2007 10:32 PM
differnce between xsl:apply-templates and xsl:call chandu.mca007 XSLT 2 June 12th, 2007 04:12 AM
Records Reordering by the user! babaloui Pro PHP 6 June 18th, 2004 09:27 AM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.