Quiz
1. |
In regard to an XSL processor, what is pattern matching? |
2. |
Which two XSL technologies would you rely on if you only needed to transform an XML document? |
3. |
How do you define templates in XSLT style sheets? |
4. |
What is the difference between patterns and expressions? |
Quiz Answers
1. |
Pattern matching is the process of using patterns to identify nodes in the source document tree that are to be processed according to XSL styles and transformed into a result tree. |
2. |
XSLT and XPath are the two XSL technologies that you would rely on if you only needed to transform an XML document. XSL-FO enters the picture only if you planned on formatting a document using XSL. |
3. |
Templates are defined in XSL style sheets using the |
4. |
A pattern identifies a branch of an XML tree for transformation purposes. Expressions are similar to patterns in that they also impact which nodes are selected for transformation. However, unlike patterns, expressions are capable of carrying out processing of their own, such as mathematical calculations, text processing, and conditional tests. |
Exercises
1. |
Add a new element named |
2. |
Modify the Contacts DTD so that it supports the new |
3. |
Modify the |