样式表包含用来处理xml特性的代码,这些特性包括重复XML中的元素、元素值列表等等,显示的示例中并没有包括所有这些特性。
The style sheet includes code to handle features of the XML like repeating elements in the XML, lists of element values, and so forth, though the example shown doesn't include any of these.
因为输入的XML数据包含统一的元素列表,所以在样式表中可以根据地址对这些元素进行分类。
Since the incoming XML data just contains a flat list of elements, you'll group them by address in the stylesheet.
当然,没有子元素的列表是毫无用处的;可以将子元素添加到这一列表的最后面,如清单 7 所示。
Of course, a list is no use without any children; they are added as further elements to the same list (see Listing 7).
应用推荐