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]

XSL-parsing problem


Hi,

I have following XML-structure:
  <includedValues>
    <range>
      <start>0</start>
      <end>2</end>
    </range>
    <range>
      <start>5</start>
      <end>10</end>
    </range>
    <range>
      <start>15</start>
      <end>30</end>
    </range>
  </includedValues>
  <answers>
    <answer>2</answer>
    <answer>2</answer>
    <answer>3</answer>
    <answer>6</answer>
  </answers>
Included values tells what answers are accepted. In this case answers 2 and
6 are accepted, but 3 is ignored. I would like to count accepted values to
the web page with xsl. Can anyone tell me how to do that?

I think I could do that by myself if there was only one range (something
like
"count(answers/answer[.&gt;=../../includedValues/range/start][.&lt;=../../in
cludedValues/range/end])" might do it...) , but document has 0-n ranges.

Yours,
Niko Luojumaki


 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]