Problem in generating xslt for an xml file which changes dynamically

11 views
Skip to first unread message

Manidhar

unread,
Jul 18, 2012, 12:04:28 PM7/18/12
to xs...@googlegroups.com
Hi,
     I am new to XSLT. I have a problem in converting XML to HTML using XSLT.

For me XML file will be generated automatically for example like below


<TestCases>
  <Test>
          <TestID>Test_001</TestID>
          <Test>Test1</Test>
          <Result>Pass<Result>
  <Test>
  <Test>
          <TestID>Test_001</TestID>
          <Test>Test2</Test>
          <Result>Pass<Result>
  <Test>
  <Test>
          <TestID>Test_001</TestID>
          <Test>Test3</Test>
          <Result>Pass<Result>
  <Test>
  <Test>
          <TestID>Test_002</TestID>
         <Test>Test1</Test>
          <Result>Pass<Result>
  <Test>

Note : xml changes after each time I execute my automation script.

There will be same TestID's but different tests [You can observer this in xml code mentioned above].I would like to convert this to html in such a way that If there are more occurances of TestID with same value,I would to  create a rowspan which displays the testID value only one time.  Can any please please guide me to create an xslt code to my xml file which changes dynamically.Thanks in advance

Christian Wahl

unread,
Aug 3, 2012, 8:33:07 AM8/3/12
to xs...@googlegroups.com
Can you post the resulting HTML that you would like to have?
Reply all
Reply to author
Forward
0 new messages