摘要
跨库检索系统的SRU接口返回的检索结果是XML文件流。IE浏览器可以解析该文件流,根据XSLT文件,自动转换为XHTML文件流,显示检索结果。但是,Firefox,Google Chrome浏览器却无法解析这个XML文件流,它们显示的是非标准格式的文本文字,用户无法查看检索结果。为了使这些浏览器能正常显示检索结果,采用dom4j的应用开发接口,应用XSLT文件,把XML文件流转换为XHTML文件流,从而使检索结果能在Firefox,Google Chrome浏览器上正常显示。
The returning search results displayed by SRU interface of cross-database search system are the XML document stream.IE browser can resolve the file stream,according to XSLT document,the XML document stream will automatically translated into XHTML document stream,can show search results.However,Firefox,Google Chrome browser was unable to resolve this XML document stream,which shows the non-standard text format text,users can not view the search results.In order to make these browsers display search results, by using dom4j API, according to XSLT documents, translated XML document stream into a XHTML document stream, so search results can normally display in Firefox, Google Chrome browser.
出处
《计算机技术与发展》
2010年第1期43-45,49,共4页
Computer Technology and Development