r1582@pledge (orig r184): toidinamai | 2006-04-22 00:35:36 +0200

Importiert Template-Definitionen aus anderen Stylesheet-Dateien, die dann mit xsl:apply-imports an einer gewünschten Stelle angewendet werden können.
 Im Konfliktfall haben Stylesheet-Definitionen, die in der aktuellen Stylesheet-Datei definiert werden, Vorrang vor importierten Definitionen.
 
 http://de.selfhtml.org/xml/darstellung/xsltelemente.htm#import
 


git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@186 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
toidinamai 2006-04-21 22:40:06 +00:00
parent 56abba8d1e
commit 0649bde1f4
3 changed files with 10 additions and 6 deletions

View File

@ -12,9 +12,7 @@
<xsl:template match="p">
<xsl:element name="p">
<xsl:attribute name="class">
<xsl:value-of select="$css_classprefix"/><xsl:value-of select="@class"/>
</xsl:attribute>
<xsl:attribute name="class"><xsl:value-of select="@class" /></xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

View File

@ -3,8 +3,10 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="xsl">
<xsl:import href="../common.xsl" />
<xsl:variable name="css_classprefix">schedule</xsl:variable>
<xsl:include href="../common.xsl" />
<xsl:output method="xml"
version="1.0"
@ -14,6 +16,12 @@
indent="yes"/>
<xsl:strip-space elements="p ul td"/>
<xsl:template match="p">
<xsl:element name="p">
<xsl:attribute name="class">schedule</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="/page">
<xsl:variable name="title">
<xsl:choose>

View File

@ -6,8 +6,6 @@
xmlns:date="http://exslt.org/dates-and-times"
exclude-result-prefixes="xsl rss rdf">
<xsl:variable name="css_classprefix"></xsl:variable>
<xsl:include href="common.xsl" />
<xsl:include href="date.xsl" />
<xsl:include href="header.xsl" />