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]

RE: Is this about grouping ?



Benoit,

If you have any control over it, a better structure for your XML would be:

<?xml version="1.0"?>
<topic>
  <group>
     <a>ItemA</a>
     <b>ItemB</b>
     <f>text1</f>
     <g>text2</g>
     <h>text3</h>
     <i>text4</i>
  </group>
  <group>
     <a>ItemA</a>
     <b>ItemB</b>
     <f>text5</f>
     <g>text6</g>
     <h>text7</h>
     <i>text8</i>
  </group>
  <group>
     <a>ItemA</a>
     <b>ItemB</b>
     <f>text9</f>
     <g>text10</g>
     <h>text11</h>
     <i>text12</i>
  </group>
</topic>

With this structure you can save yourself a lot of trouble in your XSLT.
I think this is one of the things that others were pointing to in previous
answers.

Rick Suiter



 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]