xsl-list
[Top] [All Lists]

xmlform style problem

2002-10-30 09:45:55

----- Original Message -----
From: "Mohamed Abdel Hamid" <mohamed(_at_)imkenberg(_dot_)net>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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



<Prev in Thread] Current Thread [Next in Thread>
  • xmlform style problem, Mohamed Abdel Hamid <=