Ray's playground

 

随笔分类 -  XML/XSLT

Creating Links and Cross-References(Chapter 6 of XSLT 2nd Edition)
摘要:The key() function returns a node-set from the document, using the index specified by an <xsl:key> element.cdcatalog.xmlCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<?xmlversion="1.0"encoding="ISO-8859-1"?>2<!--EditedbyXMLSpy® 阅读全文

posted @ 2011-02-15 18:37 Ray Z 阅读(198) 评论(0) 推荐(0)

Branching and Control Elements(Chapter 5 of XSLT 2nd Edition)
摘要:To invoke a template by name, two things have to happen: &#8226; The template you want to invoke has to have a name. &#8226; You use the &lt;xsl:call-template&gt; element to invoke the named template. The XSLT &lt;xsl:template&gt; element has a mode attribute that lets you pr 阅读全文

posted @ 2011-02-10 20:47 Ray Z 阅读(182) 评论(0) 推荐(0)

Creating Output(Chapter 4 of XSLT 2nd Edition)
摘要:In XSLT 2.0, xsl:value-of has a separator attribute. If the select attribute is a sequenceof items, those items are output in sequence, with the value of the separatorattribute between them.  There are some changes to the xsl:number element in XSLT 2.0. First of all, three newformats have been a 阅读全文

posted @ 2011-01-21 10:55 Ray Z 阅读(168) 评论(0) 推荐(0)

XPath: A Syntax for Describing Needles and Haystacks(Chapter 3 of XSLT 2nd Edition)
摘要:There are seven kinds of nodes in XPath:  • The document node (one per document)  • Element nodes  • Attribute nodes  • Text nodes  • Comment nodes  • Processing instruction nodes  • Namespace nodes 阅读全文

posted @ 2011-01-18 21:03 Ray Z 阅读(150) 评论(0) 推荐(0)

The Obligatory Hello World Example(Chapter 2 of XSLT 2nd Edition)
摘要:[代码][代码]java -cp saxon9he.jar net.sf.saxon.Transform -t -greeting.xml -xsl:greeting.xsl -o:output.html[代码] 阅读全文

posted @ 2011-01-13 20:13 Ray Z 阅读(188) 评论(0) 推荐(0)

导航