Hello,
I have two pages.
One is the <p> preserved. See http:/test.tamarawobben.nl
On another the p tag is changed into < p > 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
--~------------------------------------------------------------------
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>
--~--