• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Section B.4. A More Advanced Example

B.4. A More Advanced Example

Our final example triplet of source document, stylesheet, and result document involves converting an XML format into another XML format, rather than HTML. Example B-7 shows a simple XML document containing order information.

Example B-7. An XML document containing orders

<orders>
  <order>
    <item>Widget</item>
    <price>50</price>
    <quantity>3</quantity>
  </order>
  <order>
    <item>Thingamajig</item>
    <price>25</price>
    <quantity>2</quantity>
  </order>
  <order>
    <item>Whatchamacallit</item>
    <price>35</price>
    <quantity>1</quantity>
  </order>
</orders>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint