Subject: Re: Reading "entity references" from DTD, using XSLT (1.0 or 2.0)
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Tue, 14 Jun 2005 04:10:32 -0700 (PDT)
|
Thank you David for the answer .. I'll have more
questions :)
Regards,
Mukul
--- David Carlisle <davidc@xxxxxxxxx> wrote:
>
> 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
>
________________________________________________________________________
>
>
__________________________________
Discover Yahoo!
Stay in touch with email, IM, photo sharing and more. Check it out!
http://discover.yahoo.com/stayintouch.html
|