ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> visual-xslt-discuss
visual-xslt-discuss
[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  "&#241;" > 
]> 
<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> &ntilde;</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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved