📄 index.html
字号:
<P>Summary 64</P><P><B>Part II XML in Detail 65</B></P><P> 5 The XML Approach 67</P><P>XML's Main Objectives 68</P><BLOCKQUOTE><P>Generic SGML 68</P><P>Interoperability with SGML 69</P><P>Interoperability with HTML 70</P></BLOCKQUOTE><P>Design Goals 70</P><BLOCKQUOTE><P>1: XML Shall Be Straightforwardly Usable <BR>Over the Internet 70</P><P>2: XML Shall Support a Wide Variety of Applications 71</P><P>3: XML Shall Be Compatible with SGML 71</P><P>4: It Shall Be Easy to Write Programs that ProcessXML Documents 72</P><P>5: The Number of Optional Features in XML <BR>Is to Be Kept to the Absolute Minimum, <BR>Ideally Zero 72</P><P>6: XML Documents Should Be Human-Legible and <BR>Reasonably Clear 73</P><P>7: The XML Design Should Be Prepared Quickly 73</P><P>8: The Design of XML Shall Be Formal and Concise 74</P><P>9: XML Documents Shall Be Easy to Create 74</P><P>10: Terseness in XML Markup Is of Minimal Importance 74</P></BLOCKQUOTE><P>Representation of Characters in XML 75</P><P>Primitive Constructs 76</P><P>Character Data and Markup 77</P><P>CDATA Sections 78</P><P>White Space Handling 79</P><P>Comments 81</P><P>Processing Instructions 81</P><P>Logical and Physical Structure 82</P><P>Summary 83</P><A NAME="PAGENUM-12"><P>Page 12</P></A><P> 6 Logical Structures in XML Documents 85</P><P>XML Documents 85</P><BLOCKQUOTE><P>XML Declaration 86</P><P>Document Type Declaration 87</P><P>The Document Element 88</P></BLOCKQUOTE><P>Well-Formed and Valid Documents 88</P><BLOCKQUOTE><P>Well-Formed Documents 88</P><P>Valid Documents 89</P></BLOCKQUOTE><P>Elements 90</P><BLOCKQUOTE><P>Elements in HTML 90</P><P>XML Elements: The Suitcase Model 91</P></BLOCKQUOTE><P>Attributes: The Luggage Label 93</P><BLOCKQUOTE><P>Attribute Specifications 93</P><P>Attribute-List Declarations 94</P><P>Attribute Types 95</P><P>Mandatory Attributes 96</P><P>Default and Fixed Values 96</P></BLOCKQUOTE><P>Content: What's In the Suitcase 97</P><BLOCKQUOTE><P>Data Content 97</P><P>Element Content 97</P><P>Mixed Content 97</P><P>Content Models 98</P><P>Mixed-Content Declarations 99</P></BLOCKQUOTE><P>Cross-References and Links 100</P><BLOCKQUOTE><P>Internal Cross-References 100</P><P>External Linking 101</P></BLOCKQUOTE><P>Groves 102</P><BLOCKQUOTE><P>Classes and Properties 103</P><P>Nodes and Nodelists 104</P><P>Grove Plans 105</P></BLOCKQUOTE><P>Summary 106</P><P> 7 Physical Structures in XML Documents 109</P><P>Internal and External Entities 110</P><P>Text and Binary Entities 110</P><P>Entity References 111</P><P>Parameter Entity References 112</P><P>Uses for Entities 113</P><BLOCKQUOTE><P>Non-Standard Characters 113</P><P>Frequently Used Phrases 114</P></BLOCKQUOTE><A NAME="PAGENUM-13"><P>Page 13</P></A><BLOCKQUOTE><P>Chunks of Markup 114</P><P>Sections of Documents 115</P><P>Organizing Your DTD 115</P><P>Non-XML Resources 116</P></BLOCKQUOTE><P>Storage Strategies for XML Entities 116</P><P>Synchronicity of Logical and Physical Structures 117</P><BLOCKQUOTE><P>What's Allowed in a Logical Structure? 117</P><P>What's Allowed in a Physical Structure? 118</P></BLOCKQUOTE><P>Predefined Entities 118</P><P>Character References 118</P><P>Character Encoding in XML Text Entities 119</P><P>Summary 121</P><P> 8 Keeping It Tidy: The XML Rule Book 123</P><P>The XML Prolog 123</P><BLOCKQUOTE><P>The XML Declaration 124</P><P>The Document Type Declaration 124</P><P>Comments 124</P><P>Processing Instructions 125</P><P>White Space 125</P></BLOCKQUOTE><P>The Document Type Declaration 126</P><P>Element Declarations 127</P><BLOCKQUOTE><P>EMPTY and ANY 129</P><P>Element Content 129</P><P>Mixed Content 131</P></BLOCKQUOTE><P>Attribute List Declarations 132</P><BLOCKQUOTE><P>Types of Attributes 132</P><P>Default Actions 134</P></BLOCKQUOTE><P>Entity Declarations 135</P><BLOCKQUOTE><P>Internal and External Entities 135</P><P>Text and Binary Entities 136</P><P>Parameter Entities 136</P></BLOCKQUOTE><P>Notation Declarations 137</P><P>DTD Design Tips 137</P><BLOCKQUOTE><P>External Versus Internal DTD Subset 138</P><P>Conditional Sections 139</P><P>Parameter Entities 140</P><P>The Modular Approach 141</P><P>User Switches 142</P></BLOCKQUOTE><P>The Required Markup Declaration 144</P><P>Summary 145</P><A NAME="PAGENUM-14"><P>Page 14</P></A><P> 9 Linking with XML 147</P><P>Putting XML Links into Context 148</P><BLOCKQUOTE><P>HTML Links 148</P><P>Interoperability with HTML Links 150</P><P>Additional Linking Facilities 151</P></BLOCKQUOTE><P>Some Linking Concepts 152</P><BLOCKQUOTE><P>A Concrete Example 152</P></BLOCKQUOTE><P>Identifying XML Links 154</P><BLOCKQUOTE><P>Fixed XML-LINK Attributes 155</P><P>Declaring Your Own XML-LINK Attributes 155</P></BLOCKQUOTE><P>Information Associated with XML Links 156</P><BLOCKQUOTE><P>Resources 157</P><P>Link Behavior 157</P><P>Link Roles 159</P><P>Labels for Links 160</P></BLOCKQUOTE><P>Simple Links 161</P><BLOCKQUOTE><P>Simple Links and Resources 162</P><P>Simple Links and Link Rot 164</P></BLOCKQUOTE><P>Extended Links 164</P><BLOCKQUOTE><P>Out-of-Line Links 164</P><P>EXTENDED Elements 166</P><P>LOCATOR Elements 167</P><P>Inline Extended Links 168</P></BLOCKQUOTE><P>Addressing 169</P><BLOCKQUOTE><P>Locator Syntax for XML Resources 169</P><P>XPointers Made Easy 170</P><P>The Rest of the XPointer Syntax 172</P></BLOCKQUOTE><P>Extended Link Groups 177</P><P>Summary 178</P><P> 10 The XML Style Mechanism 179</P><P>Style Sheets: Why Bother? 180</P><BLOCKQUOTE><P>Separating Style From Markup 180</P><P>Multiple Styles = Multiple Products 181</P><P>XS and Generic XML Applications 182</P></BLOCKQUOTE><P>How Do XS Style Sheets Work? 182</P><BLOCKQUOTE><P>The Core Expression Language 183</P><P>What's in the Style Sheet? 183</P></BLOCKQUOTE><A NAME="PAGENUM-15"><P>Page 15</P></A><BLOCKQUOTE><P>Procedures 184</P><P>Flow Object Classes 185</P><P>Characteristics 186</P><P>Inheritance of Characteristics 187</P><P>Characteristics of Your Sample Paragraph 187</P><P>Element Construction Rules 189</P></BLOCKQUOTE><P>Starting Up the Style Engine 189</P><BLOCKQUOTE><P>Processing the Source Document as a Grove 189</P><P>Choosing the Most Appropriate <BR>Construction Rule 190</P><P>Formatting the Sample Paragraph's Content 191</P><P>Ports 192</P><P>A Generalized Result 192</P><P>A Real Result! 193</P></BLOCKQUOTE><P>Some Refinements 194</P><BLOCKQUOTE><P>Different Types of Construction Rules 194</P><P>Using Attribute Specifications to <BR>Control Formatting 195</P><P>The Core Query Language 197</P></BLOCKQUOTE><P>Summary 198</P><P> 11 The XML Processor 201</P><P>Types of XML Processors 202</P><P>General Ground Rules 202</P><BLOCKQUOTE><P>Treatment of Errors 202</P><P>Character Processing 203</P></BLOCKQUOTE><P>Treatment of Logical Markup 204</P><BLOCKQUOTE><P>The DTD 205</P><P>Comments 205</P><P>Attributes 205</P><P>Notations 206</P><P>Conditional Sections 207</P></BLOCKQUOTE><P>Treatment of Physical Structures 207</P><BLOCKQUOTE><P>Document Entity 207</P><P>Entities 207</P></BLOCKQUOTE><P>Summary 209</P><A NAME="PAGENUM-16"><P>Page 16</P></A><P><B>Part III Using XML 211</B></P><P> 12 Morphing Existing HTML into XML 213</P><P>Toward Well-Formedness: From Tag Soup to <BR>Neatly Packed Suitcases 215</P><BLOCKQUOTE><P>Non-Nested Tags 215</P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -