[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Entities within my stylesheet.
Subject: [xsl] Entities within my stylesheet. From: Yago Alvarado <Yago.Alvarado@xxxxxxxxxxxxxx> Date: Tue, 24 Sep 2002 16:38:23 +0100 |
Hi all! In several places I've seen people using entities within their stylesheets. See example below: XML: <?xml version="1.0"?> <data></test></data> XSL: <!DOCTYPE stylesheet [ <!ENTITY ntilde "ñ" ><!-- small n, tilde --> ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text"/> <xsl:template match="/"> ñ </xsl:template> </xsl:stylesheet> I've seen this many times but I've never managed to make it work. I always get an error like: ERROR: The name of the top most element must match the name of the DOCTYPE declaration. Source: '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">' Line: 6, Pos: 80 Does anyone know what to do in order to get the entities to work within the stylesheet? btw I'm using MSXML 4 SP1 (Could this be the problem?) TIA, Yago _____________________________________________________________________ This e-mail has been scanned for viruses by the WorldCom Internet Managed Scanning Service - powered by MessageLabs. For further information visit http://www.worldcom.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL: query part of string, Jacoby, Peter R. | Thread | Re: [xsl] Entities within my styles, Jeni Tennison |
Re: [xsl] Variable question: captur, Mike Ferrando | Date | Re: [xsl] Entities within my styles, Jeni Tennison |
Month |