Как мы можем загрузить документ xml с помощью xquery для анализа процессором XQIB, встроенным в браузер IE. Обратите внимание, что документ ("doc.xml") не поддерживается для использования с процессором XQIB.
У меня нет опыта работы с XQIB, но я нашел это:
http://www.systems.ethz.ch/education/courses/hs09/xml-and-databases/project/xqib-doc.pdf Navigating other Web sources The doc function is not supported by XQIB. Instead, to query other sources from the Web, you should use the Zorba REST library (Zorba is the XQuery engine used by the plugin). This API is documented at http://www.zorba-xquery.com/doc/zorba-latest/zorba/html/rest.html For example: <html> <head> <script type="text/xquery"> declare namespace zorba-rest = "http://www.zorba-xquery.com/zorba/rest-functions"; declare sequential function local:main() { browser:alert( (zorba-rest:get( "http://www.inf.ethz.ch/rss/events.xml" )//*:item/*:title/data(.) )[1] ) }; </script> </head> <body> <h1>Hello world page.</h1> </body> </html> Note that since XHTML is the default namespace, you need to use the joker (*) symbol to access elements which are in no namespace (it actually selects all possible namespaces). Unfortunately, there is no other known workaround about this in XQuery.
Просто примечание: теперь реализована функция doc.
doc