说明: xml源码,很简单,但是很实用。 在XSL这个壳中,我们要从原料库??XML里提取相关的数据,就要用到XSL提供的模式化查询语言。所谓模式化查询语言,就是通过相关的模式匹配规则表达式从XML里提取数据的特定语句,即我们上所说的“筛子“。 参考微软的”XSL开发者指南”,我们大致可将模式语言分为三种: 选择模式 < xsl:for-each >、< xsl:value-of >,和 < xsl:apply-templates > 测试模式 < xsl:if > 和< xsl:when > 匹配模式 < xsl:template >
(xml source, which is very simple, but practical. XSL in the shell, we need to raw materials base? ? XML to extract relevant data, it is necessary to use XSL delivery of query language. The so-called pattern query language is, through the expression pattern matching rules from the XML data to extract the specific statement that we mentioned in the "sieve." Microsoft's reference to "XSL Development Guide", we will model can be broadly divided into three languages : Select mode lt; Xsl : for-each gt; , Lt; Xsl : value-of gt; And lt; Xsl : apply- templates gt; Test mode lt; xsl : if gt; and lt; xsl : when gt; lt pattern matching; xsl : template gt;)