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到底是采用什么访问顺序的?
: 举例子来说:
相关阅读
MathML softwaresCan I use Chinese element names?How do I know what character sets the XML softwar在Excel中如何使用XML?如何做留言簿?Excelergy发布能源分化工业XML标准资源库。XML Global 建立了一个开发XSLT网络通信标准的联合论Perl+XML+GBWhat is Big5/GCCS, EUDC, and Big5plus? tool for xmlCan I use GB2312?Why does software xxx work with Big5: it not work软开发出互联网数据交换协议:SOAP1.0Some Big5 documents fail with strange errors?e-content推出第一个可升级XML动态网络服务器。html里怎样做出上标?example neededhow to deal with crash for CGI/PERLhelp!XMLSolutions Participates in the ebXML Global