Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 58a0ab2

XSLT Refactoring: Convert to <xsl:copy-of>.

  • Participants
  • Parent commits 203e3bd

Comments (0)

Files changed (1)

File perl/modules/XML-Grammar-Fiction/extradata/fiction-xml-to-docbook.xslt

     </xsl:variable>
     <xsl:element name="{$tag_name}">
         <xsl:if test="@xlink:href">
-            <xsl:attribute name="xlink:href">
-                <xsl:value-of select="@xlink:href" />
-            </xsl:attribute>
+            <xsl:copy-of select="@xlink:href" />
         </xsl:if>
         <xsl:if test="@xml:lang">
-            <xsl:attribute name="xml:lang">
-                <xsl:value-of select="@xml:lang" />
-            </xsl:attribute>
+            <xsl:copy-of select="@xml:lang" />
         </xsl:if>
         <xsl:if test="@xml:id">
-            <xsl:attribute name="xml:id">
-                <xsl:value-of select="@xml:id" />
-            </xsl:attribute>
+            <xsl:copy-of select="@xml:id" />
         </xsl:if>
         <xsl:apply-templates/>
     </xsl:element>