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

layout problem

Subject: layout problem
From: Roelof Wobben <rwobben@xxxxxxxxxxx>
Date: Thu, 8 Dec 2011 10:34:52 +0000
 layout problem
Hello,



I have this xml :



 <section>

     <section id="6" handle="sections">Sections</section>

     <entry id="9">

         <page>

            <page handle="home" id="4">Home</page>

         </page>

         <title handle="even-voorstellen">Even voorstellen</title>

        <description>test</description>

        <body>Naam : Tamara Wobben

              Geboorte gewicht : 2000 gram

              Geboorte lengte : 44 cm.

              Geboortedatum : 1 september 2005

        </body>

        <image>

           <item id="10" handle="even-voorstellen" section-handle="images"
section-name="Images">Even voorstellen</item>

        </image>

        <sort><span class="order">1</span></sort>

      </entry>

</section>



An I have made this xslt :



<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template name="section-content">
       <div id="outer">
          <div id="container">
                  <div id="search">
                    <form method="get" id="searchform"
action="http:/test.tamarawobben.nl/">
                       <input type="text" value="" name="s" id="s"
class="txtField" />
                      <input type="submit" id="searchsubmit" class="btnSearch"
value="Find It ;" />
                  </form>
                </div>
                <div id="title">
                   <h2>Tamara Wobben </h2>
               </div>
               <div id="content">
                    <div class="col01">

             <xsl:for-each select="section/entry">
  <div class="post">
   <h2><xsl:value-of select="title"/></h2>
                      <div class="post-inner">
         <h4><xsl:value-of select="heading"/></h4>
       <xsl:copy-of select="description/*"/>
       <xsl:copy-of select="body/*"/>
                      </div>
             </div>
   </xsl:for-each>
       </div>
       </div>
      </div>
</div>
</xsl:template>

</xsl:stylesheet>





And I need this thml output :



<div id="outer">
<div id="container">
  <div id="search">
    <form method="get" id="searchform" action="http://www.notepadchaos.com/">
      <input type="text" value="" name="s" id="s" class="txtField" />
      <input type="submit" id="searchsubmit" class="btnSearch" value="Find It
&raquo;" />
    </form>
  </div>
  <div id="title">
    <h2><a href="http://www.notepadchaos.com/">Notepad Chaos</a></h2>
    Just another WordPress weblog</div>
</div>
<div id="content">
  <div class="col01">
        <div class="post" id="post-52">
      <h3><a
href="http://www.notepadchaos.com/2010/05/27/notepad-chaos-2-1-coming-soon/"
rel="bookmark" title="Permanent Link to Notepad Chaos 2.1 Coming Soon">Notepad
Chaos 2.1 Coming Soon</a></h3>
      <div class="post-inner">
        <div class="date-tab"><span class="month">May</span><span
class="day">27</span></div>
        <div class="thumbnail"></div>
  <p>I&#8217;m doing a round of fixes and updates for this theme which should
be live here soon. I&#8217;ll also be applying some of the same edits to the
Desktop Chaos theme (since they&#8217;re 90% the same). Check back for updates
here in the coming week.</p>
      </div>




Why don't I get to see the output as I expected on the screen ?



Roelof

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.