Omit ./ in predicates (not necessary)
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Sep 2014 08:10:56 +0000 (10:10 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Sep 2014 08:10:56 +0000 (10:10 +0200)
bibframe/xsl/briefDisplay.xsl
bibframe/xsl/fullDisplay.xsl

index b3953a9..e975da9 100644 (file)
@@ -17,7 +17,7 @@
     <table>
       <xsl:for-each select="bf:Work[1]/bf:creator">
        <xsl:variable
-           name="resource" select="./@rdf:nodeID"/>
+           name="resource" select="@rdf:nodeID"/>
        <tr>
          <td><b>Creator:</b></td>
          <td>
@@ -27,7 +27,7 @@
       </xsl:for-each>
       <xsl:for-each select="bf:Work[1]/bf:workTitle">
        <xsl:variable
-           name="resource" select="./@rdf:nodeID"/>
+           name="resource" select="@rdf:nodeID"/>
        <tr>
          <td><b>Work Title:</b></td>
          <td>
index e3d10b5..5aa635a 100644 (file)
     <table>
       <xsl:for-each select="bf:*">
        <tr><td><b><xsl:value-of select="name(.)"/>:</b>
-       <xsl:variable name="n" select="./@rdf:nodeID"/>
+       <xsl:variable name="n" select="@rdf:nodeID"/>
        <xsl:if test="$n">
          (<xsl:value-of select="$n"/>)
        </xsl:if>
        </td></tr>
-       <xsl:for-each select="./*">
-         <xsl:variable name="lang" select="./@xml:lang"/>
+       <xsl:for-each select="*">
+         <xsl:variable name="lang" select="@xml:lang"/>
          <xsl:if test="not($lang='x-bf-hashable')">
-           <xsl:variable name="resource" select="./@rdf:resource"/>
-           <xsl:variable name="nodeid" select="./@rdf:nodeID"/>
+           <xsl:variable name="resource" select="@rdf:resource"/>
+           <xsl:variable name="nodeid" select="@rdf:nodeID"/>
            <tr>
              <td/>
              <td>