You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Sami Niinisalo <sa...@lmf.ericsson.se> on 2001/03/30 11:44:32 UTC
A bug, when name-attribute has value "xmlns"?
Hi there!
We get the following errors, when transfoming a content:
file:///home/sami/data/java/transform/imode_wml2.xsl; Line 28; Column
33; Illegal attribute name: xmlns
file:///home/sami/data/java/transform/imode_wml2.xsl; Line 31; Column
37; Could not resolve namespace prefix: xmlns. The node will be ignored.
This error occurs only when we are using later versions from Xalan
2.0.0. Everything works fine with Xalan 2.0.0.
Below is a cut from the stylesheet we use, which causes the error:
<xsl:template match="html">
<html>
<xsl:attribute name="xmlns">
<xsl:value-of select="'http://www.w3.org/1999/xhtml'" />
(line 28)
</xsl:attribute>
<xsl:attribute name="xmlns:wml"> (line 31)
<xsl:value-of select="'http://www.wapforum.org/2000/wml'" />
</xsl:attribute>
<xsl:apply-templates />
</html>
</xsl:template>
And, here is an example of the source content (some br-tags removed,
though):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>EUmode - iMode for Europe</title>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252" />
<meta content="yes" name="CHTML" />
<meta content="true" name="PixoFriendly" />
<meta content="EUmode.net - Independent iMode portal for Europe"
name="description" />
<meta
content="imode,i-mode,Europe,EU,European,handheld,Visor,Psion,PDA,AvantGo,hand-h
eld,CHTML,XHTML,XHTML
Basic,mobile,cellphone,travel,WAP,MMM,XML,HDML,WML,WTA,UMT
S,GSM,communications,SMS,SimCard,phones,Europa,p
,news,weather"
name="keywords" />
<meta content="index,follow" name="robots" />
<meta content="True" name="HandheldFriendly" />
<meta content="MSHTML 5.50.4030.2400" name="GENERATOR" />
</head>
<body>
<font color="red">
http://eumode.net/i/
</font>
<center><a id="top" name="top"><img height="15" alt="EUmode"
src="EUmode_files/eumode2s.gif" width="70" border="0" /></a><br />
<img src="EUmode_files/imode.gif" align="middle" /><br />
<marquee behaviour="SCROLL">Welcome to EUmode.net - Independent
iMode portal for Europe - Bookmark now!</marquee><br />
<img src="EUmode_files/key_star.gif" /> <a accesskey="*"
href="http://eumode.net/i/menu.html">Continue</a></center>
<hr />
<a href="http://eumode.net/i/about.html">About</a><br />
<a href="http://eumode.net/i/contact.html">Contact</a><br />
<a href="http://eumode.net/i/discl.html">Disclaimer</a><br />
EUmode 2001<br />
<a
href="http://www.counta.com/cgi-local/i-mode/newRank/cCount.cgi?Id=eumode">
<img alt="Counta.com" src="EUmode_files/freeCountI.gif"
border="0" /></a><a
href="http://www.japan-ltd.com/ranking/i/06/rl.cgi?act=rank&id=eumode">
Japan Ranking</a>
</body>
</html>
Best regards,
Sami Niinisalo
Ericsson Application Research