File:  [ELWIX - Embedded LightWeight unIX -] / gpl / axl / doc / ns_shaper.xml
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 8 07:09:12 2011 UTC (13 years, 1 month ago) by misho
Branches: axl, MAIN
CVS tags: HEAD, AXL0_6_7, AXL0_6_1
3th party - XML

<?xml version='1.0' ?>
<document xmlns:foo="http://www.aspl.es/schemas/shaper"
	  xmlns:shaper="http://another/shaper">
   <!-- invoke to get customer associated data -->
   <shaper:xml-rpc-invoke service="af_gestor_mecaes::customer::reference (customer_id)" register="cliente" />
   <shaper:cached use="cliente.name" as="nombre"/>
   <!-- get the surname 1 -->
   <shaper:cached use="cliente.surname1" as="apellido1"/>
   <!-- get the surname 2 -->
   <shaper:cached use="cliente.surname2" as="apellido2"/>

   <!-- get the hole name -->
   <shaper:cached use="cliente" as="cliente"/>

   <!-- get the invoice data associated -->
   <shaper:xml-rpc-invoke service="af_gestor_mecaes::customer::list (0, 0)" register="customer-list" />
   
   <!-- do a foreach iteration -->
   <shaper:foreach use="customer-list" register="customer" as="_plain">
      <!-- use the hole array information -->
      <customer>
        <shaper:cached use="customer.id" as="id" />
        <shaper:cached use="customer.name" as="name" />
      </customer>
      <!-- terminate foreach instruction -->
   </shaper:foreach>
</document>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>