4/16/2007Declare a DTD File II1 Declare A DTD File - II.
-
date post
21-Dec-2015 -
Category
Documents
-
view
229 -
download
0
Transcript of 4/16/2007Declare a DTD File II1 Declare A DTD File - II.
4/16/2007 Declare a DTD File II 2
Define Reusable Text inside XML Files
• General entity– Can be referred to repeatedly inside an XML
document
– These two pages cover internal general entities
4/16/2007 Declare a DTD File II 5
Use Non-XML Data in XML Applications
• External data type– Any non-XML data type• Pictures, word-processing format files
• External general entity– A DTD construct used to resolve external data
types
4/16/2007 Declare a DTD File II 10
Use Non-XML Data in XML Applications
• No standard approach to specifying non-XML data using notations exists currently– Some like MIME– Some suggest URLs that point to standard
documents• Resources maintained by W3C
• Programmers are free to choose the approach that works best for their specific applications
4/16/2007 Declare a DTD File II 11
Embed Other Data in XML Applications
• Declare an external general entity to include an external data source (JPG, PDF) in XML-based application
• First declare a notation attribute. Then, declare external general entity