From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Nicholson Subject: [PATCH] Syntax error in iptables.xslt Date: Thu, 2 Aug 2007 08:42:42 -0700 Message-ID: <20070802154242.GB1987@tilt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: netfilter-devel@lists.netfilter.org Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Using the iptables.xslt stylesheet as shipped in iptables-1.3.8 is causing syntax errors when run through xsltproc. $ echo | xsltproc iptables.xslt - compilation error: file iptables.xslt line 118 element param The value '$node' of the attribute 'name' is not a valid QName. $ xsltproc --version Using libxml 20627, libxslt 10120 and libexslt 813 xsltproc was compiled against libxml 20627, libxslt 10120 and libexslt 813 libxslt 10120 was compiled against libxml 20627 libexslt 813 was compiled against libxml 20627 The problem is that in , "$node" is not a valid QName. http://www.w3.org/TR/xslt#variables Patch below converts to a valid name and the one expected in the rest of the stylesheet when using . -- Dan Index: iptables.xslt =================================================================== --- iptables.xslt (revision 6982) +++ iptables.xslt (working copy) @@ -116,7 +116,7 @@ - + [ 0