Study Guide
University:
Kentucky State UniversityCourse:
COS 127 | Intro to Web Design Using HTMLAcademic year:
2024
Views:
84
Pages:
109
Author:
Tyshawn Shaffer
100
Chapter 2
A Semantic Web Primer Explanation of the Example
●
xsl:apply-templates element causes all children of
the context node to be matched against the selected
path expression
–
–
–
101
E.g., if the current template applies to /, then the element
xsl:apply-templates applies to the root element
I.e. the authors element (/ is located above the root
element)
If the current context node is the authors element, then the
element xsl:apply-templates select="author" causes the
template for the author elements to be applied to all
author children of the authors element
Chapter 2
A Semantic Web Primer Explanation of the Example (2)
●
It is good practice to define a template for
each element type in the document
–
–
●
102
Even if no specific processing is applied to
certain elements, the xsl:apply-templates
element should be used
E.g. authors
In this way, we work from the root to the
leaves of the tree, and all templates are
applied
Chapter 2
A Semantic Web Primer Processing XML Attributes
●
Suppose we wish to transform to itself the element:
Chapter 2 Structured Web Documentsin XML
Get your assignment done in just 3 hours. Quick, easy, and available 24/7.
Report
Tell us what’s wrong with it:
Thanks, got it!
We will moderate it soon!
Our EduBirdie Experts Are Here for You 24/7! Just fill out a form and let us know how we can assist you.
Enter your email below and get instant access to your document