Open JeremyF5737 opened 3 years ago
@JeremyF5737 @Joelpie @Tricky-Keys I've pulled in your XML code and I'm noticing a lot of inconsistencies. Some files have some code that isn't well-formed (so XPath and XSLT don't work over it). And most are pointing at different Relax NG schemas--there is quite a variety there. I was going to see if I could use the code for an SVG homework for the class, but...it would need some cleaning up. My idea was to make a stacked bar graph of the number of locations that are visitable vs. non-visitable as coded in the Morrowind books.
@JeremyF5737 @Joelpie @Tricky-Keys I have written an XSLT that builds on what @JeremyF5737 and @Tricky-Keys were working on in your XSLT tests. You're going to want to customize it to your project and web output. It's an XSLT that reaches into a collection of XML documents (which must be well-formed and consistently coded), and outputs:
1) a page that indexes items, locations, groups, and persons, and links them to their first mention in a book HTML file,
2) an HTML file for each book, holding "link anchors" on the first mention of an item, location, group or person, and holding<span>
elements with @class
for items, locations, groups, and persons, so these can be styled to stand out in the CSS.
The XSLT creates multiple new HTML files (as many as you have in your XML collection). Right now it's outputting three that @JeremyF5737 sent me that we know are coded correctly. I'm sure you can add more.
I used @Tricky-Keys's CSS for the table on my sample output. I think this output needs a little color-coded legend at the top of each book page to explain what the colors are showing.
We'll want to unpack this directory into the repo and make some changes to where it's outputting HTML. Right now it's just contained in my directory until I can walk you through this.
I'm using some slightly more advanced XSLT than you've seen to do this, but I think once I've shown it to you, you'll see how you can alter it as you wish. Let's go over this together as soon as we can.
My files are pushed in this commit, all in one folder together. We're going to want to reorganize things and "unpack" this so it goes where you want it to in the repo. https://github.com/JeremyF5737/Elder_Scrolls_Morrowind_Books/commit/150820140e80315fc54595f4750f63d04bce62a0
@JeremyF5737 @Joelpie @Tricky-Keys
[x] Audio for website @JeremyF5737
[] Finalize RelaxNG @everyone
[] xml:id for every single item in morrowind @Joelpie @JeremyF5737
[x] xml markup examples @everyone
[x] Make a Search function - @ebeshero @Tricky-Keys