xsl-list
[Top] [All Lists]

Rendering XML

2002-12-18 05:57:00
Hi:

I have the following XML file:

<npc id="1">
  <p desc="desktop" mpn="123" price="29.99"
vendor="xxx.com"/>
  <p desc="chair"   mpn="654" price="12.99"
vendor="xxx.com"/>
  <p desc="desktop" mpn="123" price="27.99"
vendor="yyy.com"/>
  <p desc="desktop" mpn="123" price="30.99"
vendor="zzz.com"/>
  <p desc="table"   mpn="389" price="45.99"
vendor="xxx.com"/>
</npc>

and I'd like to generate the following output but I
haven't figure it out yet.
Any ideas??
Thanks.

<npc id="1">
  <p desc="desktop" mpn="123">
    <pdet price="29.99" vendor="xxx.com"/>
    <pdet price="27.99" vendor="yyy.com"/>
    <pdet price="30.99" vendor="zzz.com"/>
  </p>
  <p desc="chair"   mpn="654" price="12.99"
vendor="xxx.com"/>
  <p desc="table"   mpn="389" price="45.99"
vendor="xxx.com"/>
</npc>


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>