A
Angus Parvis
Hi,
in order to use HTML entities in a XSL Stylesheet i defined them at the
top of the document as I've been told in this group. My code look like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY amp "&">
[..]
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
But when i run my application on JBoss, i get hundreds of errors, but
all of the same kind:
[Error] :16:80: Element type "xsl:stylesheet" must be declared.
[Error] :17:51: Element type "xsl
utput" must be declared.
[Error] :22:91: Element type "xsl:variable" must be declared.
[..]
[Error] :66:25: Element type "xsl:template" must be declared.
[Error] :68:7: Element type "html" must be declared.
[Error] :69:7: Element type "head" must be declared.
[Error] :71:8: Element type "title" must be declared.
[Error] :72:47: Element type "link" must be declared.
[Error] :75:72: Element type "body" must be declared.
[..]
It seems like I get an error for every single tag used in the XSL - no
matter if it's XML/XSL or HTML.
Here's a part of the XSL Stylsheet to show the way I code:
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="202">
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<xsl:choose>
<xsl:when test="$language = 'de'">
<tr>
<td class="v0"><xsl:text>deutsch </xsl:text><a
href="{$currentURL}?language=en">english</a></td>
</tr>
</xsl:when>
<xsl
therwise>
<tr>
<td class="v0"><a
href="{$currentURL}?language=de">deutsch</a><xsl:text>
english</xsl:text></td>
</tr>
</xsl
therwise>
</xsl:choose>
<xsl:choose>
[..]
By the way: The application works, but it's slow as a snail. So how can
i fix this problem?
I appreciate any help, thx for it in advance,
Angus
in order to use HTML entities in a XSL Stylesheet i defined them at the
top of the document as I've been told in this group. My code look like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY amp "&">
[..]
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
But when i run my application on JBoss, i get hundreds of errors, but
all of the same kind:
[Error] :16:80: Element type "xsl:stylesheet" must be declared.
[Error] :17:51: Element type "xsl
[Error] :22:91: Element type "xsl:variable" must be declared.
[..]
[Error] :66:25: Element type "xsl:template" must be declared.
[Error] :68:7: Element type "html" must be declared.
[Error] :69:7: Element type "head" must be declared.
[Error] :71:8: Element type "title" must be declared.
[Error] :72:47: Element type "link" must be declared.
[Error] :75:72: Element type "body" must be declared.
[..]
It seems like I get an error for every single tag used in the XSL - no
matter if it's XML/XSL or HTML.
Here's a part of the XSL Stylsheet to show the way I code:
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="202">
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<xsl:choose>
<xsl:when test="$language = 'de'">
<tr>
<td class="v0"><xsl:text>deutsch </xsl:text><a
href="{$currentURL}?language=en">english</a></td>
</tr>
</xsl:when>
<xsl
<tr>
<td class="v0"><a
href="{$currentURL}?language=de">deutsch</a><xsl:text>
english</xsl:text></td>
</tr>
</xsl
</xsl:choose>
<xsl:choose>
[..]
By the way: The application works, but it's slow as a snail. So how can
i fix this problem?
I appreciate any help, thx for it in advance,
Angus