[xsl] Spec. Chars - Tried FAQ answers...

Subject: [xsl] Spec. Chars - Tried FAQ answers...
From: Nathan Shaw <n8_shaw@xxxxxxxxx>
Date: Mon, 23 Jul 2001 09:24:46 -0700 (PDT)
I am trying to use NBSP in my XSL and it is telling me
it is an undefined entity. I have tried the solutions
in the FAQ to no avail...

Example 1: within the XML DTD

<!DOCTYPE document  SYSTEM "document.dtd" [ 
<!ENTITY nbsp "&#160;"> 
]>

- Works fine, but I don't want to use NBSP in my XML
file. I want to use it in my XSL file.

Example 2: within the XSLT stylesheet

<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;"> 
]>

- Tells me that the element xsl:stylesheet is used but
is not declared in the DTD.

Here is what I am doing in my XSL:

<xsl:template match="MainMenuItem">
<b><a href="{@URL}"><xsl:apply-templates
/></a></b><xsl:if 
test="not(position()=last())">&nbsp;|&nbsp;</xsl:if>
</xsl:template>

Using MSXML, but also tried it on InstantSaxon with
same results.

Any thoughts?

Nate

=====
----------------------------
Nathan Shaw
Web Applications Developer
iaffect
http://www.iaffectonline.com
http://www.iaffectTV.com
----------------------------

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread