]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs/newapi.xsl: Take API flag data from libvirt-api.xml rather than access/libvirt...
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Feb 2023 14:05:44 +0000 (15:05 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 Mar 2023 12:09:16 +0000 (13:09 +0100)
Since now we embed the data in the libvirt API we don't need to source
it from the extra document.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/newapi.xsl

index cc3ec681b7793396964e7595a4159f26e9f2c94b..cc08b8460a3c0aba8be30ff41207a7e5a76cea20 100644 (file)
 
   <xsl:param name="indexfile" select="''"/>
 
-  <xsl:param name="aclxmlpath" select="''"/>
-
   <!-- the target directory for the HTML output -->
   <xsl:variable name="htmldir">html</xsl:variable>
   <xsl:variable name="href_base">../</xsl:variable>
 
-  <xsl:variable name="acls">
-    <xsl:if test="$aclxmlpath != ''">
-      <xsl:copy-of select="document($aclxmlpath)/aclinfo/api"/>
-    </xsl:if>
-  </xsl:variable>
-
   <xsl:template name="aclinfo">
-    <xsl:param name="api"/>
+    <xsl:param name="acl"/>
 
-    <xsl:if test="count(exsl:node-set($acls)/api[@name=$api]/check) > 0">
+    <xsl:if test="count($acl/check) > 0">
       <h5>Access control parameter checks</h5>
       <table>
         <thead>
             <th>Condition</th>
           </tr>
         </thead>
-        <xsl:apply-templates select="exsl:node-set($acls)/api[@name=$api]/check" mode="acl"/>
+        <xsl:apply-templates select="$acl/check" mode="acl"/>
       </table>
     </xsl:if>
-    <xsl:if test="count(exsl:node-set($acls)/api[@name=$api]/filter) > 0">
+    <xsl:if test="count($acl/filter) > 0">
       <h5>Access control return value filters</h5>
       <table>
         <thead>
@@ -61,7 +53,7 @@
             <th>Permission</th>
           </tr>
         </thead>
-        <xsl:apply-templates select="exsl:node-set($acls)/api[@name=$api]/filter" mode="acl"/>
+        <xsl:apply-templates select="$acl/filter" mode="acl"/>
       </table>
     </xsl:if>
   </xsl:template>
     </xsl:if>
     <div class="acl">
       <xsl:call-template name="aclinfo">
-        <xsl:with-param name="api" select="$name"/>
+        <xsl:with-param name="acl" select="acls"/>
       </xsl:call-template>
     </div>
   </xsl:template>