btingle avatar btingle committed e6ccb72

don't bother answering questions you don't know the answer to

Comments (0)

Files changed (1)

 <xsl:template match="ead:dsc[parent::ead:archdesc and position()=1]">
   <xsl:element name="{name()}">
     <xsl:apply-templates select="@*"/>
-    <xsl:if test="not(@type)">
+    <xsl:if test="not(@type) and $dsc-type!=''">
       <xsl:attribute name="type">
         <xsl:value-of select="$dsc-type"/>
 <xsl:template match="ead:unitid[parent::ead:did and not(ancestor::ead:dsc)]">
   <xsl:element name="{name()}">
     <xsl:apply-templates select="@*"/>
-    <xsl:if test="not(@repositorycode)">
+    <xsl:if test="not(@repositorycode) and $repositorycode!=''">
       <xsl:attribute name="repositorycode">
         <xsl:value-of select="$repositorycode"/>
-    <xsl:if test="not(@countrycode)">
+    <xsl:if test="not(@countrycode) and $countrycode!=''">
       <xsl:attribute name="countrycode">
         <xsl:value-of select="$countrycode"/>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.