[piwi] r586 committed - renamed WikiToPiwiTransformation.xsl to ZetaDocumentToPiwiTransformati...

2 views
Skip to first unread message

pi...@googlecode.com

unread,
Nov 22, 2010, 7:00:46 AM11/22/10
to piwi...@googlegroups.com
Revision: 586
Author: grobmeier
Date: Mon Nov 22 04:00:00 2010
Log: renamed WikiToPiwiTransformation.xsl to
ZetaDocumentToPiwiTransformation.xsl
http://code.google.com/p/piwi/source/detail?r=586

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);

Reply all
Reply to author
Forward
0 new messages