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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format