[Visual-XSLT-discuss] Entity declarations in XSL stylesheet
by Jerry Collings other posts by this author
Mar 14 2003 5:14PM messages near this date
view in the new Beta List Site
[Visual-XSLT-discuss] Sophos Acquires Anti-Spam Specialist ActiveState
|
[Visual-XSLT-discuss] how to indicate attribute
I want to be able to use entity references (other than the built-in XML entities) in my XSL
stylesheet.
The XSL stylesheet will be producing HTML and so I want to be able to use the entities defin
ed in the HTML standard (like nbsp,apos,ntilde, etc)
I tried the following stylesheet and when I run the transformation I get an XmlSchemaExcepti
on stating that the xsl:stylesheet element is not declared.
This transformation works fine when using a non-validating parser, but Visual XSLT uses a va
lidating parser (apparently XmlValidatingReader).
Is there a way to do this with VisualXSLT?
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY ntilde "ñ" >
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1" />
<xsl:template match="/">
<html>
<body> ñ</body>
</html>
</xsl:template>
</xsl:stylesheet>
Jerry Collings
jcollingssprint@[...].net
_______________________________________________
Visual-XSLT-discuss mailing list
Visual-XSLT-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|