プログラム BaseX では、XPath と XQuery を使用してホーム ディレクトリにある XML ドキュメントをクエリできましたが、XSLT で同じことを行うには問題があります。
クエリしているドキュメントはBookstoreQ.xmlです。
完全に正常に動作する XPath バージョン:
doc("/home/ioannis/Desktop/BookstoreQ.xml")/Bookstore/Book/Title
実行したい XSLT コード:
<xsl:stylesheet version = "2.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xsl:output method= "xml" indent = "yes" omit-xml-declaration = "yes" />
<xsl:template match = "Book"></xsl:template>
</xsl:stylesheet>
XSLT に関する BaseX のドキュメントを読みましたが、解決策を見つけることができませんでした。特定の XSLT を実行するにはどうすればよいですか?