ebeshero / DHClass-Hub

a repository to help introduce and orient students to the GitHub collaboration environment, and to support DH classes.
GNU Affero General Public License v3.0
27 stars 27 forks source link

From XQuery to Schematron to XSLT: Solutions and Examples #642

Closed ebeshero closed 5 years ago

ebeshero commented 5 years ago

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