File: Data.xml
shop 1
product 1
1998
description
6.99
5.99
71.50
File: Transform.xslt
version="1.0">
~~~~ Start of list element's template ~~~~ 1. List price
(current node): {
} 2. Parent element (prices) contents: {
} 3. Grandparent element contents: {
} 4. Attribute of grandparent: {
} 5. Sibling node {
} 6. Uncle node {
} 7. Parent node's name: {
} 8. Grandparent node's name: {
} ~~~~ End of list element's template ~~~~
Output:
~~~~ Start of list element's template ~~~~ 1. List price
(current node): {
} 2. Parent element (prices) contents: {
6.99
5.99
71.50
} 3. Grandparent element contents: {
shop 1
product 1
1998
description
6.99
5.99
71.50
} 4. Attribute of grandparent: {
A
} 5. Sibling node {
5.99
} 6. Uncle node {
product 1
} 7. Parent node's name: {
prices
} 8. Grandparent node's name: {
wine
} ~~~~ End of list element's template ~~~~