XSL 問題請教, 謝謝!

來源: 2004-04-12 05:27:15 [舊帖] [給我悄悄話] 本文已被閱讀:

我有個 XML 文件, 內容包括像:

http://www.w3schools.com/xsl/cdcatalog.xml

但如果這 XML 文件沒有 Record, 像,






我想寫 "No record found". 有用 XSL 寫的辦法麽?

我可以用 Jsp or java 寫出 "No record found" faking xml data, 但是請問有沒有直接用 xsl 寫出 “No record found” 的? 我查了, xsl:when, xsl:otherwise 和我的情況不符合。

謝謝