Creating External References in DTD

Q

When constructing an XML DTD, how do you create an external entity reference in an attribute value?

✍: FYICENTER.com

A

Every interview session should have at least one trick question. Although possible when using SGML, XML DTDs don't support defining external entity references in attribute values. It's more important for the candidate to respond to this question in a logical way than the candidate know the somewhat obscure answer.

2007-04-11, 4885👍, 0💬