I
iliad
hi!
i have the given xml and would like to transform it into html. how can
i map the par-elements to the correct pardef-elements?
thanks a lot!!
---------- XML Input ----------
<richtext>
<pardef id='1' ...some additional attributes... />
<par def='1'>
textbefore
</par>
<pardef id='2' list='bullet' ...some additional attributes... />
<par def='2'>
point1
</par>
<par>
point2
</par>
<par>
point3
</par>
<par def='1'>
textmiddle
</par>
<par def='2'>
point4
</par>
<par>
point5
</par>
<par>
point6
</par>
<par def='1'>
textafter
<par/>
</richtext>
---------- HTML output ----------
<P>textbefore</P>
<P>
<UL>
<LI>point1</LI>
<LI>point2</LI>
<LI>point3</LI>
</UL>
</P>
<P>textmiddle</P>
<P>
<UL>
<LI>point4</LI>
<LI>point5</LI>
<LI>point6</LI>
</UL>
</P>
<P>textafter</P>
i have the given xml and would like to transform it into html. how can
i map the par-elements to the correct pardef-elements?
thanks a lot!!
---------- XML Input ----------
<richtext>
<pardef id='1' ...some additional attributes... />
<par def='1'>
textbefore
</par>
<pardef id='2' list='bullet' ...some additional attributes... />
<par def='2'>
point1
</par>
<par>
point2
</par>
<par>
point3
</par>
<par def='1'>
textmiddle
</par>
<par def='2'>
point4
</par>
<par>
point5
</par>
<par>
point6
</par>
<par def='1'>
textafter
<par/>
</richtext>
---------- HTML output ----------
<P>textbefore</P>
<P>
<UL>
<LI>point1</LI>
<LI>point2</LI>
<LI>point3</LI>
</UL>
</P>
<P>textmiddle</P>
<P>
<UL>
<LI>point4</LI>
<LI>point5</LI>
<LI>point6</LI>
</UL>
</P>
<P>textafter</P>