Subject: Re: entities
From: "Rick Geimer" <Rick.Geimer@xxxxxxx>
Date: Tue, 18 Apr 2000 10:53:29 -0700
|
Dave,
Since you are reading xslcharacters.xml using the document function, I
think you need to have eacute defined in xslcharacters.xml itself.
Basically, it is being parsed as a stand alone document, and will ignore
any entity definitions in your "doc" document.
Rick Geimer
National Semiconductor
rick.geimer@xxxxxxx
Dave Pawson wrote:
>
> setup is xt, using document() function.
> main xml file has
>
> <!DOCUMENT doc [
> <!ENTITY eacute "é"><!-- # LATIN SMALL LETTER E WITH ACUTE -->
> ]>
> <doc>
>
> <file>xslcharacters.xml</file>
> </doc>
>
> I access x.xml via
>
> <xsl:template match="doc">
> <html><head><body>
> <para>
>
> <xsl:for-each select="file">
> <xsl:value-of select="document(.)/webpage/head/title"/>
> </xsl:for-each>
> etc.
>
> xt is complaining because I haven't got eacute defined.
> file:/xslcharacters.xml:393: reference to undefined entity "eacute"
>
> I have tried including
> entity definition within the xsl file used,
>
> What am I doing wrong please?
>
> regards DaveP
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|