xsl-list
[Top] [All Lists]

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

2005-06-14 03:58:51

     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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--