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

Re: processing alternating sibling nodes

Subject: Re: processing alternating sibling nodes
From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx>
Date: Tue, 31 Dec 2002 22:26:05 +0100
Re:  processing alternating sibling nodes
Hi :)

Wright, Steve wrote:

------------------------------------------------------------------------
I am having trouble getting the following xml tree to simply write out
it's contents in the order that it appears:
------------------------------------------------------------------------
<home>
 <problem>
   <question>
     <text>text content 1</text>
     <reference>ref content 1</reference>
     <text>text content 2</text>
     <reference>ref content 2</reference>
     <text>text content 3</text>
     <reference>ref content 3</reference>
     <text>text content 4</text>
     <reference>ref content 4</reference>
     <text>text content 5</text>
   </question>
 </problem>
</home>
------------------------------------------------------------------------

[...]


------------------------------------------------------------------------
The output I would like to get is this:
------------------------------------------------------------------------
text content 1
ref content 1
text content 2
ref content 2
text content 3
ref content 3
text content 4
ref content 4
text content 5
------------------------------------------------------------------------


This

#
<?xml version="1.0"?>
<transform
  version="1.0"
  xmlns="http://www.w3.org/1999/XSL/Transform">
  <output method="text"/>
</transform>
#

brings

#


text content 1 ref content 1 text content 2 ref content 2 text content 3 ref content 3 text content 4 ref content 4 text content 5


#


HTH,


Tobi


--
http://www.pinkjuice.com/


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.