You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/08/03 04:51:45 UTC

DO NOT REPLY [Bug 10763] - Invalid XSLT namespace causes XSL to be serialised

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