hi all -
Thanks for reading. Is it possible to match multiple XPaths in a single <xsl:template match="">?
I have the following two file types:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<TEI.2 id="1234_001">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Letter (copy), <name>BDS</name> at University, to Wrox, <date value="2011-10-31">2011 Oct. 31</date>
</title>
<author>
<name>BDS</name>
</author>
</titleStmt>
<publicationStmt>
<publisher>University Special Collections</publisher>
<date>2011-10-31</date>
<idno type="spcId">1234_001</idno>
</publicationStmt>
<sourceDesc>
<bibl>
<title>Letter (copy), <name>BDS</name> at University, to Wrox, <date value="2011-10-31">2011 Oct. 31</date>
</title>
</bibl>
</sourceDesc>
</fileDesc>
</teiHeader>
</TEI.2>
and
Code:
<?xml version="1.0" encoding="UTF-8"?>
<ead>
<eadheader>
<eadid>1234</eadid>
<filedesc>
<titlestmt>
<titleproper>Finding Aid Title <num>MS.0000</num>
</titleproper>
</titlestmt>
<author>Finding aid prepared by BDS, October 31, 2011</author>
</filedesc>
<profiledesc>
<creation>Finding aid produced by hand
<date>2011-10-31T11:20-0400</date>
</creation>
</profiledesc>
</eadheader>
<archdesc>
<did>
<unittitle>Find Aid Title,</unittitle>
<unitid>MS.0000</unitid>
<repository>
<corpname>University Libraries, Special Collections</corpname>
</repository>
<unitdate>1912</unitdate>
</did>
</archdesc>
<controlaccess>
<head>Subjects</head>
<subject>Subject 1</subject>
<subject>Subject 2</subject>
<subject>Subject 3</subject>
<subject>Subject 4</subject>
</controlaccess>
</ead>
I would like to access the following XPaths in the separate documents:
/ead/archdesc/did/unitdate[1]
/TEI.2/teiHeader/fileDesc/publicationStmt/date[1]
Is something along the lines of
Code:
xsl:template match="[/ead/archdesc/did/unitdate[1] or /TEI.2/teiHeader/fileDesc/publicationStmt/date[1]]"
possible?
Thanks in advance for any suggestions you can offer.