求助:如何编写XSLT将XML文件内容渲染为指定样式?
求助:无法编写XSLT将XML渲染为目标展示样式
我已经被这个问题困扰好几天了,真心恳请各位能帮我一把!我始终写不出合适的XSLT文档,没法把手里的XML文件内容渲染成想要的样式——就是那种把元数据字段和对应内容清晰对应展示的布局(类似规范的元数据展示格式,标签和内容成对呈现)。
下面是我的XML代码:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="digitalLibrarySystem.css"?> <digitalLibrarySystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.pages.drexel.edu/~eom25/657/diglibschema/digitalLibrarySystem.xsd" xmlns:dc="http://purl.org/dc/elements/1.1/"> <systemMetadata> <title>Koha</title> <creator>by Katipo Communications</creator> <subject>library community, research, information services,public libraries, bibliographic management, distributed library systems, metadata, resource discovery, conferences,lectures, workshops</subject> <description>Koha was one of the the first open-source Integrated Library Systems It is used and maintained by the worldwide library community.</description> <date>2000</date> <type>ILS</type> <rights>Open-source</rights> <identifier>http://www.koha.org/</identifier> </systemMetadata> <aboutRecord> <recordCreator>Created by Matthew Weidemann</recordCreator> <creationDate>on 2018-05-03</creationDate> </aboutRecord> </digitalLibrarySystem>
我试着用表格来实现这个样式,但一直没成功。我问过教授是不是必须用表格来展示,但至今没收到回复,现在完全不知道该往哪个方向调整了。麻烦各位帮忙看看,谢谢大家!
内容的提问来源于stack exchange,提问作者Matthew Weidemann
相关产品推荐
相关产品推荐

