We're writing lots of different kinds of code lately, and you'll likely be wanting quick and ready access to examples to remind yourself of the syntax you want. As a reminder, you can find answers to past homework exercises and tests in the Solutions directory of DHClass-Hub. As for the stuff we've just been doing, find solutions and examples here:
XSLT Identity Transformation Class Example directory The files in this directory include an input XML, an output XML, and the XSLT file that processes them. I have also included the schema files that we want to be associated with these files.
The XSLT homework for Wednesday gets you started with processing the Banksy collection, the same collection you were working with in the XPath test. Start that process working with one file from that collection to make sure your template rules are working first. Then in class on Wednesday, you'll learn how to apply your XSLT to a collection of files. (This process is much like what we did to write XQuery in oXygen, and involves declaring a variable that defines a collection() of documents).
Finally, for some perspective on what you're learning, XSLT and Schematron are examples of declarative programming, as distinct from imperative programming languages like Java. If you're curious about the difference, check out this clear explanation: https://tylermcginnis.com/imperative-vs-declarative-programming/
We're writing lots of different kinds of code lately, and you'll likely be wanting quick and ready access to examples to remind yourself of the syntax you want. As a reminder, you can find answers to past homework exercises and tests in the Solutions directory of DHClass-Hub. As for the stuff we've just been doing, find solutions and examples here:
The XSLT homework for Wednesday gets you started with processing the Banksy collection, the same collection you were working with in the XPath test. Start that process working with one file from that collection to make sure your template rules are working first. Then in class on Wednesday, you'll learn how to apply your XSLT to a collection of files. (This process is much like what we did to write XQuery in oXygen, and involves declaring a variable that defines a
collection()
of documents).Finally, for some perspective on what you're learning, XSLT and Schematron are examples of declarative programming, as distinct from imperative programming languages like Java. If you're curious about the difference, check out this clear explanation: https://tylermcginnis.com/imperative-vs-declarative-programming/
@koshinf @SparkTheDragon @JAG240 @James-f117 @achen298 @abdual1100 @NADGIT @frabbitry @alnopa9 @KSD32 @BMT45