Listing 7 is a sample implementation that always returns the same value for NHLCopyright — the entity reference in both XML document samples.
清单7是一个总是为NHLCopyright——在两个XML文档样本中的实体引用返回相同值的样本实现。
In other words, you want to ensure that an entity reference is resolved to a value you determine, rather than what is in the DTD.
换句话说,要确保实体引用解析为您决定的值,而不是DTD中的值。
应用推荐