I*E
3 楼
我想你对XPath 和 apply-template的理解有一点偏差
先看XSLT中的
这个Xpath 返回一个node-set,包含两个title的element nodes,对于这两个elemenet
node,都应用template (也就是下面的),注意这个 apply-templates select="book/title" />
是在和中间,也就是说先在html中写一个html start tag, 然后对两个
element node应用模版,然后才是html close tag.因此两次调用模版的结果都在
和中间
【在 i*****r 的大作中提到】
: 对source xml文档处理时,XSLT processor到底是采用什么访问顺序的?
: 举例子来说:
先看XSLT中的
这个Xpath 返回一个node-set,包含两个title的element nodes,对于这两个elemenet
node,都应用template (也就是下面的
是在和中间,也就是说先在html中写一个html start tag, 然后对两个
element node应用模版,然后才是html close tag.因此两次调用模版的结果都在
和中间
【在 i*****r 的大作中提到】
: 对source xml文档处理时,XSLT processor到底是采用什么访问顺序的?
: 举例子来说:
相关阅读
Scanner in XP哪位知道有没有linux下的XML parserDisplay XML with XSLT in IE 5.x?使用group出现问题about mapping relational database to XML?有哪种编程器可以根据DTD创建xml文件?IBM XML Certificationwhere to find some sample code of XML document creating and parsing with JAXP DOM?[转载] ASP+SQL SERVER怎样处理这种有很多分叉的情况voiceXMLXML parserquestion for xml/flash有谁知道怎么向POCKETPC20002 EMULATOR 加文件吗?急啊哪位DX能不能介绍一下Websphere下如何利用XML?tear web pages from the serverXML is so hot, why this board is so cold?去看世界杯闪客大赛[转载] 求助,急why i can't link to http://www.voicexml.org.cn/Any APIs for handling XML?