aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dummy/transform.xsl15
-rw-r--r--src/transformation_facade.cc2
2 files changed, 10 insertions, 7 deletions
diff --git a/dummy/transform.xsl b/dummy/transform.xsl
index eab7a81..c955a85 100644
--- a/dummy/transform.xsl
+++ b/dummy/transform.xsl
@@ -2,15 +2,18 @@
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:external="http://ExternalFunction.xalan-c++.xml.apache.org"
+ xmlns:InputXSLT="function.inputxslt.application"
+ exclude-result-prefixes="InputXSLT"
>
-<xsl:output method="xml"
+<xsl:output
+ method="xml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
- indent="yes" />
+ indent="yes"
+/>
<xsl:template match="/">
<html>
@@ -18,7 +21,7 @@
</head>
<body>
<div id="raw">
- <xsl:variable name="testFile" select="external:read-file('test.txt')"/>
+ <xsl:variable name="testFile" select="InputXSLT:read-file('test.txt')"/>
<xsl:choose>
<xsl:when test="$testFile/self::error">
Could not read text file.
@@ -30,7 +33,7 @@
</div>
<div id="xml">
- <xsl:variable name="testXml" select="external:read-xml-file('test.txt')"/>
+ <xsl:variable name="testXml" select="InputXSLT:read-xml-file('test.txt')"/>
<xsl:choose>
<xsl:when test="$testXml/self::error">
Could not read XML file.
@@ -46,7 +49,7 @@
</div>
<div id="filelists">
- <xsl:variable name="fileList" select="external:read-directory('../')"/>
+ <xsl:variable name="fileList" select="InputXSLT:read-directory('../')"/>
<xsl:choose>
<xsl:when test="$fileList/self::error">
Could not read directory.
diff --git a/src/transformation_facade.cc b/src/transformation_facade.cc
index 38dfe93..846c586 100644
--- a/src/transformation_facade.cc
+++ b/src/transformation_facade.cc
@@ -17,7 +17,7 @@ TransformationFacade::TransformationFacade(const std::string& transformation):
transformation_{},
transformer_() {
const xalan::XalanDOMString customNamespace(
- "http://ExternalFunction.xalan-c++.xml.apache.org"
+ "function.inputxslt.application"
);
this->transformer_.installExternalFunction(