[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

I have this xml :


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

     <entry id="9">


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


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


        <body>Naam : Tamara Wobben

              Geboorte gewicht : 2000 gram

              Geboorte lengte : 44 cm.

              Geboortedatum : 1 september 2005



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


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



An I have made this xslt :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"

<xsl:template name="section-content">
       <div id="outer">
          <div id="container">
                  <div id="search">
                    <form method="get" id="searchform"
                       <input type="text" value="" name="s" id="s"
class="txtField" />
                      <input type="submit" id="searchsubmit" class="btnSearch"
value="Find It ;" />
                <div id="title">
                   <h2>Tamara Wobben </h2>
               <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/*"/>


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;" />
  <div id="title">
    <h2><a href="http://www.notepadchaos.com/">Notepad Chaos</a></h2>
    Just another WordPress weblog</div>
<div id="content">
  <div class="col01">
        <div class="post" id="post-52">
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
        <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>

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


Current Thread


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.
First Name
Last Name
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.