Skip to content

Phrases Line Graph XSLT and all-in-one TEICorpus of Hamilton #21

@ebeshero

Description

@ebeshero

Note: for future reference, in this issue we developed two ways to process an SVG line-graph with data pulled from a collection of files.

@bsf15 and @ahunker both: BE SURE TO DO A GIT PULL: I've just made two new commits to your repo, to help out with the frequency line graph.

@ahunker I pulled in your XSLT for the line graph, remembering there were some things we were stuck on yesterday (Friday) when we met. I remember you mentioning you weren't quite sure how to get the connecting lines to work, moving from one TEI file to the next in your <xsl:for-each>, and right, it's not possible to reach a file in a collection using XPath axes (at least not in XSLT). So I took the liberty of writing an XSLT file to bundle all 46 Hamilton songs (as you have in them in the PhrasesFrequency directory) into ONE giant file with a <teiCorpus> root node. That's a TEI construction that basically involves multiple <TEI> elements as children of <teiCorpus>: yours has 46 children, all of which are readily accessible with XPath.

Now that I've committed and pushed those changes, I think you can finish drawing the line-graph with no trouble now! I re-ran the XSLT and the output SVG is properly drawing the first set of connecting lines on the "shot" phrase that you set up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions