Update scheme for XSLT parms
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 8 Mar 2012 15:59:34 +0000 (16:59 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 8 Mar 2012 15:59:34 +0000 (16:59 +0100)
This is actually supported in next YAZ version

etc/retrieval-info.xml
xml/schema/retrievalinfo.rnc

index 04629c3..64459e8 100644 (file)
@@ -21,7 +21,9 @@
     <backend syntax="usmarc" name="F">
       <marc inputformat="marc" outputformat="marcxml"
             inputcharset="marc-8"/>
-      <xslt stylesheet="../xml/xslt/MARC21slim2DC.xsl"/>
+      <xslt stylesheet="../xml/xslt/MARC21slim2DC.xsl">
+         <param name="myparameter" value="myvalue"/>
+      </xslt>
     </backend>
   </retrieval>
   <retrieval syntax="unimarc" name="F">
index b359e95..d4a2573 100644 (file)
@@ -35,7 +35,11 @@ marc = element y:marc {
 }
 
 xslt = element y:xslt {
-  attribute stylesheet { xsd:string }
+  attribute stylesheet { xsd:string },
+  element y:param {
+  attribute name {xsd:string},
+  attribute value {xsd:string}
+  }*
 }
 
 usemarcon = element y:usemarcon {