• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Conditional Markup

When you learned about the DTD design step of constraining the model, one recommendation was that you could consider making two versions of the same DTD. You could use a loose DTD during authoring when, for example, not all the content may have been filled in, but you still want to validate the document, and you could use another, tighter DTD for the finished XML document. A way to do this uses conditional sections of the DTD and parameter entities.

This involves blocking the two variant declarations of the DTD inside blocks and starting the block with a reference to a parameter entity:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint