Commits

btingle committed dd610a1

content does not follow the DTD, expecting (head? , did , (accessrestrict | accruals | acqinfo | altformavail | appraisal | arrangement | bibliography | bioghist | controlaccess | custodhist | descgrp | fileplan | index | odd | originalsloc | otherfindaid | phystech | prefercite | processinfo | relatedmaterial | scopecontent | separatedmaterial | userestrict | dsc | dao | daogrp | note)* , (thead? , c04+)*), got (did c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 c04 controlaccess )

  • Participants
  • Parent commits 0285b62

Comments (0)

Files changed (1)

 </xsl:template>
 
 <!-- dao from AT style to MOAC style -->
-<xsl:template match="ead:dao[not(parent::ead:did) and not(parent::ead:archdesc)]">
+
+<xsl:template match="ead:c01|ead:c02|ead:c03|ead:c04|ead:c05|ead:c06|ead:c07|ead:c08|ead:c09|ead:c10|ead:c11|ead:c12">
+<!-- head? , did , (accessrestrict | accruals | acqinfo | altformavail | appraisal | arrangement | bibliography | bioghist | controlaccess | custodhist | descgrp | fileplan | index | odd | originalsloc | otherfindaid | phystech | prefercite | processinfo | relatedmaterial | scopecontent | separatedmaterial | userestrict | dsc | dao | daogrp | note)* , (thead? , c04+) 
+-->
+  <xsl:element name="{name()}" namespace="{$namespace}">
+    <xsl:apply-templates select="@*"/>
+    <xsl:apply-templates select="ead:head | ead:did | ead:accessrestrict | ead:accruals
+      | ead:acqinfo | ead:altformavail | ead:appraisal | ead:arrangement | ead:bibliography 
+      | ead:bioghist | ead:controlaccess | ead:custodhist | ead:descgrp | ead:fileplan | ead:index
+      | ead:odd | ead:originalsloc | ead:otherfindaid | ead:phystech | ead:prefercite 
+      | ead:processinfo | ead:relatedmaterial | ead:scopecontent | ead:separatedmaterial 
+      | ead:userestrict | ead:dsc | ead:daogrp | ead:note | ead:thead"/>
+    HEY<xsl:apply-templates select="ead:dao" mode="convert"/>YOU
+    <xsl:apply-templates select="ead:c01|ead:c02|ead:c03|ead:c04|ead:c05|ead:c06|ead:c07|ead:c08|ead:c09|ead:c10|ead:c11|ead:c12"/>
+
+  </xsl:element>
+</xsl:template>
+
+<xsl:template match="ead:dao" mode="convert"><xsl:text>
+</xsl:text>
   <xsl:variable name="plusone">
     <xsl:value-of select="number(substring(name(..),2,2))+1"/>
   </xsl:variable>