Re: [xsl] Reading "entity references" from DTD, using XSLT (1.0 or 2.0)

Subject: Re: [xsl] Reading "entity references" from DTD, using XSLT (1.0 or 2.0)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 14 Jun 2005 11:58:51 +0100
     If I have a entity definition &n; in DTD. Can I get
    the value of it in XSLT stylesheet ..?


As Mike said (and you must surely see when you run any example) you
_only_ have access to the value: All entity references are replaced by
the entities they reference by an XML parser before XSLT starts.
So if you define the entity n to be abc
<x>&n;</x> appears to xslt as <x>abc</x>.

If the entity is defined but not used then you have no access to it from XSLT.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread