以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 XSL/XSLT/XSL-FO/CSS 』 (http://bbs.xml.org.cn/list.asp?boardid=8) ---- XSL学习笔记(二) (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=7640) |
-- 作者:宇宙人 -- 发布时间:5/18/2004 4:58:00 PM -- XSL学习笔记(二) XSL学习笔记(二) 第一部分学了7个元素,还有24个,一个一个学吧。 1、<xsl:import>、<xsl:include>、<xsl:apply-imports>元素 <xsl:import href="URI"/> 2、<xsl:attribute>、<xsl:attribute-set>元素 <xsl:attribute name="attributename" namespace="uri"><!-- Content:template --></xsl:attribute> namespace可选,use-attribute-sets可选,用以使用其它预定义的attribute-set. 3、<xsl:param>、<xsl:call-template>、<xsl:with-param>元素 <xsl:param name="name" select="expression"><!-- Content:template --></xsl:param> 其中的select都是可选的,前者的select用来指定默认值,后者可以来传值(也可用标签的内容传值)。 4、<xsl:variable>元素 <xsl:variable name="name" select="expression"><!-- Content:template --></xsl:variable> 5、<xsl:copy>、<xsl:copy-of>元素 <xsl:copy-of select="expression"/> 6、<xsl:comment>元素 <xsl:comment><!-- Content:template --></xsl:comment> 7、<xsl:decimal-format>元素 <xsl:decimal-format name="name" decimal-separator="char" grouping-separator="char" infinity="string" 8、<xsl:element>元素 <xsl:element name="name" namespace="URI" use-attribute-sets="namelist"><!-- Content:template --></xsl:element> 9、<xsl:fallback>元素 <xsl:fallback><!-- Content: template --></xsl:fallback> 10、<xsl:key>元素 <xsl:key name="name" match="pattern" use="expression"/> 11、<xsl:message>元素 <xsl:message terminate="yes|no"> <!-- Content:template --></xsl:message> 12、<xsl:namespace-alias>元素 <xsl:namespace-alias stylesheet-prefix="prefix|#default" result-prefix="prefix|"#default"/> 13、<xsl:number>元素 <xsl:number count="expression" level="single|multiple|any" from="expression" value="expression" format="formatstring" 14、<xsl:output>元素 <xsl:output method="xml|html|text|name" version="string" encoding="string" omit-xml-declaration="yes|no" 15、<xsl:preserve-space>、<xsl:strip-space>元素 <xsl:preserve-space elements="list-of-element-names"/> list-of-element-names的值中可用*通配符。 16、<xsl:processing-instruction>元素 <xsl:processing-instruction name="process-name"><!-- Content:template --></xsl:processing-instruction> 17、<xsl:text>元素 <xsl:text disable-output-escaping="yes|no"> <!-- Content:#PCDATA --></xsl:text> |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
62.500ms |