Skip to content

Commit

Permalink
escaped ampersands in XML coll, output siteIndex base
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeshero committed Nov 5, 2018
1 parent 2c41047 commit a83c0db
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 5 deletions.
2 changes: 1 addition & 1 deletion XML_Letters/CC.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion XML_Letters/ContientalCongress_XML.xml

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions prosopBuilder.xsl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.tei-c.org/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="3.0">
<xsl:output method="xml" indent="yes"/>
<!--2018-11-02 ebb: This XSLT (in progress) will pull prosopography data (names of people, places, organizations/institutions, events) from the George Washington collection files and output them in a standard TEI "site index" series of lists to which the project team will apply standard xml:ids for referencing in the project.
The output "site index" file will also serve to supply standard project values for @ref attributes for inline coding throughout the project: we'll work with it (writing a new XSLT) to build up the project ODD (and its generated project RNG schema) using the values the team supplies there. -->

Expand Down Expand Up @@ -31,9 +32,10 @@
</teiHeader>
<text>
<body>
<!--REDO this b/c you want to work with for-each over distinct values, and map them back onto the tree. -->

<listPerson>
<xsl:for-each select="distinct-values($washColl//persName ! normalize-space())">
<xsl:sort/>
<person>
<persName><xsl:value-of select="current()"/></persName>
<birth/>
Expand All @@ -46,6 +48,7 @@

<listOrg>
<xsl:for-each select="distinct-values($washColl//orgName | $washColl//location/region) ! normalize-space()">
<xsl:sort/>
<org>
<orgName><xsl:value-of select="current()"/></orgName>
<note></note>
Expand All @@ -57,6 +60,7 @@

<listPlace>
<xsl:for-each select="distinct-values($washColl//placeName | $washColl//location[not(region)]) ! normalize-space()">
<xsl:sort/>
<place>
<placeName><xsl:value-of select="current()"/></placeName>
<location>
Expand Down
Loading

0 comments on commit a83c0db

Please sign in to comment.