xsl-list
[Top] [All Lists]

[xsl] layout problem

2011-12-08 04:35:10


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

                                          
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>