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

why is the <p> preserved on one page and changed into

Subject: why is the <p> preserved on one page and changed into &lt; on another page
From: Roelof Wobben <rwobben@xxxxxxxxxxx>
Date: Sun, 1 Jan 2012 13:38:53 +0000
 why is the <p> preserved on one page and changed into
Hello,



I have two pages.

One is the <p> preserved. See http:/test.tamarawobben.nl

On another the p tag is changed into &lt; p &gt; so that the <p> is displayed
on the screen. See http://test.tamarawobben.nl/dagboek/2005-02/1



The xslt of the site is :



master.xslt :



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

<xsl:import href="../utilities/top.xsl"/>
<xsl:import href="../utilities/frontpage-article.xsl"/>
<xsl:import href="../utilities/recent_posts.xsl"/>


<xsl:output method="xml"
 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
 omit-xml-declaration="yes"
 encoding="UTF-8"
 indent="yes" />

<xsl:template match="/">
<xsl:apply-templates select="data/params" mode="top" />
     <body>
             <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 " />
                        </form>
                     </div>
                         <div id="title">
                             <h2><xsl:text>Tamara Wobben</xsl:text></h2>
                        </div>
                     </div>
                     <div id="content">
                        <div class="col01">
                                <div class="post">
                                     <xsl:apply-templates select="data" />
                                </div></div>
                              <div class="side-columns">
                             <div class="col02">
                                 <div class="pages">
                                     <!-- hier komen de losse pagina's -->
                                 </div>
                                 <div class="pages-bottom"></div>
                                 <div class="categories-upper"></div>
                                 <div class="categories">
                                    <!-- hier komt het menu  -->
                                </div>
                                 <div class="categories-btm"></div>
                                </div>
                             <div class ="col03">
                                <div class="recent-posts" >
                                   <xsl:apply-templates
select="data/recent-posts/entry" />
                                </div>
                                <div class="postit-bottom"></div>
                            </div>
                         </div>
<br style="clear:both" />
                     </div>
                     <xsl:apply-templates select="data/params" mode="down" />
                </div>
            </body>
</xsl:template>

</xsl:stylesheet>



frontpage.xsl :



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

<xsl:import href="../utilities/master.xsl"/>
<xsl:import href="../utilities/frontpage-article.xsl"/>

<xsl:template match="data">
     <xsl:apply-templates select="section/entry" />
</xsl:template>

</xsl:stylesheet>





dagboek.xslt :



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

<xsl:import href="../utilities/master.xsl"/>
<xsl:import href="../utilities/dagboek-article.xsl"/>

<xsl:template match="data">
     <xsl:apply-templates select="dagboek/entry" />
</xsl:template>

</xsl:stylesheet>



frontpage-article.xslt :





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

<xsl:template match="section/entry">
         <h3><xsl:value-of select="title" /></h3>
         <div class="post-inner">
            <xsl:apply-templates select="tekst" />
         </div>
</xsl:template>

<xsl:template match="tekst//p[starts-with(., 'FLOAT : ')]" priority="1">
    <img class="float-left" src="{$workspace}/images/{substring-after(.,
'FLOAT : ')}" />
</xsl:template>

<xsl:template match="tekst//*">
    <xsl:element name="{name()}">
        <xsl:apply-templates select="* | @* | text()"/>
    </xsl:element>
</xsl:template>

<xsl:template match="tekst//@*">
    <xsl:attribute name="{name(.)}">
        <xsl:value-of select="."/>
    </xsl:attribute>
</xsl:template>

</xsl:stylesheet>





dagboek-article :



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

<xsl:import href="../utilities/frontpage-article.xsl"/>
<xsl:import href="../utilities/date-time.xsl"/>

<xsl:template match="dagboek/entry" >
    <h3>
    <xsl:value-of select="titel" />
  </h3>
  <div class="post-inner">
     <div class="date-tab">
         <span class="month">
               <xsl:call-template name="format-date">
            <xsl:with-param name="date" select="datum"/>
      <xsl:with-param name="format" select="'M'"/>
               </xsl:call-template>
         </span>
         <span class="day">
                <xsl:call-template name="format-date">
      <xsl:with-param name="date" select="datum"/>
      <xsl:with-param name="format" select="'d'"/>
                </xsl:call-template>
         </span>
   </div>
   <xsl:apply-templates select="tekst" />
</div>
</xsl:template>

</xsl:stylesheet>







Can anyone seen here why this happens ?



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.