|
|||||||||||||||||||||||||||||||||||
|
Velkommen IntroGrundlæggende XML Hvad er XMLVel formet XML Attributter Kommentarer CData XML og CSS Introduktion til CSSPræsentation af XML med CSS XML og XSL(T) Introduktion til XLSTDet grundlæggende XML til HTML transformation XML til XML transformation XPath introduktion Document Type Definition Introduktion til DTDSchemas Introduktion til schemasDocument Object Model Intro til DOMSimple API for XML Intro til SAXXML Databaser DatabaserNamespaces IntroduktionVærktøjer og ressourcer En lille oversigtQuiz XML QuizFiler Lidt forskellige |
XML Introduktion / XML og XSL(T) / XPath introduktion
XPathXPath bruges til at angive en position i et XML dokument (lidt som vi kan angive en mappe eller en fil på vores harddisk). XPath er meget central i arbejdet med XSL, men nok lidt for omfattende til at vi kan give det en nærmere behandling i denne sammenhæng. Jeg vil derfor tillade mig at henvise til nedenstående tekst og behandlingen på XSL kurset.
In order to retrieve arbitrary nodes, you can use the match attribute of the <xsl:template> element to determine the current context. This attribute takes an XPath expression to determine to what set of elements from the XML document the current template will apply. So what exactly is an XPath expression? XPath is a huge specification in its own right. In this course, only the basics of XPath can be covered. The table below provides the essentials of this syntax - its core operators and special characters:
Some of this syntax should be familiar to you from other contexts. The mathematics operators for instance are standard, though it is interesting to note that div is used for division, since / has an alternate meaning. |
||||||||||||||||||||||||||||||||||