You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthias Barmeier <ba...@BARMEIER.COM> on 2000/05/30 09:51:55 UTC
STYLE tag vanished ??
Hi,
I don't know if this is the right place to ask, but I am not sure if my
problem is xalan specific or not.
Here it comes:
I have an XSL Document like this:
<?xml version="1.0"?>
<!-- Identity transformation -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<style>
<... something deleted />
.modul {
font-size: 20pt;
font-weight: bold;
}
<... something deleted />
</style>
<div style="margin-left:1.4cm;margin-right:0.5cm">
<xsl:for-each select="Systemdokumentation/Hauptteil/System">
<h1><xsl:value-of select="@name"/></h1>
<xsl:apply-templates/>
</xsl:for-each>
<xsl:for-each select="Systemdokumentation/Hauptteil/Modul">
<p class="modul">Modul: <xsl:value-of select="@name"/></p>
<xsl:apply-templates/>
</xsl:for-each>
</div>
</xsl:template>
<... something deleted />
After processing a xml document using this style stylesheet I got:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<div style="margin-left:1.4cm;margin-right:0.5cm"><h1>CPMIS</h1>
Abb. 1.0 "Generelle Abarbeitung eines
Php-Skriptes"
Grundsätzlich sind alle Seiten des
CPMIS-Systems als Php-Skript realisiert, da für die Stylesheet-Angaben
relative Pfadangaben Verwendung finden, die als Php-Variablen in der Datei
.../kato_core/core/globals-kato.php global definiert sind. Einzige Ausnahme
bilden die Framesets (HTML), da hier keine Stylesheets verwendet werden.
Bei jedem PHP-Skript wird mit der Funktion
getenv()geprüft, ob die KATHO_PATH Systemvariable gesetzt ist. Ist dies
der Fall, werden die Php-Dateien unter Verwendung des ermittelten
KATO-Pfadnamens eingebunden. Ansonsten wird die Abarbeitung des Php-Skripts
abgebrochen und die Fehlermeldung "Die KATO_PATH Systemvariable ist
nicht gesetzt!" ausgegeben.
Im einzelnen werden folgende Php-Dateien
eingebunden:
Where is the <style> </style> gone ??
this works fine with the Oracle XSL Processor.
Does anybody know whats wrong ??
/*
Dipl.-Inform. Matthias Barmeier Tel: +49 (0)30 79 70 72 87
Büro für Softwareentwicklung Fax +49 (0)30 79 70 72 88
Grunewaldstr. 18 Email: barmeier@barmeier.com
12165 Berlin WWW: <http://www.barmeier.com>
*/