SlideShare uma empresa Scribd logo
1 de 2
Baixar para ler offline
Location Paths [XPath §2]                                             XPath Operators                                                                                                  XSLT Functions [§12, §15]
                                                                                                                                                                                       node-set document(object, node-set?)
Optional ‘/’, zero or more location steps, separated by ‘/’           Parentheses may be used for grouping.
                                                                                                                                                                                       node-set key(string, object)
Location Steps [XPath §2.1]                                           Node-sets [XPath §3.3]                                                                                           string format-number(number, string, string?)
Axis specifier, node test, zero or more predicates
                                                                                                                                                 XSLT and XPath
                                                                      |                  [expr]           /                //                                                          node-set current()
Axis Specifiers [XPath §2.2]                                                                                                                                                           string unparsed-entity-uri(string)
                                                                      Booleans [XPath §3.4]
                                                                                                                                                 Quick Reference                       string generate-id(node-set?)
ancestor::                    following-sibling::                     <=, <, >=, > =, !=                  and              or
                                                                                                                                                                                       object system-property(string)
ancestor-or-self::            namespace::
                                                                      Numbers [XPath §3.5]                                                                                             boolean element-available(string)
attribute::                   parent::
                                                                      -expr              *, div, mod      +, -                                                                         boolean function-available(string)
child::                       preceding::
descendant::                  preceding-sibling::
                                                                                                                                                                                       Node Types [XPath §5]
                                                                      XPath Core Function Library
descendant-or-self::          self::
                                                                                                                                                                                       Root                            Processing Instruction
following::
                                                                      Node Set Functions [XPath §4.1]                                                                                  Element                         Comment
Node Tests [XPath §2.3]                                                                                                                                                                Attribute                       Text
                                                                      number last()
                              node()
name                                                                                                                                                                                   Namespace
                                                                      number position()
                              text()
URI:name                                                              number count(node-set)
                                                                                                                                                                                       Object Types [§11.1, XPath §1]
                              comment()
prefix:name                                                           node-set id(object)
*                             processing-instruction()                                                                                                                                 boolean         True or false
                                                                      string local-name(node-set?)
                              processing-instruction(literal)
prefix:*                                                              string namespace-uri(node-set?)                                                                                  number          Floating-point number
                                                                      string name(node-set?)
Abbreviated Syntax for Location Paths                                                                                                                                                  string          UCS characters
                                                                      String Functions [XPath §4.2]                                                                                    node-set        Set of nodes selected by a path
                child::
(nothing)
                                                                      string string(object?)                                                                                           Result tree XSLT only. Fragment of the result tree
@               attribute::
                                                                      string concat(string, string, string*)                                                                           fragment
//              /descendant-or-self::node()/                          boolean starts-with(string, string)
                                                                                                                                                                                       Expression Context [§4, XPath §1]
.               self::node()                                          boolean contains(string, string)
                                                                      string substring-before(string, string)                                                                          Context node (a node)
..              parent::node()
                                                                      string substring-after(string, string)                                                                           Context position (a number)
/               Node tree root
                                                                      string substring(string, number, number?)                                                                        Context size (a number)
Predicate [XPath §2.4]                                                                                                                                                                 Variable bindings in scope
                                                                      number string-length(string?)
                                                                                                                                                                                       Namespace declarations in scope
                                                                      string normalize-space(string?)
[expr]
                                                                                                                                                                                       Function library
                                                                      string translate(string, string, string)
Variable Reference [XPath §3.7]                                                                                                                  Mulberry Technologies, Inc.
                                                                                                                                                                                       Built-in Template Rules [§5.8]
                                                                      Boolean Functions [XPath §4.3]
$qname                                                                                                                                           17 West Jefferson Street, Suite 207
                                                                      boolean boolean(object)                                                                                          <xsl:template match=quot;*|/quot;>
                                                                                                                                                 Rockville, MD 20850 USA
Literal Result Elements [§7.1.1]                                      boolean not(object)                                                                                                 <xsl:apply-templates/>
                                                                                                                                                 Phone: +1 301/315-9631
Any element not in the xsl: namespace and not an extension            boolean true()                                                                                                   </xsl:template>
                                                                                                                                                 Fax: +1 301/315-8285
element
                                                                      boolean false()                                                            info@mulberrytech.com                 <xsl:template match=quot;*|/quot; mode=quot;mquot;>
                                                                      boolean lang(string)                                                       http://www.mulberrytech.com              <xsl:apply-templates mode=quot;mquot;/>
XSLT                                                                                                                                                                                   </xsl:template>
                                                                      Number Functions [XPath §4.4]
http://www.w3.org/TR/xslt                                             number number(object?)                                                                                           <xsl:template match=quot;text()|@*quot;>
                                                                      number sum(node-set)                                                                                                <xsl:value-of select=quot;.quot;/>
XPath
                                                                      number floor(number)                                                                                             </xsl:template>
http://www.w3.org/TR/xpath
                                                                      number ceiling(number)                                                                                           <xsl:template
XSL-List                                                              number round(number)                                                                    Mulberry                    match=quot;processing-instruction()|comment()quot;/>
http://www.mulberrytech.com/xsl/xsl-list/
                                                                                                                                                           Technologies, Inc.          Built-in template rule for namespaces is to do nothing



        Mulberry                                                                 Mulberry                                                                                                      Mulberry
     Technologies, Inc.                                                       Technologies, Inc. © 2000 Mulberry Technologies, Inc. (20010522)                                              Technologies, Inc.
                                 © 2000 Mulberry Technologies, Inc.                                                                                                                                                    © 2000 Mulberry Technologies, Inc.
Creating Attributes [§7.1.3]                                    Sorting [§10]                                                  Key
XSLT Elements
                                                                   <xsl:attribute name=quot;{qname}quot;                                   <xsl:sort select=quot;string-exprquot; lang=quot;{nmtoken}quot;
Stylesheet Element [§2.2]                                                                                                                                                                       xsl:stylesheet Element
                                                                      namespace=quot;{uri-reference}quot;>...</xsl:attribute>                 data-type=quot;{text|number|qname-but-not-
  <xsl:stylesheet version=quot;1.0quot; id=quot;idquot;                                                                                                                                                                            Required attribute
                                                                                                                                                                                                version=
                                                                                                                                      ncname}quot; order=quot;{ascending|descending}quot;
                                                                 Named Attribute Sets [§7.1.4]
     extension-element-prefixes=quot;tokensquot;                                                                                                                                                                           Optional attribute
                                                                                                                                                                                                version=
                                                                                                                                      case-order=quot;{upper-first|lower-first}quot;/>
     exclude-result-prefixes=quot;tokensquot;                              <xsl:attribute-set name=quot;qnamequot;
                                                                                                                                                                                                                   Attribute value template. Text between
                                                                                                                                                                                                {expr}
                                                                                                                                 Variables and Parameters [§11]
                                                                      use-attribute-sets=quot;qnamesquot;>
     xmlns:xsl=quot;http://www.w3.org/1999/XSL/
                                                                                                                                                                                                                   any { and } is evaluated as an
                                                                      xsl:attribute* </xsl:attribute-set>
     Transformquot;> xsl:import*, top-level elements                                                                                   <xsl:variable name=quot;qnamequot; select=quot;exprquot;/>
                                                                                                                                                                                                                   expression. Attribute value must
  </xsl:stylesheet>                                                                                                                <xsl:variable name=quot;qnamequot;>...</xsl:variable>
                                                                 Creating Text [§7.2]                                                                                                                              evaluate to indicated attribute type.
  xsl:transform is a synonym for xsl:stylesheet                                                                                    <xsl:param name=quot;qnamequot; select=quot;exprquot;/>
                                                                   <xsl:text disable-output-escaping=quot;yes|noquot;>                                                                                                     Anything allowed in a template
                                                                                                                                                                                                …
                                                                                                                                   <xsl:param name=quot;qnamequot;>...</xsl:param>
                                                                      #PCDATA </xsl:text>
Combining Stylesheets [§2.6]                                                                                                                                                                                       Separates alternative values
                                                                                                                                                                                                |
                                                                                                                                 Using Values [§11.3]
  <xsl:include href=quot;uri-referencequot;/>                            Processing Instructions [§7.3]                                                                                                                    Zero or one occurrences
                                                                                                                                                                                                ?
                                                                                                                                   <xsl:copy-of select=quot;exprquot;/>
                                                                   <xsl:processing-instruction name=quot;{ncname}quot;>
  <xsl:import href=quot;uri-referencequot;/>                                                                                                                                                                               Zero or more occurrences
                                                                                                                                                                                                *
                                                                      ...</xsl:processing-instruction>                           Passing Parameters [§11.6]                                                        One or more occurrences
                                                                                                                                                                                                +
Whitespace Stripping [§3.4]
                                                                 Creating Comments [§7.4]                                          <xsl:with-param name=quot;exprquot; select=quot;exprquot;/>                                     Character data
                                                                                                                                                                                                #PCDATA
  <xsl:strip-space elements=quot;tokensquot;/>
                                                                                                                                   <xsl:with-param name=quot;exprquot;>...</xsl:with-param>
                                                                   <xsl:comment>...</xsl:comment>
  <xsl:preserve-space elements=quot;tokensquot;/>                                                                                                                                                       Attribute Value Types
                                                                                                                                 Keys [§12.2]
                                                                 Copying [§7.5]
Defining Template Rules [§5.3]                                                                                                                                                                                 Literal value
                                                                                                                                                                                                1.0
                                                                                                                                   <xsl:key name=quot;qnamequot; match=quot;patternquot;
                                                                   <xsl:copy use-attribute-sets=quot;qnamesquot;>
  <xsl:template match=quot;patternquot; name=quot;qnamequot;                                                                                                                                                    boolean-expr Expression returning boolean value
                                                                                                                                      use=quot;exprquot;/>
                                                                      ...</xsl:copy>
     priority=quot;numberquot; mode=quot;qnamequot;>
                                                                                                                                                                                                               Single character
                                                                                                                                                                                                char
                                                                                                                                 Number Formatting [§12.3]
                                                                 Generating Text [§7.6.1]
     xsl:param* followed by text, literal result elements
                                                                                                                                                                                                               Expression
                                                                                                                                                                                                expr
     and/or XSL elements </xsl:template>                                                                                           <xsl:decimal-format name=quot;qnamequot;
                                                                   <xsl:value-of select=quot;string-exprquot;
                                                                                                                                                                                                               XML name used as identifier
                                                                                                                                                                                                id
                                                                                                                                      decimal-separator=quot;charquot;
                                                                      disable-output-escaping=quot;yes|noquot;/>
Applying Template Rules [§5.4]
                                                                                                                                      grouping-separator=quot;charquot; infinity=quot;stringquot;                              XML name not containing a colon (:)
                                                                                                                                                                                                ncname
                                                                 Attribute Value Templates [§7.6.2]
  <xsl:apply-templates select=quot;node-set-expquot;
                                                                                                                                      minus-sign=quot;charquot; NaN=quot;stringquot;                            node-set-expr Expression returning a node set
     mode=quot;qnamequot;/>                                                <element attribute=quot;{expr}quot;/>                                      percent=quot;charquot; per-mille=quot;charquot;
                                                                                                                                                                                                               Expression returning a number
                                                                                                                                                                                                number-expr
  <xsl:apply-templates select=quot;node-set-expquot;
                                                                                                                                      zero-digit=quot;charquot; digit=quot;charquot;
                                                                 Numbering [§7.7]
     mode=quot;qnamequot;>                                                                                                                                                                                             XSLT pattern
                                                                                                                                                                                                pattern
                                                                                                                                      pattern-separator=quot;charquot;/>
                                                                   <xsl:number level=quot;single|multiple|anyquot;
     (xsl:sort | xsl:with-param)* </xsl:apply-templates>                                                                                                                                                       Namespace prefix
                                                                                                                                                                                                prefix
                                                                      count=quot;patternquot; from=quot;patternquot;                             Messages [§13]
Overriding Template Rules [§5.6]                                                                                                                                                                               Namespace-qualified XML name
                                                                                                                                                                                                qname
                                                                      value=quot;number-exprquot; format=quot;{string}quot;                        <xsl:message terminate=quot;yes|noquot;>
                                                                                                                                                                                                               comprising local part and optional
  <xsl:apply-imports/>                                                lang=quot;{nmtoken}quot;                                                ...</xsl:message>
                                                                                                                                                                                                               prefix
                                                                      letter-value=quot;{alphabetic|traditional}quot;
Named Templates [§6]                                                                                                             Fallback [§15]                                                 qname-but-not- Namespace-qualified name comprising
                                                                      grouping-separator=quot;{char}quot;
  <xsl:call-template name=quot;qnamequot;/>
                                                                                                                                   <xsl:fallback>...</xsl:fallback>                             ncname         local part and prefix
                                                                      grouping-size=quot;{number}quot;/>
  <xsl:call-template name=quot;qnamequot;>
                                                                                                                                                                                                               Meaning varies with context. See Rec.
                                                                                                                                                                                                token
                                                                                                                                 Output [§16]
     xsl:with-param* </xsl:call-template>                        Repetition [§8]
                                                                                                                                                                                                               Reference to Universal Resource
                                                                                                                                                                                                uri-reference
                                                                                                                                   <xsl:output
                                                                   <xsl:for-each select=quot;node-set-exprquot;>
Namespace Alias [§7.1.1]                                                                                                                                                                                       Identifier
                                                                                                                                      method=quot;xml|html|text|qname-but-not-ncnamequot;
                                                                      xsl:sort*, ...</xsl:for-each>
  <xsl:namespace-alias result-prefix=quot;prefix|#defaultquot;
                                                                                                                                      version=quot;nmtokenquot; encoding=quot;stringquot;
     stylesheet-prefix=quot;prefix|#defaultquot;/>                       Conditional Processing [§9]                                          omit-xml-declaration=quot;yes|noquot;
                                                                   <xsl:if test=quot;boolean-exprquot;>...</xsl:if>
Creating Elements [§7.1.2]                                                                                                            doctype-public=quot;stringquot; doctype-system=quot;stringquot;
                                                                                                                                      standalone=quot;yes|noquot; indent=quot;yes|noquot;
  <xsl:element name=quot;{qname}quot;                                      <xsl:choose>
                                                                                                                                      cdata-section-elements=quot;qnamesquot;
     namespace=quot;{uri-reference}quot;                                      <xsl:when test=quot;exprquot;>...</xsl:when>+
                                                                                                                                      media-type=quot;stringquot;/>
     use-attribute-sets=quot;qnamesquot;>...</xsl:element>                    <xsl:otherwise>...</xsl:otherwise>?
                                                                   </xsl:choose>




      Mulberry                                                         Mulberry                                                        Mulberry                                                          Mulberry
   Technologies, Inc.                                               Technologies, Inc.                                              Technologies, Inc.                                                Technologies, Inc.
                            © 2000 Mulberry Technologies, Inc.                              © 2000 Mulberry Technologies, Inc.                             © 2000 Mulberry Technologies, Inc.                                    © 2000 Mulberry Technologies, Inc.

Mais conteúdo relacionado

Mais procurados

Oop07 6
Oop07 6Oop07 6
Oop07 6
schwaa
 
Network vs. Code Metrics to Predict Defects: A Replication Study
Network vs. Code Metrics  to Predict Defects: A Replication StudyNetwork vs. Code Metrics  to Predict Defects: A Replication Study
Network vs. Code Metrics to Predict Defects: A Replication Study
Kim Herzig
 
Making Big Data Analytics Interactive and Real-­Time
 Making Big Data Analytics Interactive and Real-­Time Making Big Data Analytics Interactive and Real-­Time
Making Big Data Analytics Interactive and Real-­Time
Seven Nguyen
 
Declarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing ExperienceDeclarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing Experience
Alexander Gladysh
 
Core java concepts
Core    java  conceptsCore    java  concepts
Core java concepts
Chikugehlot
 
Lecture07 the linked-list_as_a_data_structure_v3
Lecture07 the linked-list_as_a_data_structure_v3Lecture07 the linked-list_as_a_data_structure_v3
Lecture07 the linked-list_as_a_data_structure_v3
Hariz Mustafa
 
Collections In Java
Collections In JavaCollections In Java
Collections In Java
Binoj T E
 
scalaliftoff2009.pdf
scalaliftoff2009.pdfscalaliftoff2009.pdf
scalaliftoff2009.pdf
Hiroshi Ono
 

Mais procurados (19)

Python 3.6 Features 20161207
Python 3.6 Features 20161207Python 3.6 Features 20161207
Python 3.6 Features 20161207
 
Oop07 6
Oop07 6Oop07 6
Oop07 6
 
Network vs. Code Metrics to Predict Defects: A Replication Study
Network vs. Code Metrics  to Predict Defects: A Replication StudyNetwork vs. Code Metrics  to Predict Defects: A Replication Study
Network vs. Code Metrics to Predict Defects: A Replication Study
 
Making Big Data Analytics Interactive and Real-­Time
 Making Big Data Analytics Interactive and Real-­Time Making Big Data Analytics Interactive and Real-­Time
Making Big Data Analytics Interactive and Real-­Time
 
Elementary Sort
Elementary SortElementary Sort
Elementary Sort
 
First fare 2010 java-introduction
First fare 2010 java-introductionFirst fare 2010 java-introduction
First fare 2010 java-introduction
 
Introduction to Objective - C
Introduction to Objective - CIntroduction to Objective - C
Introduction to Objective - C
 
Declarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing ExperienceDeclarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing Experience
 
Introduction to Haskell: 2011-04-13
Introduction to Haskell: 2011-04-13Introduction to Haskell: 2011-04-13
Introduction to Haskell: 2011-04-13
 
Lecture 04
Lecture 04Lecture 04
Lecture 04
 
Core java concepts
Core    java  conceptsCore    java  concepts
Core java concepts
 
Lecture07 the linked-list_as_a_data_structure_v3
Lecture07 the linked-list_as_a_data_structure_v3Lecture07 the linked-list_as_a_data_structure_v3
Lecture07 the linked-list_as_a_data_structure_v3
 
Pragmatic Real-World Scala (short version)
Pragmatic Real-World Scala (short version)Pragmatic Real-World Scala (short version)
Pragmatic Real-World Scala (short version)
 
Intro to Python (High School) Unit #2
Intro to Python (High School) Unit #2Intro to Python (High School) Unit #2
Intro to Python (High School) Unit #2
 
Advanced Javascript
Advanced JavascriptAdvanced Javascript
Advanced Javascript
 
Collections In Java
Collections In JavaCollections In Java
Collections In Java
 
scalaliftoff2009.pdf
scalaliftoff2009.pdfscalaliftoff2009.pdf
scalaliftoff2009.pdf
 
Using Fuzzy Code Search to Link Code Fragments in Discussions to Source Code
Using Fuzzy Code Search to Link Code Fragments in Discussions to Source CodeUsing Fuzzy Code Search to Link Code Fragments in Discussions to Source Code
Using Fuzzy Code Search to Link Code Fragments in Discussions to Source Code
 
Design of bare metal proxy compute node
Design of bare metal proxy compute nodeDesign of bare metal proxy compute node
Design of bare metal proxy compute node
 

Destaque

Web Page Authoring 1
Web Page Authoring 1Web Page Authoring 1
Web Page Authoring 1
yht4ever
 
Body Paintings
Body PaintingsBody Paintings
Body Paintings
web25111
 
ScholarsDay_Poster2015_Sumner-Atay
ScholarsDay_Poster2015_Sumner-AtayScholarsDay_Poster2015_Sumner-Atay
ScholarsDay_Poster2015_Sumner-Atay
Alex Sumner
 
SURE_2014 Poster 2.0
SURE_2014 Poster 2.0SURE_2014 Poster 2.0
SURE_2014 Poster 2.0
Alex Sumner
 
Applications of SOA and Web Services in Grid Computing
Applications of SOA and Web Services in Grid ComputingApplications of SOA and Web Services in Grid Computing
Applications of SOA and Web Services in Grid Computing
yht4ever
 

Destaque (20)

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Web Page Authoring 1
Web Page Authoring 1Web Page Authoring 1
Web Page Authoring 1
 
Rendering XML Documents
Rendering XML DocumentsRendering XML Documents
Rendering XML Documents
 
Body Paintings
Body PaintingsBody Paintings
Body Paintings
 
Rendering XML Document
Rendering XML DocumentRendering XML Document
Rendering XML Document
 
treeview
treeviewtreeview
treeview
 
ScholarsDay_Poster2015_Sumner-Atay
ScholarsDay_Poster2015_Sumner-AtayScholarsDay_Poster2015_Sumner-Atay
ScholarsDay_Poster2015_Sumner-Atay
 
SURE_2014 Poster 2.0
SURE_2014 Poster 2.0SURE_2014 Poster 2.0
SURE_2014 Poster 2.0
 
XML and XSLT
XML and XSLTXML and XSLT
XML and XSLT
 
WebSphere DataPower B2B Appliance overview
WebSphere DataPower B2B Appliance overviewWebSphere DataPower B2B Appliance overview
WebSphere DataPower B2B Appliance overview
 
Xslt tutorial
Xslt tutorialXslt tutorial
Xslt tutorial
 
Transforming xml with XSLT
Transforming  xml with XSLTTransforming  xml with XSLT
Transforming xml with XSLT
 
Applications of SOA and Web Services in Grid Computing
Applications of SOA and Web Services in Grid ComputingApplications of SOA and Web Services in Grid Computing
Applications of SOA and Web Services in Grid Computing
 
XSLT
XSLTXSLT
XSLT
 
4 Html
4 Html4 Html
4 Html
 
Learning XSLT
Learning XSLTLearning XSLT
Learning XSLT
 
Strings v.1.1
Strings v.1.1Strings v.1.1
Strings v.1.1
 
Xquery
XqueryXquery
Xquery
 
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xmlXml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
 
Tracking Message Flows in DataPower With CA APM
Tracking Message Flows in DataPower With CA APMTracking Message Flows in DataPower With CA APM
Tracking Message Flows in DataPower With CA APM
 

Semelhante a Xsl Tand X Path Quick Reference

Simplifying Database Development (OSCON 2009)
Simplifying Database Development (OSCON 2009)Simplifying Database Development (OSCON 2009)
Simplifying Database Development (OSCON 2009)
PostgreSQL Experts, Inc.
 
Meta-objective Lisp @名古屋 Reject 会議
Meta-objective Lisp @名古屋 Reject 会議Meta-objective Lisp @名古屋 Reject 会議
Meta-objective Lisp @名古屋 Reject 会議
dico_leque
 
Have Your Cake and Eat It Too: Meta-Programming Techniques for Java
Have Your Cake and Eat It Too: Meta-Programming Techniques for JavaHave Your Cake and Eat It Too: Meta-Programming Techniques for Java
Have Your Cake and Eat It Too: Meta-Programming Techniques for Java
Howard Lewis Ship
 
javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1
brecke
 
javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1
brecke
 

Semelhante a Xsl Tand X Path Quick Reference (20)

Xbase - Implementing Domain-Specific Languages for Java
Xbase - Implementing Domain-Specific Languages for JavaXbase - Implementing Domain-Specific Languages for Java
Xbase - Implementing Domain-Specific Languages for Java
 
Building a SQL Database that Works
Building a SQL Database that WorksBuilding a SQL Database that Works
Building a SQL Database that Works
 
Pune Clojure Course Outline
Pune Clojure Course OutlinePune Clojure Course Outline
Pune Clojure Course Outline
 
Simplifying Database Development (OSCON 2009)
Simplifying Database Development (OSCON 2009)Simplifying Database Development (OSCON 2009)
Simplifying Database Development (OSCON 2009)
 
RaleighFS v5
RaleighFS v5RaleighFS v5
RaleighFS v5
 
Meta-objective Lisp @名古屋 Reject 会議
Meta-objective Lisp @名古屋 Reject 会議Meta-objective Lisp @名古屋 Reject 会議
Meta-objective Lisp @名古屋 Reject 会議
 
Have Your Cake and Eat It Too: Meta-Programming Techniques for Java
Have Your Cake and Eat It Too: Meta-Programming Techniques for JavaHave Your Cake and Eat It Too: Meta-Programming Techniques for Java
Have Your Cake and Eat It Too: Meta-Programming Techniques for Java
 
HFile: A Block-Indexed File Format to Store Sorted Key-Value Pairs
HFile: A Block-Indexed File Format to Store Sorted Key-Value PairsHFile: A Block-Indexed File Format to Store Sorted Key-Value Pairs
HFile: A Block-Indexed File Format to Store Sorted Key-Value Pairs
 
Grammarware Memes
Grammarware MemesGrammarware Memes
Grammarware Memes
 
tutorial5
tutorial5tutorial5
tutorial5
 
tutorial5
tutorial5tutorial5
tutorial5
 
javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1
 
javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1javascript-cheat-sheet-v1_1
javascript-cheat-sheet-v1_1
 
Getting started with Clojure
Getting started with ClojureGetting started with Clojure
Getting started with Clojure
 
Plc (1)
Plc (1)Plc (1)
Plc (1)
 
Sedna XML Database System: Internal Representation
Sedna XML Database System: Internal RepresentationSedna XML Database System: Internal Representation
Sedna XML Database System: Internal Representation
 
wtf is in Java/JDK/wtf7?
wtf is in Java/JDK/wtf7?wtf is in Java/JDK/wtf7?
wtf is in Java/JDK/wtf7?
 
Introduction to Scala
Introduction to ScalaIntroduction to Scala
Introduction to Scala
 
Hfile格式详细介绍
Hfile格式详细介绍Hfile格式详细介绍
Hfile格式详细介绍
 
Clojure Intro
Clojure IntroClojure Intro
Clojure Intro
 

Mais de LiquidHub

Sharepoint 2013 upgrade process
Sharepoint 2013 upgrade processSharepoint 2013 upgrade process
Sharepoint 2013 upgrade process
LiquidHub
 
Share point 2013
Share point 2013Share point 2013
Share point 2013
LiquidHub
 
Share point 2010-uiimprovements
Share point 2010-uiimprovementsShare point 2010-uiimprovements
Share point 2010-uiimprovements
LiquidHub
 
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
LiquidHub
 
Managing metadata in_share_point_2010
Managing metadata in_share_point_2010Managing metadata in_share_point_2010
Managing metadata in_share_point_2010
LiquidHub
 
Fast search for share point
Fast search for share pointFast search for share point
Fast search for share point
LiquidHub
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server Deployment
LiquidHub
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install Databases
LiquidHub
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment Detail
LiquidHub
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup Strategies
LiquidHub
 
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
LiquidHub
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps
LiquidHub
 
Working With Infopath 2007
Working With Infopath 2007Working With Infopath 2007
Working With Infopath 2007
LiquidHub
 
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature WalkthroughWhats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
LiquidHub
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components Refresh
LiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
LiquidHub
 

Mais de LiquidHub (20)

Share point 2013 coding standards and best practices 1.0
Share point 2013 coding standards and best practices 1.0Share point 2013 coding standards and best practices 1.0
Share point 2013 coding standards and best practices 1.0
 
Sharepoint 2013 upgrade process
Sharepoint 2013 upgrade processSharepoint 2013 upgrade process
Sharepoint 2013 upgrade process
 
Share point 2013
Share point 2013Share point 2013
Share point 2013
 
Share point 2010-uiimprovements
Share point 2010-uiimprovementsShare point 2010-uiimprovements
Share point 2010-uiimprovements
 
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
 
Managing metadata in_share_point_2010
Managing metadata in_share_point_2010Managing metadata in_share_point_2010
Managing metadata in_share_point_2010
 
Fast search for share point
Fast search for share pointFast search for share point
Fast search for share point
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server Deployment
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install Databases
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment Detail
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup Strategies
 
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps
 
5060 A 01
5060 A 015060 A 01
5060 A 01
 
Working With Infopath 2007
Working With Infopath 2007Working With Infopath 2007
Working With Infopath 2007
 
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature WalkthroughWhats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components Refresh
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

Xsl Tand X Path Quick Reference

  • 1. Location Paths [XPath §2] XPath Operators XSLT Functions [§12, §15] node-set document(object, node-set?) Optional ‘/’, zero or more location steps, separated by ‘/’ Parentheses may be used for grouping. node-set key(string, object) Location Steps [XPath §2.1] Node-sets [XPath §3.3] string format-number(number, string, string?) Axis specifier, node test, zero or more predicates XSLT and XPath | [expr] / // node-set current() Axis Specifiers [XPath §2.2] string unparsed-entity-uri(string) Booleans [XPath §3.4] Quick Reference string generate-id(node-set?) ancestor:: following-sibling:: <=, <, >=, > =, != and or object system-property(string) ancestor-or-self:: namespace:: Numbers [XPath §3.5] boolean element-available(string) attribute:: parent:: -expr *, div, mod +, - boolean function-available(string) child:: preceding:: descendant:: preceding-sibling:: Node Types [XPath §5] XPath Core Function Library descendant-or-self:: self:: Root Processing Instruction following:: Node Set Functions [XPath §4.1] Element Comment Node Tests [XPath §2.3] Attribute Text number last() node() name Namespace number position() text() URI:name number count(node-set) Object Types [§11.1, XPath §1] comment() prefix:name node-set id(object) * processing-instruction() boolean True or false string local-name(node-set?) processing-instruction(literal) prefix:* string namespace-uri(node-set?) number Floating-point number string name(node-set?) Abbreviated Syntax for Location Paths string UCS characters String Functions [XPath §4.2] node-set Set of nodes selected by a path child:: (nothing) string string(object?) Result tree XSLT only. Fragment of the result tree @ attribute:: string concat(string, string, string*) fragment // /descendant-or-self::node()/ boolean starts-with(string, string) Expression Context [§4, XPath §1] . self::node() boolean contains(string, string) string substring-before(string, string) Context node (a node) .. parent::node() string substring-after(string, string) Context position (a number) / Node tree root string substring(string, number, number?) Context size (a number) Predicate [XPath §2.4] Variable bindings in scope number string-length(string?) Namespace declarations in scope string normalize-space(string?) [expr] Function library string translate(string, string, string) Variable Reference [XPath §3.7] Mulberry Technologies, Inc. Built-in Template Rules [§5.8] Boolean Functions [XPath §4.3] $qname 17 West Jefferson Street, Suite 207 boolean boolean(object) <xsl:template match=quot;*|/quot;> Rockville, MD 20850 USA Literal Result Elements [§7.1.1] boolean not(object) <xsl:apply-templates/> Phone: +1 301/315-9631 Any element not in the xsl: namespace and not an extension boolean true() </xsl:template> Fax: +1 301/315-8285 element boolean false() info@mulberrytech.com <xsl:template match=quot;*|/quot; mode=quot;mquot;> boolean lang(string) http://www.mulberrytech.com <xsl:apply-templates mode=quot;mquot;/> XSLT </xsl:template> Number Functions [XPath §4.4] http://www.w3.org/TR/xslt number number(object?) <xsl:template match=quot;text()|@*quot;> number sum(node-set) <xsl:value-of select=quot;.quot;/> XPath number floor(number) </xsl:template> http://www.w3.org/TR/xpath number ceiling(number) <xsl:template XSL-List number round(number) Mulberry match=quot;processing-instruction()|comment()quot;/> http://www.mulberrytech.com/xsl/xsl-list/ Technologies, Inc. Built-in template rule for namespaces is to do nothing Mulberry Mulberry Mulberry Technologies, Inc. Technologies, Inc. © 2000 Mulberry Technologies, Inc. (20010522) Technologies, Inc. © 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc.
  • 2. Creating Attributes [§7.1.3] Sorting [§10] Key XSLT Elements <xsl:attribute name=quot;{qname}quot; <xsl:sort select=quot;string-exprquot; lang=quot;{nmtoken}quot; Stylesheet Element [§2.2] xsl:stylesheet Element namespace=quot;{uri-reference}quot;>...</xsl:attribute> data-type=quot;{text|number|qname-but-not- <xsl:stylesheet version=quot;1.0quot; id=quot;idquot; Required attribute version= ncname}quot; order=quot;{ascending|descending}quot; Named Attribute Sets [§7.1.4] extension-element-prefixes=quot;tokensquot; Optional attribute version= case-order=quot;{upper-first|lower-first}quot;/> exclude-result-prefixes=quot;tokensquot; <xsl:attribute-set name=quot;qnamequot; Attribute value template. Text between {expr} Variables and Parameters [§11] use-attribute-sets=quot;qnamesquot;> xmlns:xsl=quot;http://www.w3.org/1999/XSL/ any { and } is evaluated as an xsl:attribute* </xsl:attribute-set> Transformquot;> xsl:import*, top-level elements <xsl:variable name=quot;qnamequot; select=quot;exprquot;/> expression. Attribute value must </xsl:stylesheet> <xsl:variable name=quot;qnamequot;>...</xsl:variable> Creating Text [§7.2] evaluate to indicated attribute type. xsl:transform is a synonym for xsl:stylesheet <xsl:param name=quot;qnamequot; select=quot;exprquot;/> <xsl:text disable-output-escaping=quot;yes|noquot;> Anything allowed in a template … <xsl:param name=quot;qnamequot;>...</xsl:param> #PCDATA </xsl:text> Combining Stylesheets [§2.6] Separates alternative values | Using Values [§11.3] <xsl:include href=quot;uri-referencequot;/> Processing Instructions [§7.3] Zero or one occurrences ? <xsl:copy-of select=quot;exprquot;/> <xsl:processing-instruction name=quot;{ncname}quot;> <xsl:import href=quot;uri-referencequot;/> Zero or more occurrences * ...</xsl:processing-instruction> Passing Parameters [§11.6] One or more occurrences + Whitespace Stripping [§3.4] Creating Comments [§7.4] <xsl:with-param name=quot;exprquot; select=quot;exprquot;/> Character data #PCDATA <xsl:strip-space elements=quot;tokensquot;/> <xsl:with-param name=quot;exprquot;>...</xsl:with-param> <xsl:comment>...</xsl:comment> <xsl:preserve-space elements=quot;tokensquot;/> Attribute Value Types Keys [§12.2] Copying [§7.5] Defining Template Rules [§5.3] Literal value 1.0 <xsl:key name=quot;qnamequot; match=quot;patternquot; <xsl:copy use-attribute-sets=quot;qnamesquot;> <xsl:template match=quot;patternquot; name=quot;qnamequot; boolean-expr Expression returning boolean value use=quot;exprquot;/> ...</xsl:copy> priority=quot;numberquot; mode=quot;qnamequot;> Single character char Number Formatting [§12.3] Generating Text [§7.6.1] xsl:param* followed by text, literal result elements Expression expr and/or XSL elements </xsl:template> <xsl:decimal-format name=quot;qnamequot; <xsl:value-of select=quot;string-exprquot; XML name used as identifier id decimal-separator=quot;charquot; disable-output-escaping=quot;yes|noquot;/> Applying Template Rules [§5.4] grouping-separator=quot;charquot; infinity=quot;stringquot; XML name not containing a colon (:) ncname Attribute Value Templates [§7.6.2] <xsl:apply-templates select=quot;node-set-expquot; minus-sign=quot;charquot; NaN=quot;stringquot; node-set-expr Expression returning a node set mode=quot;qnamequot;/> <element attribute=quot;{expr}quot;/> percent=quot;charquot; per-mille=quot;charquot; Expression returning a number number-expr <xsl:apply-templates select=quot;node-set-expquot; zero-digit=quot;charquot; digit=quot;charquot; Numbering [§7.7] mode=quot;qnamequot;> XSLT pattern pattern pattern-separator=quot;charquot;/> <xsl:number level=quot;single|multiple|anyquot; (xsl:sort | xsl:with-param)* </xsl:apply-templates> Namespace prefix prefix count=quot;patternquot; from=quot;patternquot; Messages [§13] Overriding Template Rules [§5.6] Namespace-qualified XML name qname value=quot;number-exprquot; format=quot;{string}quot; <xsl:message terminate=quot;yes|noquot;> comprising local part and optional <xsl:apply-imports/> lang=quot;{nmtoken}quot; ...</xsl:message> prefix letter-value=quot;{alphabetic|traditional}quot; Named Templates [§6] Fallback [§15] qname-but-not- Namespace-qualified name comprising grouping-separator=quot;{char}quot; <xsl:call-template name=quot;qnamequot;/> <xsl:fallback>...</xsl:fallback> ncname local part and prefix grouping-size=quot;{number}quot;/> <xsl:call-template name=quot;qnamequot;> Meaning varies with context. See Rec. token Output [§16] xsl:with-param* </xsl:call-template> Repetition [§8] Reference to Universal Resource uri-reference <xsl:output <xsl:for-each select=quot;node-set-exprquot;> Namespace Alias [§7.1.1] Identifier method=quot;xml|html|text|qname-but-not-ncnamequot; xsl:sort*, ...</xsl:for-each> <xsl:namespace-alias result-prefix=quot;prefix|#defaultquot; version=quot;nmtokenquot; encoding=quot;stringquot; stylesheet-prefix=quot;prefix|#defaultquot;/> Conditional Processing [§9] omit-xml-declaration=quot;yes|noquot; <xsl:if test=quot;boolean-exprquot;>...</xsl:if> Creating Elements [§7.1.2] doctype-public=quot;stringquot; doctype-system=quot;stringquot; standalone=quot;yes|noquot; indent=quot;yes|noquot; <xsl:element name=quot;{qname}quot; <xsl:choose> cdata-section-elements=quot;qnamesquot; namespace=quot;{uri-reference}quot; <xsl:when test=quot;exprquot;>...</xsl:when>+ media-type=quot;stringquot;/> use-attribute-sets=quot;qnamesquot;>...</xsl:element> <xsl:otherwise>...</xsl:otherwise>? </xsl:choose> Mulberry Mulberry Mulberry Mulberry Technologies, Inc. Technologies, Inc. Technologies, Inc. Technologies, Inc. © 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc.