|
This might be a better question for a general XML
forum, not Xerces, but I believe the answer is: yes and no. Yes, you need
a DTD to declare the entity, and no, it does not need to be a full
DTD.
Another approach is to use XSLT. This is my
preferred approach, since I prefer XML schema to DTDs. Then rather
than
&myentity;
you write
<myentity/>
and create a rule in the XSLT to convert that to
whatever you like. It's actually a lot more powerful since you can pass
parameters, get context information, etc.
--Scott
|
- entity declaration Ramin Raybod
- Scott Vachalek
