나는 eXist-db (1.4.2) 내에 xml 파일 모음을 가지고있다.XQuery의 출력 스타일 지정
그들은 모두이 유사하게 구성되어 있습니다 :
<magazine>
<issue.number>22</issue.number>
<article>
<title>first article</title>
<subject>James</subject>
</article>
<article>
<title>second article</title>
<subject>Billy</subject>
</article>
</magazine>
나는 REST API를 통해 모든 파일을 조회 할 : http://localhost:8080/exist/rest/db/folder/test.xq
결과는 다음과 같습니다
<entries>
<entry>
<name>James</name>
</entry>
<entry>
<name>Billy</name>
</entry>
<entries>
내가되고 싶어 xquery 출력의 스타일을 지정할 수 있습니다. 내 .xq 시작 부분에 스타일 시트를 참조하여 attempeted했습니다. 이제 test.xq는 <xml> <?xml-stylesheet type="application/xml" href="test.xsl"?>
으로 시작합니다.
무엇이든지 변경됩니다. 스타일이 전혀없는 문자열을 얻을 수는 없습니다.
어디로 잘못 가고 있습니까?
나쁘게 작성된 스타일 시트가 있습니까? 또는 .xq 내에서 .xsl을 사용할 수 있다고 생각하는 것이 잘못 되었습니까?