opensubscriber
   Find in this group all groups
 
Unknown more information…

j : j-users@xerces.apache.org 18 June 2009 • 9:11PM -0400

resolving entity references
by Steve Ebersole

REPLY TO AUTHOR
 
REPLY TO GROUP




Does xerces provide a *pluggable* mechanism to tell the parser the
replacement text to use when it encounters an entity reference?

The specific use case is attempting to control values used in docbook
sources.  So say you have:
<book>
  <bookinfo>
    ...
    <releaseinfo>&version;</releaseinfo>
    <pubdate>&today;</pubdate>
  </bookinfo>
</book>

I would like to "inject" the replacement values for the '&version;' and
'&today;' entity references.  Currently I do this by injecting doctype
"internal subset" <!ENTITY ...> defs in the stream used by the parser.
What I'd much rather be able to do is to register something akin to an
EntityResolver that resolves the replacement text.

--
Steve Ebersole <steve@hibe...>
Hibernate.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerc...
For additional commands, e-mail: j-users-help@xerc...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.