T
Tjerk Wolterink
Hello i've an xsl stylesheet that must support xhtml entities,
my solution:
----
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY % xhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
%xhtml;
]>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns
age="http://www.wolterinkwebdesign.com/xml/page"
xmlns:form="http://www.wolterinkwebdesign.com/xml/form">
<xsl:include href="xsl/xhtml/standard.xsl"/>
<xsl
utput method="xml" indent="yes"/>
<xsl
aram name="absolute_url"/>
<xsl
aram name="upload_url"/>
<xsl:variable name="help_icon" select="concat($absolute_url, '/img/help_icon.gif')"/>
<xsl:variable name="error_icon" select="concat($absolute_url, '/img/error.gif')"/>
<xsl:variable name="max_file_size" select="2000000 "/>
<xsl:variable name="max_image_width" select="260"/>
<xsl:template match="/form:form">
<page
age type="module">
<form enctype="multipart/form-data" action="" method="post">
<input type="hidden" name="_xcm_module" value="{@module}" />
---- xsl file is longer
But when i edit this file in my xml-editor it complains that every <xsl: element must be declared.
For example:
Element type "xsl:include" must be declared.
I know what the problem is (i changed the doctype of xsl:stylesheet)
but i dont know the solution!
Please help.
my solution:
----
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY % xhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
%xhtml;
]>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns
xmlns:form="http://www.wolterinkwebdesign.com/xml/form">
<xsl:include href="xsl/xhtml/standard.xsl"/>
<xsl
<xsl
<xsl
<xsl:variable name="help_icon" select="concat($absolute_url, '/img/help_icon.gif')"/>
<xsl:variable name="error_icon" select="concat($absolute_url, '/img/error.gif')"/>
<xsl:variable name="max_file_size" select="2000000 "/>
<xsl:variable name="max_image_width" select="260"/>
<xsl:template match="/form:form">
<page
<form enctype="multipart/form-data" action="" method="post">
<input type="hidden" name="_xcm_module" value="{@module}" />
---- xsl file is longer
But when i edit this file in my xml-editor it complains that every <xsl: element must be declared.
For example:
Element type "xsl:include" must be declared.
I know what the problem is (i changed the doctype of xsl:stylesheet)
but i dont know the solution!
Please help.