XPath
Darrera modificació 2011-04-25
XPath és un llenguatge de selecció de fragments XML. En XSLT permet tant definir el context d'aplicació d'una plantilla com seleccionar el contingut d'un fragment XML com verificar la certesa d'una expressió.
Actualment existeixen dues versions:
- XML Path Language (XPath) W3C Recommendation 16 November 1999
- XML Path Language (XPath) 2.0 W3C Recommendation 23 January 2007
-
Funcions XPath
- fn:last()
- fn:seconds-from-dateTime(input?)
- fn:base-uri(input?)
- fn:normalize-unicode(input)
- fn:floor(input)
- fn:min(input*, collation?)
- fn:string-join((input*), separator)
- fn:contains(input?, pattern?, collation?)
- fn:nilled(input)
- fn:namespace-uri-from-QName(input?)
- fn:one-or-more(input+)
- fn:distinct-values(input*, collation?)
- fn:trace(item*, label)
- fn:error(input, description?)
- fn:root(input?)
- fn:string-to-codepoints(input)
- fn:adjust-date-to-timezone(input?, timezone?)
- fn:years-from-duration(input?)
- fn:subsequence(input*, position, length?)
- fn:zero-or-one(input?)
- fn:default-collation()
- fn:current-date()
- fn:doc-available(input?)
- fn:implicit-timezone()
- fn:name(input?)
- fn:timezone-from-time(input?)
- fn:escape-html-uri(input)
- fn:index-of(input*, term, collation?)
- fn:day-from-dateTime(input?)
- fn:exactly-one(input)
- fn:month-from-dateTime(input?)
- fn:abs(input)
- fn:hours-from-time(input?)
- fn:substring(input, start, length?)
- fn:codepoint-equal(input, input)
- fn:hours-from-duration(input?)
- fn:count(input*)
- fn:matches(input?, pattern, flags*)
- fn:node-name(input?)
- fn:starts-with(input?, pattern?, collation?)
- fn:substring-after(input?, pattern?, collation?)
- fn:local-name(input?)
- fn:substring-before(input?, pattern?, collation?)
- fn:idref(input*, context?)
- fn:string(input?)
- fn:minutes-from-time(input?)
- fn:day-from-date(input?)
- fn:static-base-uri()
- fn:concat(input, input+)
- fn:encode-for-uri(input)
- fn:id(input*, context?)
- fn:ends-with(input?, pattern?, collation?)
- fn:seconds-from-duration(input?)
- fn:deep-equal(input*, input*, collation?)
- fn:QName(nsURI?, input)
- fn:sum(input*, zero?)
- fn:months-from-duration(input?)
- fn:minutes-from-dateTime(input?)
- fn:month-from-date(input?)
- fn:data(input*)
- fn:year-from-dateTime(input?)
- fn:timezone-from-date(input?)
- fn:upper-case(input)
- fn:max(input*, collation?)
- fn:days-from-duration(input?)
- fn:translate(input?, map, translation-map)
- fn:local-name-from-QName(input?)
- fn:replace(input?, pattern, replace, flags*)
- fn:lower-case(input)
- fn:false()
- fn:namespace-uri(input?)
- fn:number(input?)
- fn:round(input)
- fn:hours-from-dateTime(input?)
- fn:prefix-from-QName(input?)
- fn:seconds-from-time(input?)
- fn:dateTime(date?, time?)
- fn:iri-to-uri(input)
- fn:ceiling(input)
- fn:unordered(input*)
- fn:codepoints-to-string(input*)
- fn:resolve-uri(input?, base?)
- fn:exists(input*)
- fn:in-scope-prefixes(input)
- fn:adjust-time-to-timezone(input?, timezone?)
- fn:boolean(input*)
- fn:document-uri(input?)
- fn:year-from-date(input?)
- fn:current-time()
- fn:compare(input, input, collation?)
- fn:current-dateTime()
- fn:round-half-to-even(input, precision?)
- fn:not(input*)
- fn:reverse(input*)
- fn:resolve-QName(input?, scope)
- fn:namespace-uri-for-prefix(input?, scope)
- fn:empty(input*)
- fn:lang(input?, scope?)
- fn:position()
- fn:avg(input*)
- fn:remove(input*, position)
- fn:minutes-from-duration(input?)
- fn:insert-before(input*, position, item*)
- fn:string-length(input?)
- fn:collection(input?)
- fn:adjust-dateTime-to-timezone(input?, timezone?)
- fn:tokenize(input?, pattern, flags*)
- fn:doc(input?)
- fn:normalize-space(input?)
- fn:true()
- fn:timezone-from-dateTime(input?)
- Eixos XPath
XSLT Esbudellat