Added:
/framework/trunk/piwi/resources/xslt/ZetaDocumentToPiwiTransformation.xsl
Deleted:
/framework/trunk/piwi/resources/xslt/WikiToPiwiTransformation.xsl
Modified:
/framework/trunk/piwi/lib/piwi/inputprovider/docbook/DocbookPage.class.php
/framework/trunk/piwi/lib/piwi/inputprovider/odt/FODTPage.class.php
/framework/trunk/piwi/lib/piwi/inputprovider/wiki/CreoleWikiPage.class.php
/framework/trunk/piwi/lib/piwi/inputprovider/wiki/DokuWikiPage.class.php
=======================================
--- /dev/null
+++
/framework/trunk/piwi/resources/xslt/ZetaDocumentToPiwiTransformation.xsl
Mon Nov 22 04:00:00 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
+
+ <!-- Output configuration -->
+ <xsl:output method="xml" encoding="UTF-8" indent="no"
omit-xml-declaration="yes" />
+
+ <!-- Only evaluate elements under '/body' (ignore the root) -->
+ <xsl:template match="body">
+ <content position="main">
+ <xsl:apply-templates/>
+ </content>
+ </xsl:template>
+
+ <!-- Copy everything but remove the namespace -->
+ <xsl:template match="*">
+ <xsl:element name="{local-name()}">
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="@*">
+ <xsl:attribute name="{local-name()}">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ </xsl:template>
+
+</xsl:stylesheet>
=======================================
--- /framework/trunk/piwi/resources/xslt/WikiToPiwiTransformation.xsl Sun
Nov 21 07:57:07 2010
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
-
- <!-- Output configuration -->
- <xsl:output method="xml" encoding="UTF-8" indent="no"
omit-xml-declaration="yes" />
-
- <!-- Only evaluate elements under '/body' (ignore the root) -->
- <xsl:template match="body">
- <content position="main">
- <xsl:apply-templates/>
- </content>
- </xsl:template>
-
- <!-- Copy everything but remove the namespace -->
- <xsl:template match="*">
- <xsl:element name="{local-name()}">
- <xsl:apply-templates select="@*|node()"/>
- </xsl:element>
- </xsl:template>
-
- <xsl:template match="@*">
- <xsl:attribute name="{local-name()}">
- <xsl:value-of select="."/>
- </xsl:attribute>
- </xsl:template>
-
-</xsl:stylesheet>
=======================================
---
/framework/trunk/piwi/lib/piwi/inputprovider/docbook/DocbookPage.class.php
Sun Nov 21 07:57:07 2010
+++
/framework/trunk/piwi/lib/piwi/inputprovider/docbook/DocbookPage.class.php
Mon Nov 22 04:00:00 2010
@@ -48,7 +48,7 @@
$processor = new XSLTProcessor();
$processor->registerPHPFunctions();
$processor->importStyleSheet(DOMDocument :: load($GLOBALS['PIWI_ROOT'] .
- "resources/xslt/WikiToPiwiTransformation.xsl"));
+ "resources/xslt/ZetaDocumentToPiwiTransformation.xsl"));
// Transform the Generators
$this->content = $processor->transformToDoc($this->content);
=======================================
--- /framework/trunk/piwi/lib/piwi/inputprovider/odt/FODTPage.class.php Sun
Nov 21 07:57:07 2010
+++ /framework/trunk/piwi/lib/piwi/inputprovider/odt/FODTPage.class.php Mon
Nov 22 04:00:00 2010
@@ -48,7 +48,7 @@
$processor = new XSLTProcessor();
$processor->registerPHPFunctions();
$processor->importStyleSheet(DOMDocument :: load($GLOBALS['PIWI_ROOT'] .
- "resources/xslt/WikiToPiwiTransformation.xsl"));
+ "resources/xslt/ZetaDocumentToPiwiTransformation.xsl"));
// Transform the Generators
$this->content = $processor->transformToDoc($this->content);
=======================================
---
/framework/trunk/piwi/lib/piwi/inputprovider/wiki/CreoleWikiPage.class.php
Sun Nov 21 07:57:07 2010
+++
/framework/trunk/piwi/lib/piwi/inputprovider/wiki/CreoleWikiPage.class.php
Mon Nov 22 04:00:00 2010
@@ -50,7 +50,7 @@
$processor = new XSLTProcessor();
$processor->registerPHPFunctions();
$processor->importStyleSheet(DOMDocument :: load($GLOBALS['PIWI_ROOT'] .
- "resources/xslt/WikiToPiwiTransformation.xsl"));
+ "resources/xslt/ZetaDocumentToPiwiTransformation.xsl"));
// Transform the Generators
$this->content = $processor->transformToDoc($this->content);
=======================================
---
/framework/trunk/piwi/lib/piwi/inputprovider/wiki/DokuWikiPage.class.php
Sun Nov 21 07:57:07 2010
+++
/framework/trunk/piwi/lib/piwi/inputprovider/wiki/DokuWikiPage.class.php
Mon Nov 22 04:00:00 2010
@@ -51,7 +51,7 @@
$processor = new XSLTProcessor();
$processor->registerPHPFunctions();
$processor->importStyleSheet(DOMDocument :: load($GLOBALS['PIWI_ROOT'] .
- "resources/xslt/WikiToPiwiTransformation.xsl"));
+ "resources/xslt/ZetaDocumentToPiwiTransformation.xsl"));
// Transform the Generators
$this->content = $processor->transformToDoc($this->content);