Default-Namespaces hier und da
xsl:element ist unnötig und xsl:copy ist böse, da C3D2-Web und XHTML nicht im selben Namespace sind - jetzt baut es wieder (Validierung hatte das gestoppt) git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@505 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
e6c629eeb4
commit
a7dbd9869f
|
@ -8,7 +8,7 @@
|
|||
exclude-result-prefixes="xsl rss rdf date">
|
||||
|
||||
<xsl:template match="pre">
|
||||
<xsl:copy><xsl:apply-templates/></xsl:copy>
|
||||
<pre><xsl:apply-templates/></pre>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="p">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="dl">
|
||||
<xsl:copy><xsl:apply-templates/></xsl:copy>
|
||||
<dl><xsl:apply-templates/></dl>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="dh">
|
||||
|
@ -31,36 +31,35 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="dt">
|
||||
<xsl:copy><xsl:apply-templates/></xsl:copy>
|
||||
<dt><xsl:apply-templates/></dt>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="dd">
|
||||
<xsl:copy><xsl:apply-templates/></xsl:copy>
|
||||
<dd><xsl:apply-templates/></dd>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ul">
|
||||
<xsl:copy><xsl:apply-templates/></xsl:copy>
|
||||
<ul><xsl:apply-templates/></ul>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ol">
|
||||
<xsl:copy><xsl:apply-templates/></xsl:copy>
|
||||
<ol><xsl:apply-templates/></ol>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="li">
|
||||
<xsl:copy><xsl:apply-templates/></xsl:copy>
|
||||
<li><xsl:apply-templates/></li>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="image">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute>
|
||||
<xsl:attribute name="alt"><xsl:value-of select="@title"/></xsl:attribute>
|
||||
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
|
||||
</xsl:element>
|
||||
<img
|
||||
src="{.}"
|
||||
title="@title"
|
||||
alt="@title"
|
||||
class="@class"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="link">
|
||||
<xsl:element name="a">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@href">
|
||||
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
|
||||
|
@ -69,14 +68,15 @@
|
|||
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="em">
|
||||
<xsl:element name="em">
|
||||
<em>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:element>
|
||||
</em>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="addendum">
|
||||
|
@ -130,22 +130,23 @@
|
|||
<xsl:template name="chaosupdates">
|
||||
<div id="news">
|
||||
<h2>
|
||||
<xsl:element name="a">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="document('../chaosupdates.rdf')/rdf:RDF/rss:channel/rss:link"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:value-of select="document('../chaosupdates.rdf')/rdf:RDF/rss:channel/rss:title"/>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</h2>
|
||||
<ul>
|
||||
<xsl:for-each select="document('../chaosupdates.rdf')/rdf:RDF/rss:item[position() < 14]">
|
||||
<li>
|
||||
<xsl:element name="a">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="rss:link"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="rss:title"/>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:rss="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="xsl rss rdf">
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:rss="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="xsl rss rdf date">
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:rss="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
|
|
Loading…
Reference in New Issue
Block a user