• 沒有找到結果。

附錄九 XSLT 轉換規則完整編碼文件(單筆轉換)

在文檔中 必備 元素 (頁 21-29)

<?xml version='1.0' ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" doctype-public="+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival Description (EAD) Version 2002)//EN" doctype-system="ead.dtd" encoding="UTF-8"/>

<xsl:template match="/">

<ead>

<xsl:element name="eadheader">

<xsl:attribute name="langencoding"><xsl:text>iso639-2b</xsl:text></xsl:attribute>

<xsl:attribute name="scriptencoding"><xsl:text>iso15924</xsl:text></xsl:attribute>

<xsl:attribute name="relatedencoding"><xsl:text>dc</xsl:text></xsl:attribute>

<xsl:attribute name="repositoryencoding"><xsl:text>iso15511</xsl:text></xsl:attribute>

<xsl:attribute name="countryencoding"><xsl:text>iso3166-1</xsl:text></xsl:attribute>

<xsl:element name="eadid">

<xsl:attribute name="countrycode"><xsl:text>tw</xsl:text></xsl:attribute>

<xsl:attribute name="mainagencycode"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="identifier"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>identifier</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="filedesc">

<xsl:element name="titlestmt">

<xsl:element name="titleproper">

<xsl:attribute name="encodinganalog"><xsl:text>title</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

</xsl:element>

<xsl:element name="profiledesc">

<xsl:element name="creation">

<xsl:element name="date">

<xsl:attribute name="normal"><xsl:text></xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

<xsl:element name="langusage">

<xsl:element name="language">

<xsl:attribute name="langcode"><xsl:text>chi</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>language</xsl:text></xsl:attribute>

<xsl:attribute name="scriptcode"><xsl:text>Hant</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

</xsl:element>

</xsl:element>

<archdesc>

<xsl:attribute name="level"><xsl:text>collection</xsl:text></xsl:attribute>

<xsl:attribute name="type"><xsl:text>inventory</xsl:text></xsl:attribute>

<xsl:attribute name="relatedencoding"><xsl:text>marc21</xsl:text></xsl:attribute>

<xsl:element name="did">

<xsl:element name="unitid">

<xsl:attribute name="countrycode"><xsl:text>tw</xsl:text></xsl:attribute>

<xsl:attribute name="repositorycode"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="type"><xsl:text>collection</xsl:text></xsl:attribute>

<xsl:attribute name="label"><xsl:text>Accession number</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="unittitle">

<xsl:attribute name="encodinganalog"><xsl:text>245$a</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="unitdate">

<xsl:attribute name="normal"><xsl:text></xsl:text></xsl:attribute>

<xsl:attribute name="type"><xsl:text>inclusive</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>245$f</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="repository"/>

<xsl:element name="physdesc">

<xsl:element name="extent">

<xsl:attribute name="encodinganalog"><xsl:text>300$a</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

<xsl:element name="origination"/>

<xsl:element name="langmaterial">

<xsl:element name="language">

<xsl:attribute name="encodinganalog"><xsl:text>546</xsl:text></xsl:attribute>

<xsl:attribute name="langcode"><xsl:text>ch</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

</xsl:element>

<xsl:element name="bioghist">

<xsl:attribute name="encodinganalog"><xsl:text>5451_</xsl:text></xsl:attribute>

<xsl:element name="head"/>

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="scopecontent">

<xsl:attribute name="encodinganalog"><xsl:text>5202_</xsl:text></xsl:attribute>

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="accessrestrict">

<xsl:attribute name="encodinganalog"><xsl:text>506</xsl:text></xsl:attribute>

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="otherfindaid">

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="relatedmaterial">

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="bibliography">

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="controlaccess">

<xsl:element name="controlaccess">

<xsl:element name="persname">

<xsl:attribute name="role"><xsl:text>subject</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>600</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="persname">

<xsl:attribute name="role"><xsl:text>creator</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>700</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

<xsl:element name="controlaccess">

<xsl:element name="famname">

<xsl:attribute name="role"><xsl:text>subject</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>600</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="famname">

<xsl:attribute name="role"><xsl:text>creator</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>700</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

<xsl:element name="controlaccess">

<xsl:element name="corpname">

<xsl:attribute name="role"><xsl:text>subject</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>610</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="corpname">

<xsl:attribute name="role"><xsl:text>creator</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>710</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

<xsl:element name="controlaccess">

<xsl:element name="geogname">

<xsl:attribute name="role"><xsl:text>subject</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>651</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

<xsl:element name="controlaccess">

<xsl:element name="subject">

<xsl:attribute name="encodinganalog"><xsl:text>650</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>Text</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

<xsl:element name="controlaccess">

<xsl:element name="title">

<xsl:attribute name="encodinganalog"><xsl:text>630</xsl:text></xsl:attribute>

<xsl:attribute name="source"><xsl:text>Text</xsl:text></xsl:attribute>

<xsl:attribute name="rules"><xsl:text>local</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

</xsl:element>

<dsc>

<xsl:attribute name="type"><xsl:text>combined</xsl:text></xsl:attribute>

<c01>

<xsl:attribute name="level"><xsl:text>series</xsl:text></xsl:attribute>

<xsl:element name="did">

<xsl:element name="unitid">

<xsl:attribute name="encodinganalog"><xsl:text>099</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="unittitle">

<xsl:attribute name="encodinganalog"><xsl:text>245$a</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="unitdate">

<xsl:attribute name="type"><xsl:text>inclusive</xsl:text></xsl:attribute>

<xsl:attribute name="encodinganalog"><xsl:text>245$f</xsl:text></xsl:attribute>

</xsl:element>

<xsl:element name="langmaterial">

<xsl:element name="language">

<xsl:attribute name="encodinganalog"><xsl:text>546</xsl:text></xsl:attribute>

<xsl:attribute name="langcode"><xsl:text>chi</xsl:text></xsl:attribute>

</xsl:element>

</xsl:element>

</xsl:element>

<xsl:element name="scopecontent">

<xsl:attribute name="encodinganalog"><xsl:text>5202_</xsl:text></xsl:attribute>

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="arrangement">

<xsl:attribute name="encodinganalog"><xsl:text>351</xsl:text></xsl:attribute>

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="accessrestrict">

<xsl:attribute name="encodinganalog"><xsl:text>506</xsl:text></xsl:attribute>

<xsl:element name="p"/>

</xsl:element>

<xsl:element name="userestrict">

<xsl:element name="p"/>

</xsl:element>

<c02>

<xsl:attribute name="level"><xsl:text>item</xsl:text></xsl:attribute>

<did>

<unitid label="classification" encodinganalog="099">

<xsl:value-of select="kmtArchive/classification"/>

</unitid>

<unitid label="classificationNumber" encodinganalog="099">

<xsl:value-of select="kmtArchive/classificationNumber"/>

</unitid>

<unittitle encodinganalog="245$a">

<xsl:value-of select="kmtArchive/title"/>

</unittitle>

<unitdate type="inclusive" encodinganalog="245$f">

<xsl:value-of select="kmtArchive/issuedDate"/>

</unitdate>

<physdesc>

<xsl:for-each select="kmtArchive/quantity">

<extent encodinganalog="300$a">

<xsl:value-of select="."/>

</extent>

</xsl:for-each>

<physfacet encodinganalog="300$b" type="binding">

<xsl:value-of select="kmtArchive/binding"/>

</physfacet>

<xsl:for-each select="kmtArchive/technique">

<physfacet encodinganalog="300$b" type="technique">

<xsl:value-of select="."/>

</physfacet>

</xsl:for-each>

<physfacet encodinganalog="300$b" type="duplication">

<xsl:value-of select="kmtArchive/duplication"/>

</physfacet>

<physfacet encodinganalog="300$b" type="pattern">

<xsl:value-of select="kmtArchive/pattern"/>

</physfacet>

<dimensions encodinganalog="300$c">

<xsl:value-of select="kmtArchive/format"/>

</dimensions>

</physdesc>

<origination label="Creator:">

<xsl:for-each select="kmtArchive/creator/creatorName">

<name role="character">

<xsl:value-of select="."/>

<xsl:value-of select="../character"/>

</name>

</xsl:for-each>

</origination>

<langmaterial>

<language encodinganalog="546">

<xsl:value-of select="kmtArchive/language"/>

</language>

</langmaterial>

<dao linktype="simple" href="Text">

<daodesc>

<p>

<xsl:value-of select="kmtArchive/digitalObject"/>

</p>

</daodesc>

</dao>

<note label="publisher">

<p>

<xsl:value-of select="kmtArchive/publisher"/>

</p>

</note>

<note label="issuedPlace">

<p>

<xsl:value-of select="kmtArchive/issuedPlace"/>

</p>

</note>

<note label="edition">

<p>

<xsl:value-of select="kmtArchive/edition"/>

</p>

</note>

<note label="volume">

<p>

<xsl:value-of select="kmtArchive/volume"/>

</p>

</note>

<note label="note">

<xsl:for-each select="kmtArchive/note">

<p>

<xsl:value-of select="."/>

</p>

</xsl:for-each>

</note>

<note label="source">

<p>

<xsl:value-of select="kmtArchive/source"/>

</p>

</note>

<note label="condition">

<p>

<xsl:value-of select="kmtArchive/condition"/>

</p>

</note>

</did>

<controlaccess>

<controlaccess>

<xsl:for-each select="kmtArchive/issuedPlaceKeyword">

<geogname role="subject" encodinganalog="651" source="Text" rules="local">

<xsl:value-of select="."/>

</geogname>

</xsl:for-each>

</controlaccess>

</controlaccess>

</c02>

</c01>

</dsc>

</archdesc>

</ead>

</xsl:template>

</xsl:stylesheet>

附錄十 單筆「國民黨歷史檔案詮釋資料」編目紀錄透過 XSLT

在文檔中 必備 元素 (頁 21-29)

相關文件