Anyone help on this XSLT coding
Hii,
The following is my Xml file:
<questions><question id="q1"><head>1.</head> <p>How is Indiana#x0027;s farming today like its early farming?</p></question>
<question id="q2"><head>2.</head> <p>How is Indiana#x0027;s farming today different from its early farming?</p></question></questions>
<answer idref="q1"><head>1.</head> <p>Many Indian farmers raise corn and hogs today, just as they did in the past.</p></answer>
<answer idref="q2"><head>2.</head> <p>Today, farmers raise other crops such as soybeans; farms are larger with fewer workers; modern machines have replaced wooden plows and picking corn by hand.</p></answer>
I want to convert this as
<list type="ol">
<li id="q1"><p>How is Indiana#x0027;s farming today like its early farming?</p></li>
<li id="q2"><p>How is Indiana#x0027;s farming today different from its early farming?</p></li></list>
<list type="ol">
<li id="q1"><p>Many Indian farmers raise corn and hogs today, just as they did in the past.</p></li>
<li id="q2"><p>Today, farmers raise other crops such as soybeans; farms are larger with fewer workers; modern machines have replaced wooden plows and picking corn by hand.</p></li></list>
Thanks in Advance,
srkumar
|