
xslt
xinghua24
这个作者很懒,什么都没留下…
展开
-
XSLT(11) Named templates, matching templates or for-each
If the code depends on the context position (position()), put it in a .If the code depends on the context node (. or any location path), put it in a matching template.Otherwise, use a named templa原创 2012-07-15 05:55:25 · 239 阅读 · 0 评论 -
XSLT(18) xsl:include xsl:import
xsl:include are both top-level element that is used to import the contents of one style sheet into another.Syntax:An included style sheet has the same precedence as the including style原创 2012-07-23 09:45:03 · 1716 阅读 · 0 评论 -
XSLT(2) Essential elements in stylesheet and sample XSLT application
This is the XSLT stylesheet document element. This element usually defines a namespace xsl: defines the format of the output document.For HTML:For XML:An XSLT pro原创 2012-07-07 10:21:36 · 344 阅读 · 0 评论 -
XSLT(1) XSLT and XPath Reference
Saxon complete XPath and XSLT ReferenceElement ReferenceXPath and XSLT Function ReferenceXSLT Tutorialxmlplease XSLT by exampleMSDN:XML Standards ReferenceMSDN XSLT referen原创 2012-07-07 06:48:33 · 449 阅读 · 0 评论 -
XSLT(6) Function named templates and <xsl:call-template>
You can use template similar to using function in programming language. simply define a template with name attribute set. use to call the templateThe as attribute specifies the return of the functi原创 2012-07-08 00:56:52 · 394 阅读 · 0 评论 -
XSLT(12) Generating Output
ElementThe easiest and most common way to generate element is literal result element. An element that is declared directly in the xslt file without any prefix. But sometimes you want to put it in a原创 2012-07-16 05:22:48 · 307 阅读 · 0 评论 -
XSLT(17) Number
level = "single" | "multiple" | "any"count = Patternfrom = Patternvalue = number-expressionformat = { string }lang = { nmtoken }letter-value = { "alphabetic" | "traditional" }grouping-se原创 2012-07-18 06:05:36 · 338 阅读 · 0 评论 -
XSLT(16) generate-id()
return xs:stringReturns a generated unique identifier of the context nodegenerate-id guarantees the generated id is the same through out the style sheetThe disadvantage is that the id is not t原创 2012-07-17 11:17:39 · 680 阅读 · 0 评论 -
XSLT(4) control statement
The if statement is Necessary when you want to test if a sequence is empty or not.expression"> ...some output if the expression is true... expression"> ... some output ...原创 2012-07-07 12:34:28 · 277 阅读 · 0 评论 -
XSLT(15) key
name = QNamematch = Patternuse = ExpressionnameSpecifies the Qualified Names of the key.matchSpecifies the Patterns that identifies a node that holds this key.useSpecifies an E原创 2012-07-17 10:12:02 · 316 阅读 · 0 评论 -
XSLT(14) Grouping
Grouping Syntax<xsl:for-each-group select = expression group-by = "string expression" group-adjacent = "string expression" group-starting-with = pattern> The select attribute se原创 2012-07-17 01:13:58 · 358 阅读 · 0 评论 -
XSLT(13) sort
Sort Referenceused within an xsl:for-each or xsl:apply-templates orsaxon:group elementattributes:select: default to "."order: "ascending" or "descending", default "ascending"data-ty原创 2012-07-16 06:42:53 · 384 阅读 · 0 评论 -
XSLT(8) Dealing with namespace
When the XML document have a default namespace in it, The XSLT stylesheet may not be able to select the elements from the XML document.To deal with the namespace, There are twoways to match and sele原创 2012-07-14 03:51:21 · 399 阅读 · 0 评论 -
XSLT(3) content outputing elements
has a mandatory select attributereturns the string value of a specific node. if the value is a node set, then return the first node in the node set.The value is the text value of the node.原创 2012-07-07 12:21:39 · 326 阅读 · 0 评论 -
XSLT(10) Sequence
TypeSequences have types, types can have occurrence indicators + * ?example:xs:dateTime+element(Series)xs:anyAtomicType*Testing types:item() - test any itemvoid() - empty sequence原创 2012-07-14 09:09:12 · 657 阅读 · 0 评论 -
XSLT(7) Attribute Value Template
An attribute value template is an XPath expression enclosed in curly braces that's placed in the attribute value in the stylesheet. When the processor outputs that attribute, it replaces the attribute原创 2012-07-08 11:48:46 · 435 阅读 · 0 评论 -
XSLT(5) param and variable
param and variable are immutable. They can be global or localname="name" select="expression" as="dataType" > Then you can use $name to represent the selected expression. You hav原创 2012-07-07 23:36:37 · 1022 阅读 · 0 评论 -
XSLT(9) Tempalte priorities
The default priority of a templateTemplates whose match patterns match a particular kind of node, such as *, attribute(),or text(), are assigned a default priority of -0.5.Templates whose ma原创 2012-07-14 03:55:58 · 418 阅读 · 0 评论 -
XSLT(19) document() Function to access external xml
node-set document(object,node-set?)object Required. Defines an URI to an external XML documentnode-set Optional. Used to resolve relative URIExample:NOTE: WHEN use this funct原创 2012-08-18 09:58:05 · 1895 阅读 · 0 评论