marcxml example: utf-8 encoding for queries, etc
[idzebra-moved-to-github.git] / examples / marcxml / identity.xsl
index 0fa796e..21d6d6b 100644 (file)
@@ -1,13 +1,16 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  version="1.0">
+ version="1.0">
+<!-- Identity transform stylesheet -->
 
-  <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
-
-  <!-- match on alvis xml record -->
-  <xsl:template match="/">
-      <xsl:copy-of select="/"/>
-  </xsl:template>
+<xsl:output indent="yes"
+      method="xml"
+      version="1.0"
+      encoding="UTF-8"/>
 
+ <xsl:template match="node()|@*">
+   <xsl:copy>
+     <xsl:apply-templates select="@*|node()"/>
+   </xsl:copy>
+ </xsl:template>
 
 </xsl:stylesheet>