mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
XSD und XSLT für Templates
This commit is contained in:
@@ -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/');
|
||||
|
||||
@@ -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 >
|
||||
|
||||
|
||||
@@ -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 >
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -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 >
|
||||
|
||||
|
||||
Reference in New Issue
Block a user