cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10763] - Invalid XSLT namespace causes XSL to be serialised
Date Sat, 03 Aug 2002 02:51:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10763>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10763

Invalid XSLT namespace causes XSL to be serialised

vgritsenko@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From vgritsenko@apache.org  2002-08-03 02:51 -------
This is not bug, but result of proper operation of the XSLT engine. Please 
refer to the XSLT spec:

  http://www.w3.org/TR/xslt#result-element-stylesheet

Your typo in the namespace makes XSLT processor think that you have literal 
result element. Try following stylesheet and note declaration of 'good' 
namespace:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://bad-namespace.www.w3.org/1999/XSL/Transform" 
version="1.0">
<xsl:template match="/">
<html><body><table border="4">
<tr><th>Name</th><th>Age</th></tr>
<tr xmlns:good="http://www.w3.org/1999/XSL/Transform">
<td><good:value-of select="customers/customer/name"/></td>
<td><good:value-of select="customers/customer/age"/></td>
</tr>
</table></body></html>
</xsl:template>
</xsl:stylesheet>

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message