XSD und XSLT für Templates

This commit is contained in:
Andreas Österreicher
2011-04-01 10:15:26 +00:00
parent 7448f4c028
commit 040d3dafe7
7 changed files with 78 additions and 0 deletions
+2
View File
@@ -36,6 +36,8 @@ define('SERVER_NAME','cis.technikum-wien.at');
//Pfad zum Upload-Ordner
define('BENOTUNGSTOOL_PATH','/websites/portal/trunk/documents/benotungstool/');
//Pfad zu Verzeichnis fuer Dokumentenmanagementsystem (sollte ausserhalb von htdocs liegen)
define('DMS_PATH','/var/documents/');
// XML fuer XSL-Vorlagen
define('XML_ROOT','http://dav.technikum-wien.at/oesi/portal/trunk/rdf/');
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="content">
<xs:element name="titel" type="xs:string"/>
<xs:element name="inhalt" type="wysiwyg"/>
</xs:element>
</xs:schema>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="content">
<html>
<head>
<title><xsl:value-of select="titel" /></title>
<link rel="stylesheet" href="../skin/style.css.php" type="text/css" />
</head>
<body>
<h1><xsl:value-of select="titel" /></h1>
<xsl:value-of select="inhalt" disable-output-escaping="yes" />
</body>
</html>
</xsl:template>
</xsl:stylesheet >
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="content">
<xs:element name="inhalt" type="wysiwyg"/>
</xs:element>
</xs:schema>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="content">
<html>
<head>
<link rel="stylesheet" href="../skin/style.css.php" type="text/css" />
</head>
<body>
<h1><xsl:value-of select="titel" /></h1>
<xsl:value-of select="inhalt" disable-output-escaping="yes" />
</body>
</html>
</xsl:template>
</xsl:stylesheet >
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="content">
<xs:element name="url" type="xs:string"/>
</xs:element>
</xs:schema>
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="content">
<html>
<head>
<script type="text/javascript">
window.location.href='<xsl:value-of select="url" />';
</script>
</head>
<body>
Sie werden automatisch weitergeleitet.
Sollte dies nicht der Fall sein, klicken sie bitte
<xsl:variable name="url" select="url"></xsl:variable>
<a href="{url}">hier</a>
</body>
</html>
</xsl:template>
</xsl:stylesheet >