This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

iterating over unstructured data



Hi,

This may be a faq, but my searches have so far been unproductive.

For the data:

<root>
  <foo>1</foo>
  <bar>2</bar>
  <foo>3</foo>
  <bar>4</bar>
  <foo>5</foo>
  <bar>6</bar>
  <foo>7</foo>
  <bar>8</bar>
  <foo>9</foo>
  <bar>10</bar>
</root>

I want to output the following format (foo followed by bar on each line):

1	2
3	4
5	6
7	8
9	10

What is the best way of going about this?

cheers

andrew

===

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]