[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xmlform style problem

Subject: xmlform style problem
From: "Mohamed Abdel Hamid" <mohamed@xxxxxxxxxxxx>
Date: Wed, 30 Oct 2002 18:45:55 +0200
xf output
----- Original Message -----
From: "Mohamed Abdel Hamid" <mohamed@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, October 30, 2002 6:29 PM
Subject: xmlform style problem


> Hi All
> i have some troubles in handling some xmlform data
> i want to view the data fron first form in tabulaer view which caption if
> the title or header and the content of the field is the value,
> there is total price at the end of the first form
> after that order summery which should appear under total price
> anyone can help me to view the data in its correct places
> thanx
> the data structue like following :-
>
> <?xml version="1.0" ?>
> <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>           xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
>
>     <xf:form orientation="h" id="form-cart" view="cart" action="index">
>     <xf:caption></xf:caption>
>     <error>
>       <xf:violations class="error"/>
>     </error>
>
>   <xf:output ref="/label">
>     </xf:output>
>                <xf:repeat nodeset="items[position() &lt;=1000]"
id="items">
>                <xf:output ref="productNo" caption="true" align="left">
>                     <xf:caption><i18n:text>Product
> No</i18n:text></xf:caption>
>                     <xf:violations class="error"/>
>                 </xf:output>
>                 <xf:output ref="description" caption="true" align="left">
>
> <xf:caption><i18n:text>Description</i18n:text></xf:caption>
>                      <xf:violations class="error"/>
>                 </xf:output>
>                 <xf:output ref="priceAmount" caption="true" align="left">
>                     <xf:caption><i18n:text>Price</i18n:text></xf:caption>
>                     <xf:violations class="error"/>
>                 </xf:output>
>                 <xf:output ref="quantity" caption="true" align="left">
>
<xf:caption><i18n:text>Quantity</i18n:text></xf:caption>
>                    <xf:violations class="error"/>
>                 </xf:output>
>                   <xf:output ref="totalPrice" caption="true" align="left">
>                     <xf:caption><i18n:text>Total
> Price</i18n:text></xf:caption>
>                     <xf:violations class="error"/>
>                 </xf:output>
>
>            </xf:repeat>
>   </xf:form>
>  <xf:form orientation="v" id="form-order" view="order" action="order">
>     <!--<xf:caption><i18n:text>Order Summary</i18n:text></xf:caption>-->
>     <error>
>       <xf:violations class="error"/>
>     </error>
> <xf:group>
>
>     <xf:output ref="/orderLabel">
>         <xf:violations class="error"/>
>      </xf:output>
>
>         <xf:output ref="/totalItemPrice" caption="true" align="left">
>         <xf:caption><i18n:text>Total Price for Items
> </i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="/totalItemShipping" caption="true" align="left">
>         <xf:caption><i18n:text>Shipping Handling</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="/totalOrderWithoutTax" caption="true" align="left">
>         <xf:caption><i18n:text>Total Before Tax </i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="/estimatedTax" caption="true" align="left">
>         <xf:caption><i18n:text>Estimated Tax </i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="/totalOrder" caption="true" align="left">
>         <xf:caption><i18n:text>Order Total </i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="checkoutBean/checkout/payment" caption="true"
> align="left">
>         <xf:caption><i18n:text>Payment Method</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="checkoutBean/checkout/shipping" caption="true"
> align="left">
>         <xf:caption><i18n:text>Shipment Method</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>
>     <!-- Order Summary Data-->
>     <xf:output ref="checkoutBean/houseNo" caption="true" align="left">
>         <xf:caption><i18n:text>Shipping to</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="checkoutBean/street" caption="true" align="left">
>         <xf:caption><i18n:text>Street</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="checkoutBean/city" caption="true" align="left">
>         <xf:caption><i18n:text>City</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="checkoutBean/country" caption="true" align="left">
>         <xf:caption><i18n:text>Country</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="checkoutBean/zip" caption="true" align="left">
>         <xf:caption><i18n:text>Zip</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>     <xf:output ref="checkoutBean/email" caption="true" align="left">
>         <xf:caption><i18n:text>Email</i18n:text></xf:caption>
>         <xf:violations class="error"/>
>     </xf:output>
>      <!-- hidden model attribute -->
>     <xf:hidden ref="/hidden">
>       <xf:value>true</xf:value>
>     </xf:hidden>
>     <xf:submit id="order" class="button">
>       <xf:caption><i18n:text>Place Order</i18n:text></xf:caption>
>     </xf:submit>
>     <xf:submit id="editcheckout" class="button">
>       <xf:caption><i18n:text>Change Checkout
Info.</i18n:text></xf:caption>
>     </xf:submit>
>     <xf:submit id="editaddress" class="button">
>       <xf:caption><i18n:text>Change Address</i18n:text></xf:caption>
>     </xf:submit>
>     </xf:group>
>  </xf:form>
> </document>
>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.