add template files

This commit is contained in:
2024-06-03 15:51:58 +02:00
commit b5895194d9
55 changed files with 1365 additions and 0 deletions

49
README.md Normal file
View File

@@ -0,0 +1,49 @@
# XSLT-repository-tasks:
## Use http://tools.release11.com/xml/xslt to transform xml and copy result from the site to corresponding file in solutions directory.
### 1. Take XML with books and calculate number of all books available. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/book.xml as input.
2. The output resulting from the transformation should look like this file src/main/resources/output/1-available-books.xml.
### 2. Take XML with books data and generate HTML web page with table of books. Sort books based on book name. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/book.xml as input.
2. The output resulting from the transformation should look like this file src/main/resources/output/2-table-of-books.html.
### 3. Take XML file with authors data and change original namespace to “http://marklogicacademy.ml/library/authors/v2”. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/author.xml as input.
2. The output resulting from the transformation should look like this file src/main/resources/output/3-authors-namespace.xml.
### 4. Take XML file with authors and generate file with dead authors. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/author.xml as input.
2. The output resulting from the transformation should look like this file src/main/resources/output/4-death-authors.xml.
### 5. Take XML file with authors and calculate the average age in which authors wrote their first book. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/author.xml as input.
2. To use the src/main/resources/xml/book.xml file in the transformation load it to a variable in XSLT.
3. The returned value must be of type Duration.
4. The output resulting from the transformation should look like this file src/main/resources/output/5-average-authors-age.xml.
### 6. Take XML file with books and generate file with not available books. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/book.xml as input.
2. The output resulting from the transformation should look like this file src/main/resources/output/6-not-available-books.xml.
### 7. Take XML with authors, join XML with books data and save the data in single file. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/author.xml as input.
2. To use the src/main/resources/xml/book.xml file in the transformation load it to a variable in XSLT.
3. The output resulting from the transformation should look like this file src/main/resources/output/7-authors-with-books.xml.
### 8. Take XML file with authors data and books data and generate new file with authors who wrote more than 3 books. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/author.xml as input.
2. To use the src/main/resources/xml/book.xml file in the transformation load it to a variable in XSLT.
3. The output resulting from the transformation should look like this file src/main/resources/output/8-who-wrote-more-than-3-books.xml.
### 9. Take XML with authors data and transform all attributes into elements. New elements should inherit namespace of parent element. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/author.xml as input.
2. The output resulting from the transformation should look like this file src/main/resources/output/9-attributes-into-elements.xml.
### 10. Take XML with history of book borrows and generate file with top 3 most popular books. By following the guidelines below:
1. The XSLT file during transformation will receive src/main/resources/xml/book.xml as input.
2. To use the src/main/resources/xml/author.xml file in the transformation load it to a variable in XSLT.
3. The output resulting from the transformation should look like this file src/main/resources/output/10-most-popular-books.xml.