[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] value of NDATA Entities in attributes


Subject: Re: [xsl] value of NDATA Entities in attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 11 Aug 2003 21:21:58 +0100

> I think this is what the unparsed-entity-uri() function is for. I've
> been battling with something similar all day. 
> 
> Let me know if you get it to work, coz I certainly can't!

If your system has seen the dtd, so knows the entity then there is
nothing complicated about the function, just unparsed-entity-uri(@href)
will do what is needed, however that is an "If". If you use a
non-validating parser (and most XSLT systems do by default) then the
parser may optionally not read external parts of the dtd and so won't
see the entity declarations.

The only totally standard way to force the entity declaration to be seen
is to put it into the internal subset of the DTD in the main document file.
however many parsers may have specific switches to enable the reading of
external dtd files, if they do not do it by default.

David

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



Current Thread
Keywords