From MAng@axsone.com Wed Feb 2 16:47:08 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45A2C3B06C7 for ; Wed, 2 Feb 2005 16:47:08 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16094-02 for ; Wed, 2 Feb 2005 16:47:07 -0500 (EST) Received: from gatekeeper.axsone.com (unknown [204.142.130.8]) by menubar.gnome.org (Postfix) with SMTP id F16483B09F8 for ; Wed, 2 Feb 2005 16:47:06 -0500 (EST) Received: from dmzproxy.axsone.com by gatekeeper.axsone.com via smtpd (for menubar.gnome.org [12.107.209.248]) with SMTP; Wed, 2 Feb 2005 16:47:06 -0500 Received: from pubsrv06.axsone.com (pubsrv06.axsone.com [204.142.131.18]) by dmzproxy.axsone.com (Postfix) with ESMTP id 49430960F1 for ; Wed, 2 Feb 2005 16:42:47 -0500 (EST) Received: from corpmx1.ctronsoft.com ([192.168.10.5]) by pubsrv06.axsone.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 2 Feb 2005 16:47:05 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C50970.BD4EBB66" Date: Wed, 2 Feb 2005 16:47:06 -0500 Message-ID: <87DF6FAA07355547BF8C66F496510EC718459F@corpmx1.ctronsoft.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: xsltSetTransformErrorFunc Thread-Index: AcUJcLzxREO/6RMEQqqn4TvA3eIImQ== From: To: X-OriginalArrivalTime: 02 Feb 2005 21:47:05.0520 (UTC) FILETIME=[BC9B2B00:01C50970] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, hits=2.6 tagged_above=2.0 required=5.0 tests=BAYES_01, HTML_50_60, HTML_MESSAGE, NO_REAL_NAME, TRACKER_ID X-Spam-Level: ** Subject: [xslt] xsltSetTransformErrorFunc X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 21:47:08 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C50970.BD4EBB66 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, =20 Just wondering how to be able to set the xsltSetTransformErrorFunc to = redirect the transformation errors to another FILE not stderr. I've been = trying to figure it out but still can't redirect the following =20 xmlXPathCompOpEval: function test not found XPath error : Unregistered function =20 any help is much appreciated. thanks! =20 =20 =20 ------_=_NextPart_001_01C50970.BD4EBB66 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello=20 all,
 
Just = wondering how=20 to be able to set the xsltSetTransformErrorFunc to redirect the = transformation=20 errors to another FILE not stderr. I've been trying to figure it out but = still=20 can't redirect the following
 
xmlXPathCompOpEval:=20 function test not found
XPath error : Unregistered=20 function
 
any = help is much=20 appreciated. thanks!
 
 
 
------_=_NextPart_001_01C50970.BD4EBB66-- From joost@snow.nl Fri Feb 4 05:08:42 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 402EF3B074B for ; Fri, 4 Feb 2005 05:08:42 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04952-04 for ; Fri, 4 Feb 2005 05:08:39 -0500 (EST) Received: from neerijnen.snow.nl (neerijnen.snow.nl [212.72.238.6]) by menubar.gnome.org (Postfix) with ESMTP id DFAE03B18D1 for ; Fri, 4 Feb 2005 05:08:34 -0500 (EST) Received: (from nobody@localhost) by neerijnen.snow.nl (8.8.8/8.6.9) id MAA20536 for ; Fri, 4 Feb 2005 12:17:00 GMT Received: by neerijnen.snow.nl via recvmail id 20465; Fri Feb 4 12:16:04 2005 Received: from localhost (localhost [127.0.0.1]) by intern.snow.nl (Postfix) with ESMTP id F22CC1C00087 for ; Fri, 4 Feb 2005 11:07:45 +0100 (CET) Date: Fri, 04 Feb 2005 11:16:27 +0100 (CET) Message-Id: <20050204.111627.08316277.joost@snow.nl> To: xslt@gnome.org From: Joost Helberg X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] issue X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 10:08:42 -0000 ls, I try to retrieve the title from an XHTML document using a stylesheet. Using xsltproc from libxslt-2.6.17 I get no result in case the opening html-element contains a xmlns spec: when I remove the xmlns declaration, the title is correctly printed. I expected that in both cases the title should appear. Can anyone explain what I'm doing wrong? Joost Helberg Both stylesheet and example HTML file are below. Stylesheet: XHTML file: the title bla bla In case xmlns is mentioned, the title is not produced: $ xsltproc y.xsl y.html $ In case the xmlns attribute is removed (simple ), the title appears: $ xsltproc y.xsl y.html the title $ Regards, Joost Helberg -- Joost Helberg Snow B.V. http://snow.nl Tel 0418-653333 Fax 0418-653666 Voorzitter VOSN http://www.vosn.nl Tel 0418-653336 Fax 0418-653666 From veillard@redhat.com Fri Feb 4 05:29:09 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4BD713B198E for ; Fri, 4 Feb 2005 05:29:09 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06753-06 for ; Fri, 4 Feb 2005 05:29:06 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 850F23B19A6 for ; Fri, 4 Feb 2005 05:28:41 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j14ASfiX013730 for ; Fri, 4 Feb 2005 05:28:41 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j14ASfO20905 for ; Fri, 4 Feb 2005 05:28:41 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j14ASfCE001842 for ; Fri, 4 Feb 2005 05:28:41 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j14ASeNS001839 for xslt@gnome.org; Fri, 4 Feb 2005 05:28:40 -0500 Date: Fri, 4 Feb 2005 05:28:40 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] issue Message-ID: <20050204102840.GA25910@redhat.com> References: <20050204.111627.08316277.joost@snow.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050204.111627.08316277.joost@snow.nl> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 10:29:09 -0000 On Fri, Feb 04, 2005 at 11:16:27AM +0100, Joost Helberg wrote: > ls, > > I try to retrieve the title from an XHTML document using a > stylesheet. > Using xsltproc from libxslt-2.6.17 I get no result in case the opening > html-element contains a xmlns spec: > > > > when I remove the xmlns declaration, the title is correctly printed. > > I expected that in both cases the title should appear. > > Can anyone explain what I'm doing wrong? won't match an xhtml:title or title in a default namespace. It's The most frequently asked question about the XPath spec. You must use with a proper xhtml namespace prefix definition to catch those. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From joost@snow.nl Fri Feb 4 05:55:05 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7EE93B1828 for ; Fri, 4 Feb 2005 05:55:02 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08023-06 for ; Fri, 4 Feb 2005 05:55:00 -0500 (EST) Received: from neerijnen.snow.nl (neerijnen.snow.nl [212.72.238.6]) by menubar.gnome.org (Postfix) with ESMTP id B61CE3B079E for ; Fri, 4 Feb 2005 05:54:49 -0500 (EST) Received: (from nobody@localhost) by neerijnen.snow.nl (8.8.8/8.6.9) id NAA23742; Fri, 4 Feb 2005 13:03:16 GMT Received: by neerijnen.snow.nl via recvmail id 23674; Fri Feb 4 13:02:52 2005 Received: from localhost (localhost [127.0.0.1]) by intern.snow.nl (Postfix) with ESMTP id C46891C00087; Fri, 4 Feb 2005 11:54:34 +0100 (CET) Date: Fri, 04 Feb 2005 12:03:15 +0100 (CET) Message-Id: <20050204.120315.11388395.joost@snow.nl> To: veillard@redhat.com, xslt@gnome.org Subject: Re: [xslt] issue From: Joost Helberg In-Reply-To: <20050204102840.GA25910@redhat.com> References: <20050204.111627.08316277.joost@snow.nl> <20050204102840.GA25910@redhat.com> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 10:55:05 -0000 Daniel, Thanks, this helps! Joost >>>>> "Daniel" == Daniel Veillard writes: > Subject: Re: [xslt] issue > From: Daniel Veillard > To: The Gnome XSLT library mailing-list > Date: Fri, 4 Feb 2005 05:28:40 -0500 > On Fri, Feb 04, 2005 at 11:16:27AM +0100, Joost Helberg wrote: >> ls, >> >> I try to retrieve the title from an XHTML document using a >> stylesheet. >> Using xsltproc from libxslt-2.6.17 I get no result in case the opening >> html-element contains a xmlns spec: >> >> >> >> when I remove the xmlns declaration, the title is correctly printed. >> >> I expected that in both cases the title should appear. >> >> Can anyone explain what I'm doing wrong? > > won't match an xhtml:title or title in a default namespace. It's > The most frequently asked question about the XPath spec. You must > use > > with a proper xhtml namespace prefix definition to catch those. > Daniel > -- > Daniel Veillard | Red Hat Desktop team http://redhat.com/ > veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ > http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ > _______________________________________________ > xslt mailing list, project page http://xmlsoft.org/XSLT/ > xslt@gnome.org > http://mail.gnome.org/mailman/listinfo/xslt -- Joost Helberg Snow B.V. http://snow.nl Tel 0418-653333 Fax 0418-653666 Voorzitter VOSN http://www.vosn.nl Tel 0418-653336 Fax 0418-653666 From astra@uni-paderborn.de Thu Feb 3 14:59:58 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 504123B0A4D for ; Thu, 3 Feb 2005 14:59:58 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21662-09 for ; Thu, 3 Feb 2005 14:59:56 -0500 (EST) Received: from mailgate.uni-paderborn.de (mailgate.uni-paderborn.de [131.234.22.32]) by menubar.gnome.org (Postfix) with ESMTP id 5F6AF3B16D6 for ; Thu, 3 Feb 2005 14:59:56 -0500 (EST) Received: from dsl-082-083-176-011.arcor-ip.net ([82.83.176.11] helo=[192.168.0.100]) by mailgate.uni-paderborn.de with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.43) id 1Cwn8V-0006fR-M9 for xslt@gnome.org; Thu, 03 Feb 2005 20:59:32 +0100 Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: The Gnome XSLT library mailing-list From: Thomas Date: Thu, 3 Feb 2005 20:59:23 +0100 X-Mailer: Apple Mail (2.619.2) X-UNI-PB_FAK-EIM-MailScanner-Information: Please see http://imap.uni-paderborn.de for details X-UNI-PB_FAK-EIM-MailScanner: Found to be clean X-UNI-PB_FAK-EIM-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.208, required 4, AUTH_EIM_USER -5.00, RCVD_IN_NJABL_DUL 1.66, RCVD_IN_SORBS_DUL 0.14) X-MailScanner-From: astra@uni-paderborn.de X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Fri, 04 Feb 2005 16:14:09 -0500 Subject: [xslt] problems resolving external entities X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 19:59:58 -0000 Hi there! I have a problem with libxslt/libxml and loading external entites on OSX. My function is not called at all and I get I/O errors when loading the stylesheets. XML/XSLT Versions are: xml=2.6.11, xslt=1.1.8 The same code seems to work on sarge for example with the same versions of libxml and libxslt. Any hints appreciated, Thanx in advance, ::Thomas My code is: xmlSetExternalEntityLoader(steamExternalEntityLoader); and: xmlParserInputPtr steamExternalEntityLoader(const char *URL, const char *ID, xmlParserCtxtPtr ctxt) { fprintf(stderr, "steamExternalLoader(%s)\n", URL); .... } From joelwreed@comcast.net Sat Feb 5 23:15:45 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 513FA3B0A5F for ; Sat, 5 Feb 2005 23:15:45 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32308-06 for ; Sat, 5 Feb 2005 23:15:44 -0500 (EST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by menubar.gnome.org (Postfix) with ESMTP id AB1633B09AC for ; Sat, 5 Feb 2005 23:15:43 -0500 (EST) Received: from earendil (c-24-3-111-37.client.comcast.net[24.3.111.37]) by comcast.net (rwcrmhc11) with SMTP id <2005020604154201300k59bde>; Sun, 6 Feb 2005 04:15:42 +0000 Date: Sat, 5 Feb 2005 23:15:13 -0500 From: Joel Reed To: xslt@gnome.org Message-ID: <20050206041512.GA9621@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] [patch]wiki api docs for libxslt X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 04:15:45 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline here's the corresponding libxslt wiki patch. the libxml2 docs have been loaded into http://xmlsoft.org/wiki/index.php?title=Libxml2:Api comments, suggested improvements are welcome. jr --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="wiki.2.patch" diff -up -urN -X /home/jreed/src/lm-4.0/lm/do-not-diff libxslt-1.1.12-orig/doc/Makefile.am libxslt-1.1.12/doc/Makefile.am --- libxslt-1.1.12-orig/doc/Makefile.am 2004-10-18 11:26:55.000000000 -0400 +++ libxslt-1.1.12/doc/Makefile.am 2005-02-05 23:01:56.000000000 -0500 @@ -122,6 +122,11 @@ html/index.html: libxslt-api.xml $(srcdi echo "Validating the resulting XHTML pages" ; \ $(bindir)/xmllint --nonet --valid --noout html/*.html ; fi ); +wiki: libxslt-api.xml $(srcdir)/wiki.xsl + -@(if [ -x $(bindir)/xsltproc ] ; then \ + echo "Rebuilding the wiki HTML pages from the XSLT API" ; \ + $(bindir)/xsltproc --nonet $(srcdir)/wiki.xsl libxslt-api.xml; fi ) + EXSLT/html/index.html: EXSLT/libexslt-api.xml \ $(srcdir)/newapi.xsl -@(if [ -x $(bindir)/xsltproc ] ; then \ diff -up -urN -X /home/jreed/src/lm-4.0/lm/do-not-diff libxslt-1.1.12-orig/doc/wiki.xsl libxslt-1.1.12/doc/wiki.xsl --- libxslt-1.1.12-orig/doc/wiki.xsl 1969-12-31 19:00:00.000000000 -0500 +++ libxslt-1.1.12/doc/wiki.xsl 2005-02-05 21:18:56.000000000 -0500 @@ -0,0 +1,589 @@ + + + + + + + + + + + + wiki + ../ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+    #define 
+    
+
+ + +
+    Variable 
+    
+      
+    
+     
+    
+    
+    
+
+
+    
+
+ + + +
+    
+      
+	Enum 
+	
+	
+
+      
+      
+	Typedef 
+	
+	  
+	
+	 
+	
+	
+
+      
+    
+    
+
+ + + +

Enum

+
+      Enum 
+      
+       {
+
+      
+        
+            
+        
+         = 
+        
+        
+	   : 
+	  
+	    
+	  
+        
+        
+
+      
+      }
+
+    
+
+ + +
+    Structure 
+ + + + The content of this structure is not made public by the API. + + +
+
+ + +

Structure

+
+    Structure 
+ { + + + The content of this structure is not made public by the API. + + + + + + + + + + + : + + + + + + + + } +
+
+ + + +

Macro:

+
#define 
+

+ + + +

+ +
+ + + + + + +
+    
+      
+    
+    	
+    
+    
+      	
+    
+    
+      	
+    
+    	(
+    
+      void
+    
+    
+      
+        
+      
+       
+      
+      
+        , 
+ + + + + + + +
+
+ ) +
+ +
+ + + + + + +
+    Function type: 
+    
+    
+
+    
+      
+    
+    	
+    
+    
+      	
+    
+    
+      	
+    
+    	(
+    
+      void
+    
+    
+      
+        
+      
+       
+      
+      
+        , 
+ + + + + + + +
+
+ ) + +
+ + +
+ + + + + + +

+ + Function type: + +

+
+    Function type: 
+    
+    
+
+    
+      
+    
+    	
+    
+    
+      	
+    
+    
+      	
+    
+    	(
+    
+      void
+    
+    
+      
+        
+      
+       
+      
+      
+        , 
+ + + + + + + +
+
+ ) + +
+

+ + + +

+ +
+ + + + + + + + + + + + +
: + + + +
Returns: + + + +
+
+
+ + +
+ + + + + + +

Function:

+
+    
+      
+    
+    	
+    
+    
+      	
+    
+    
+      	
+    
+    	(
+    
+      void
+    
+    
+      
+        
+      
+       
+      
+      
+        , 
+ + + + + + + +
+
+ )
+ + +
+

+ + + +

+ + +
+ + + + + + + + + + + + +
: + + + +
Returns: + + + +
+
+
+ + + + + + + + + + + +

This module is deprecated

+
+ +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + Module from + + + + + + + +
+ + + +
+

Table of Contents

+ +

Description

+ + + +
+
+ +

Table of Contents

+ + + + + + + + + + + + + + + +

Description

+ + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + +
+ +

+
+ + + + Reference Manual for + + + + + + + +
+ +
+
+
+ + + + + + + + +
--SUOF0GtieIMvvwua-- From joelwreed@comcast.net Sun Feb 6 20:07:25 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3ACE3B0A07 for ; Sun, 6 Feb 2005 20:07:24 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05824-01 for ; Sun, 6 Feb 2005 20:07:23 -0500 (EST) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by menubar.gnome.org (Postfix) with ESMTP id D1BB93B0F97 for ; Sun, 6 Feb 2005 20:03:51 -0500 (EST) Received: from earendil (c-24-3-111-37.client.comcast.net[24.3.111.37]) by comcast.net (rwcrmhc12) with SMTP id <200502070103500140038u9ee>; Mon, 7 Feb 2005 01:03:50 +0000 Date: Sun, 6 Feb 2005 20:03:12 -0500 From: Joel Reed To: xslt@gnome.org Message-ID: <20050207010312.GA14353@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] [patch]fix make dist bug X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 01:07:25 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline testplugin.c is not included in current cvs snapshots on xmlsoft.org. it seems make dist was not correctly handling the AM conditional in tests/plugins/Makefile.am. the patch below fixes this such that dist tarballs include testplugin.c jr --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="make-dist-fix.patch" --- libxslt-1.1.12-orig/tests/plugins/Makefile.am 2005-01-20 23:27:16.000000000 -0500 +++ libxslt-1.1.12/tests/plugins/Makefile.am 2005-02-06 19:34:05.000000000 -0500 @@ -9,15 +9,16 @@ $(top_builddir)/xsltproc/xsltproc: EXTRA_DIST = plugin.out plugin.xml plugin.xsl -all: - -if WITH_MODULES pkglib_LTLIBRARIES = xmlsoft_org_xslt_testplugin.la xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version $(LIBXML_LIBS) $(XSLT_LIBS) +all: + +if WITH_MODULES + test-logall: @echo '## Running plugin tests' @echo '## Note: installing xmlsoft_org_xslt_testplugin.so' --HlL+5n6rz5pIUxbD-- From roeland.muys@dsoft.be Mon Feb 7 13:01:39 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BE56B3B119C for ; Mon, 7 Feb 2005 13:01:39 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30236-01 for ; Mon, 7 Feb 2005 13:01:37 -0500 (EST) Received: from olympus.dsoft.be (d5152CB14.access.telenet.be [81.82.203.20]) by menubar.gnome.org (Postfix) with ESMTP id 713E23B11C6 for ; Mon, 7 Feb 2005 13:01:34 -0500 (EST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 7 Feb 2005 19:00:16 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <0728B7E65FD8804BAC6C0BC1379F1F5F48285A@olympus.dsoft.be> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: xslt MD dlls and other MT dll thread-index: AcUNPuBScuHCeniGTDeoYvPcJ+Vwrg== From: "Roeland Muys" To: X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] xslt MD dlls and other MT dll X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 18:01:39 -0000 How can I statically link and combine without crashes or errors? It concerns a redistributable application (VC++ in Visual Studio 7) so the project statically links with MFC and also with another library, say MT. MT was built using the /MT option and so is the main project. If I wish to include some xsltproc-like code and link with the xslt dlls, I get linking errors and I presume that is because the dlls are /MD? I was wondering if it is possible to combine /MD dlls and /MT dlls into a single exe. How can I do that, what are the pitfalls or experiences, or what would be the best alternative? From joelwreed@comcast.net Mon Feb 7 13:19:58 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6B5D33B0CE0 for ; Mon, 7 Feb 2005 13:19:58 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31456-05 for ; Mon, 7 Feb 2005 13:19:56 -0500 (EST) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by menubar.gnome.org (Postfix) with ESMTP id 75A6B3B1226 for ; Mon, 7 Feb 2005 13:19:15 -0500 (EST) Received: from earendil (c-24-3-111-37.client.comcast.net[24.3.111.37]) by comcast.net (sccrmhc12) with SMTP id <2005020718191401200g9bkle>; Mon, 7 Feb 2005 18:19:15 +0000 Date: Mon, 7 Feb 2005 13:18:39 -0500 From: Joel Reed To: The Gnome XSLT library mailing-list Subject: Re: [xslt] xslt MD dlls and other MT dll Message-ID: <20050207181838.GA22266@comcast.net> References: <0728B7E65FD8804BAC6C0BC1379F1F5F48285A@olympus.dsoft.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0728B7E65FD8804BAC6C0BC1379F1F5F48285A@olympus.dsoft.be> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 18:19:58 -0000 On Mon, Feb 07, 2005 at 07:00:16PM +0100, Roeland Muys wrote: > How can I statically link and combine without crashes or errors? > > It concerns a redistributable application (VC++ in Visual Studio 7) so > the project statically links with MFC and also with another library, say > MT. MT was built using the /MT option and so is the main project. > > If I wish to include some xsltproc-like code and link with the xslt > dlls, I get linking errors and I presume that is because the dlls are > /MD? correct. > I was wondering if it is possible to combine /MD dlls and /MT dlls into > a single exe. How can I do that, what are the pitfalls or experiences, > or what would be the best alternative? afaik, combining libraries with /MD and /MT into a single exe will only cause trouble (if you can jigger the compiler enough to even get it to link). compile everything with the same flags. NOTE: only cvs libxslt has a working xsltproc when libxslt is compiled with /MT. when using /MT you must link to libxslt_a.lib jr From frans.englich@telia.com Wed Feb 9 11:42:39 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 78F7E3B0669 for ; Wed, 9 Feb 2005 11:42:38 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27510-05 for ; Wed, 9 Feb 2005 11:42:35 -0500 (EST) Received: from mailfe06.swip.net (mailfe06.swip.net [212.247.154.161]) by menubar.gnome.org (Postfix) with ESMTP id BC4053B082B for ; Wed, 9 Feb 2005 11:42:33 -0500 (EST) X-T2-Posting-ID: 2yF4ydxc0UI9xI7FHZPfog== Received: from 83.72.134.122.ip.tele2adsl.dk ([83.72.134.122] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 4.2.7) with ESMTP id 288651410 for xslt@gnome.org; Wed, 09 Feb 2005 17:42:32 +0100 From: Frans Englich To: Date: Wed, 9 Feb 2005 16:50:20 +0000 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502091650.20629.frans.englich@telia.com> X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] xsltproc's support for decode/encode-uri() not listed on exslt.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 16:42:39 -0000 Hello, To my pleasent surprise I discovered that libxslt have support for exslt's encode/decode-uri() function. But it's not listed on the page: http://www.exslt.org/str/functions/encode-uri/str.encode-uri.html You might want to notify them. Perhaps there's other of libxml2/libxslt's support missing to be mentioned. Cheers, Frans From frans.englich@telia.com Wed Feb 9 15:05:09 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC56C3B17DC for ; Wed, 9 Feb 2005 15:05:08 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06845-07 for ; Wed, 9 Feb 2005 15:05:06 -0500 (EST) Received: from mailfe02.swip.net (mailfe02.swip.net [212.247.154.33]) by menubar.gnome.org (Postfix) with ESMTP id 473833B187E for ; Wed, 9 Feb 2005 15:04:49 -0500 (EST) X-T2-Posting-ID: 2yF4ydxc0UI9xI7FHZPfog== Received: from 83.72.134.122.ip.tele2adsl.dk ([83.72.134.122] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 4.2.7) with ESMTP id 294600020 for xslt@gnome.org; Wed, 09 Feb 2005 21:04:47 +0100 From: Frans Englich To: Date: Wed, 9 Feb 2005 20:12:36 +0000 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502092012.36230.frans.englich@telia.com> X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] What does "Invalid number of arguments" mean? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 20:05:12 -0000 Hello, In my XSLT I get this error message from xsltproc: XPath error : Invalid number of arguments No template, line number, or other identifier. What does it mean? This is the code which I think triggers it: TEST: TEST yes TEST no [...] This is the output, more specifically: TEST: foo TEST yes TEST: playground TEST yes TEST: TEST no XPath error : Invalid number of arguments So, it appears as when the xsl:otherwise clause kicks in, and the recursive function unwinds, the message occurs. What is wrong with the XSLT? If I can make a stripped down test case which triggers this, IMHO, difficult to interpret message, would it be of interest? Cheers, Frans From frans.englich@telia.com Wed Feb 9 15:34:17 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E6723B0770 for ; Wed, 9 Feb 2005 15:34:16 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08199-01 for ; Wed, 9 Feb 2005 15:34:13 -0500 (EST) Received: from mailfe02.swip.net (mailfe02.swip.net [212.247.154.33]) by menubar.gnome.org (Postfix) with ESMTP id 0A1553B06E3 for ; Wed, 9 Feb 2005 15:34:13 -0500 (EST) X-T2-Posting-ID: 2yF4ydxc0UI9xI7FHZPfog== Received: from 83.72.134.122.ip.tele2adsl.dk ([83.72.134.122] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 4.2.7) with ESMTP id 294621770 for xslt@gnome.org; Wed, 09 Feb 2005 21:34:12 +0100 From: Frans Englich To: xslt@gnome.org Subject: Re: [xslt] What does "Invalid number of arguments" mean? Date: Wed, 9 Feb 2005 20:42:00 +0000 User-Agent: KMail/1.5.4 References: <200502092012.36230.frans.englich@telia.com> In-Reply-To: <200502092012.36230.frans.englich@telia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502092042.00451.frans.englich@telia.com> X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 20:34:17 -0000 On Wednesday 09 February 2005 20:12, Frans Englich wrote: > XPath error : Invalid number of arguments Here's what causes it, you won't find it the code in the previous post. A call like this: results in the error. The result file is half written, and when that is encountered, it fails(e.g, not at compile time). The error is that encode-uri takes two arguments, not one. It's also possible to do a mistake like this: Which, similarly, at runtime results in: mlXPathCompOpEval: function False not found XPath error : Unregistered function xmlXPathCompOpEval: parameter error (it should be false() ) Well, perhaps a FYI, Frans From veillard@redhat.com Wed Feb 9 15:51:39 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E1EE03B0705 for ; Wed, 9 Feb 2005 15:51:38 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09122-03 for ; Wed, 9 Feb 2005 15:51:37 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 936353B0880 for ; Wed, 9 Feb 2005 15:51:19 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j19KpJbY016581 for ; Wed, 9 Feb 2005 15:51:19 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j19KpJO26067 for ; Wed, 9 Feb 2005 15:51:19 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j19KpJGZ006589 for ; Wed, 9 Feb 2005 15:51:19 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j19KpJMk006587 for xslt@gnome.org; Wed, 9 Feb 2005 15:51:19 -0500 Date: Wed, 9 Feb 2005 15:51:19 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] [patch]wiki api docs for libxslt Message-ID: <20050209205118.GD16253@redhat.com> References: <20050206041512.GA9621@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050206041512.GA9621@comcast.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 20:51:39 -0000 On Sat, Feb 05, 2005 at 11:15:13PM -0500, Joel Reed wrote: > here's the corresponding libxslt wiki patch. > > the libxml2 docs have been loaded into > http://xmlsoft.org/wiki/index.php?title=Libxml2:Api okidoc, applied the patch, make wiki and copied over in the wiki they should be accessible. thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Wed Feb 9 16:02:11 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C37CE3B0712 for ; Wed, 9 Feb 2005 16:02:11 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09519-01 for ; Wed, 9 Feb 2005 16:02:10 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 2F92C3B0705 for ; Wed, 9 Feb 2005 16:02:10 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j19L298f019548 for ; Wed, 9 Feb 2005 16:02:10 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j19L29O29565 for ; Wed, 9 Feb 2005 16:02:09 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j19L294r012829 for ; Wed, 9 Feb 2005 16:02:09 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j19L29oU012820 for xslt@gnome.org; Wed, 9 Feb 2005 16:02:09 -0500 Date: Wed, 9 Feb 2005 16:02:09 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] [patch]fix make dist bug Message-ID: <20050209210209.GE16253@redhat.com> References: <20050207010312.GA14353@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050207010312.GA14353@comcast.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 21:02:11 -0000 On Sun, Feb 06, 2005 at 08:03:12PM -0500, Joel Reed wrote: > testplugin.c is not included in current cvs snapshots on xmlsoft.org. > it seems make dist was not correctly handling the AM conditional in > tests/plugins/Makefile.am. > > the patch below fixes this such that dist tarballs include testplugin.c okidoc, applied and commited, thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Wed Feb 9 16:04:06 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B0DD03B0712 for ; Wed, 9 Feb 2005 16:04:06 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09519-06 for ; Wed, 9 Feb 2005 16:04:04 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id D435A3B0007 for ; Wed, 9 Feb 2005 16:04:04 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j19L44xx019869 for ; Wed, 9 Feb 2005 16:04:04 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j19L44O30212 for ; Wed, 9 Feb 2005 16:04:04 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j19L44sn013914 for ; Wed, 9 Feb 2005 16:04:04 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j19L44wu013900 for xslt@gnome.org; Wed, 9 Feb 2005 16:04:04 -0500 Date: Wed, 9 Feb 2005 16:04:03 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] What does "Invalid number of arguments" mean? Message-ID: <20050209210403.GF16253@redhat.com> References: <200502092012.36230.frans.englich@telia.com> <200502092042.00451.frans.englich@telia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502092042.00451.frans.englich@telia.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 21:04:06 -0000 On Wed, Feb 09, 2005 at 08:42:00PM +0000, Frans Englich wrote: > On Wednesday 09 February 2005 20:12, Frans Englich wrote: > > > XPath error : Invalid number of arguments > > Here's what causes it, you won't find it the code in the previous post. > > A call like this: > > > results in the error. The result file is half written, and when that is > encountered, it fails(e.g, not at compile time). The error is that encode-uri > takes two arguments, not one. > > It's also possible to do a mistake like this: > > > > Which, similarly, at runtime results in: > > mlXPathCompOpEval: function False not found > XPath error : Unregistered function > xmlXPathCompOpEval: parameter error > > (it should be false() ) you can track those using -v flags, saving the stderr output of xsltproc and search for debug informations around the error output. I'm not sure there is much I can do there. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From joelwreed@comcast.net Thu Feb 10 22:04:54 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B28A93B0813 for ; Thu, 10 Feb 2005 22:04:54 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10627-07 for ; Thu, 10 Feb 2005 22:04:53 -0500 (EST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by menubar.gnome.org (Postfix) with ESMTP id 90CB63B0770 for ; Thu, 10 Feb 2005 22:04:53 -0500 (EST) Received: from earendil (c-24-3-111-37.client.comcast.net[24.3.111.37]) by comcast.net (sccrmhc13) with SMTP id <2005021103045101600ierhse>; Fri, 11 Feb 2005 03:04:51 +0000 Date: Thu, 10 Feb 2005 22:03:59 -0500 From: Joel Reed To: xslt@gnome.org Message-ID: <20050211030359.GA3351@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] wiki documentation ready. future plans? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 03:04:54 -0000 What I would consider "milestone1" of a wiki for libxml2/libxslt is complete and can be viewed at http://xmlsoft.org/wiki/ Milestone1 was about putting the autogenerated API docs on the wiki, such that they could be easily kept up-to-date with API changes while also allowing users to provide comments, improvements, etc. Similiar setups can be found at: http://www.postgresql.org/docs/ http://www.php.net/docs.php In addition to the autogenerated API docs, I added a "Plugin Registry" section at http://xmlsoft.org/wiki/index.php?title=Libxslt:Plugins which is fairly sparse at the moment :-) (btw daniel can we setup downloads for plugins like libxslt-plugin-regexp-0.2.tar.gz off of xmlsoft.org?) Finally, I'm wondering what other things might be useful to have on the wiki. Please let me know if you have any suggestions. I'm also wondering if we'd ever consider having the main xmlsoft.org site be the wiki - moving all documentation to the wiki, but keeping autogenerated API docs and changelog. This could be slightly disruptive, but might make it far easier for a larger group of users/developers to update and maintain the site. Comments? jr From beppler@arano.de Fri Feb 11 03:27:14 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4597E3B0885 for ; Fri, 11 Feb 2005 03:27:14 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22533-08 for ; Fri, 11 Feb 2005 03:27:10 -0500 (EST) Received: from natnoddy.rzone.de (natnoddy.rzone.de [81.169.145.166]) by menubar.gnome.org (Postfix) with ESMTP id 2B9CF3B06B6 for ; Fri, 11 Feb 2005 03:27:10 -0500 (EST) Received: from aranoserver (pD95B2B04.dip0.t-ipconnect.de [217.91.43.4]) by post.webmailer.de (8.13.1/8.13.1) with SMTP id j1B8R7Gs003222 for ; Fri, 11 Feb 2005 09:27:08 +0100 (MET) X-KENId: 000006E7KEN1D672DBB X-KENRelayed: 000006E7KEN1D672DBB@aranoserver Received: from 192.168.10.203:1221 by KEN! (192.168.10.1:25) with SMTP ; Fri, 11 Feb 2005 09:35:49 +0100 Date: Fri, 11 Feb 2005 09:27:32 +0100 From: Andreas Beppler Subject: Re: [xslt] create Directory bug in libxslt for W32 To: xslt@gnome.org Message-Id: <420C6C74.9040005@arano.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 08:27:14 -0000 Hello, just to go back to the original question of thomas for a short moment: What can I do to get windows binaries of xsltproc without the bug? Is any further information needed to correct the problem? Thanks for any help, Andreas Aleksey Gurtovoy writes: > Daniel Veillard writes: > > On Tue, Nov 30, 2004 at 03:10:38PM -0600, Aleksey Gurtovoy wrote: > > > Thomas Fischer writes: > > > > Hi folks, > > > > i found a bug in libxslt and Daniel Veillard told me, that's > > > > a win only bug and he can't help :o< > > > > > > > > The Bug occurs, when i try to create a directory via command > > > > line parameter --output (like "xsltproc -o does_not_exist/res > > > > > ...") > > > > or via > > > > > > > Anybody knows a workaround or patch for this problem? > > > > > > See the attachments for the latter (against the current CVS). > > > > I do not understand the first patch nor the associated > > side effects. On windows the file path separator is '\' why is this > > wrong and need to be removed. > > I agree that the patch is a little controversial, but only due to the > fact > that 'xmlParserGetDirectory' is used to extract directory paths from > both > URI/URLs _and_ file system paths. For the former the running platform > is > irrelevant; for the latter it's not (obviously). I'm not that > familiar with > the libxslt/libxml2 codebase to be able to say in how many cases when > a > function is passed a 'filename' argument it actually _is_ a native > filesystem path (as opposite to a URL), but I assume that at least > some > of them are. Of course you're in much better position to answer this. > > In any case, my take on the issue is that, ideally, all current calls > to 'xmlParserGetDirectory' should become calls to either > 'xmlParserGetURIDirectory' or 'xmlParserGetFileDirectory' (both > currently > non-existent), the latter differing from the former in that it would > respect the running platform's conventions. > > Does it make sense to you? > > > Moving the stat() remapping to the place where it is used makes > > sense > > to me, so that one will be applied, thanks, > > You're welcome! > -- Dipl.-Phys. Andreas Beppler ARANO GmbH Hauptstraße 10 D-35579 Wetzlar (Steindorf) e-mail: beppler@arano.de Telephone: +49 6441 210 21-15 Fax: +49 6441 210 21-25 From veillard@redhat.com Fri Feb 11 05:06:12 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FCBD3B09A5 for ; Fri, 11 Feb 2005 05:06:09 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27504-06 for ; Fri, 11 Feb 2005 05:06:06 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 6A6303B06C9 for ; Fri, 11 Feb 2005 05:06:06 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1BA65pY000829 for ; Fri, 11 Feb 2005 05:06:05 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1BA65O07321 for ; Fri, 11 Feb 2005 05:06:05 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1BA65eB000913 for ; Fri, 11 Feb 2005 05:06:05 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1BA65Nd000911 for xslt@gnome.org; Fri, 11 Feb 2005 05:06:05 -0500 Date: Fri, 11 Feb 2005 05:06:05 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] wiki documentation ready. future plans? Message-ID: <20050211100605.GE16828@redhat.com> References: <20050211030359.GA3351@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050211030359.GA3351@comcast.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 10:06:12 -0000 On Thu, Feb 10, 2005 at 10:03:59PM -0500, Joel Reed wrote: > (btw daniel can we setup downloads for plugins like > libxslt-plugin-regexp-0.2.tar.gz off of xmlsoft.org?) done ftp://xmlsoft.org/plugins/ > Finally, I'm wondering what other things might be useful > to have on the wiki. Please let me know if you have any > suggestions. - FAQ especially the XPath "foo" doesn't match foo element in a default namespace. - code examples ? > I'm also wondering if we'd ever consider having the main > xmlsoft.org site be the wiki - moving all documentation > to the wiki, but keeping autogenerated API docs and changelog. > This could be slightly disruptive, but might make it far > easier for a larger group of users/developers to update > and maintain the site. Comments? the wiki is a bit slow to serve page, also the search engine doesn't seem to work, and I still want the source to remain the primary place where the code documentation goes. The wiki is fine for user comments and examples though. So at this point switching sounds premature to me. Also we web site is in CVS, in case of disaster rebuilding the site is a CVs checkout, I can't garantee that level of service with pages served from the MySQL database. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From matt.pichette@gmail.com Fri Feb 11 10:44:22 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 83EF63B0A11 for ; Fri, 11 Feb 2005 10:44:22 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16702-08 for ; Fri, 11 Feb 2005 10:44:20 -0500 (EST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by menubar.gnome.org (Postfix) with ESMTP id A84C03B0A5D for ; Fri, 11 Feb 2005 10:44:20 -0500 (EST) Received: by rproxy.gmail.com with SMTP id g11so560203rne for ; Fri, 11 Feb 2005 07:44:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=O87BWreBdkx6GpjEivMcuFEBaERwisOo8pTlhpZmK+D5jER5CbyqUWrxZY5WuVjHeaT00MAaY3qnUNl4JuceDQOhXuQlEgQblnOlA2SBC1een8wpelIhU2InIphObVf/7Zw4bcMRCkohreA3JhkO1LESp7+RTThb5X8P6Q/I/X8= Received: by 10.38.161.56 with SMTP id j56mr134250rne; Fri, 11 Feb 2005 07:44:20 -0800 (PST) Received: by 10.38.74.53 with HTTP; Fri, 11 Feb 2005 07:44:20 -0800 (PST) Message-ID: <24e67e090502110744111ae29d@mail.gmail.com> Date: Fri, 11 Feb 2005 11:44:20 -0400 From: Matt Pichette To: xslt@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] Compile error on AIX 5.2 - libxslt-1.1.12 X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matt Pichette , The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 15:44:22 -0000 I'm having a compile error on AIX 5.2. I've built and configured libxml with iconv support and pointed it to /usr. No problems on that compile. When I try to compile with libxslt it chokes on libexslt/date.c referring to a section in encoding.h which has a and ifdef'd section in a struct for iconv support. Any ideas? A member posted the same problem before but there wasn't a response... gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include -I/fs2_dev.mpichett/provls/vsync/lib/include/libxml2 -I/usr/include -g -O2 -Wall -g -O2 -Wall -c date.c -Wp,-MD,.deps/date.TPlo -DPIC -o .libs/date.o In file included from /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/parser.h:796, from /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/globals.h:18, from /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/threads.h:35, from /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/xmlmemory.h:216, from /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/tree.h:1121, from date.c:35: /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:136: parse error before `iconv_t' /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:136: warning: no semicolon at end of struct or union /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:137: warning: type defaults to `int' in declaration of `iconv_out' /fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:137: warning: data definition has no type or storage class date.c: In function `exsltDateCurrent': date.c:764: warning: implicit declaration of function `localtime_r' date.c:783: warning: implicit declaration of function `gmtime_r' make[2]: *** [date.lo] Error 1 make[2]: Leaving directory `/d1/p4/fs2_dev.mpichett.aixvid3/provls/vsync/lib/libxslt-1.1.12/libexslt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/d1/p4/fs2_dev.mpichett.aixvid3/provls/vsync/lib/libxslt-1.1.12' make: *** [all] Error 2 [aixvid3:/fs2_dev.mpichett:mpichett]:/fs2_dev.mpichett/provls/vsync/lib/libxslt-1.1.12 The section of encoding.h it chokes on is included below: typedef xmlCharEncodingHandler *xmlCharEncodingHandlerPtr; struct _xmlCharEncodingHandler { char *name; xmlCharEncodingInputFunc input; xmlCharEncodingOutputFunc output; #ifdef LIBXML_ICONV_ENABLED iconv_t iconv_in; iconv_t iconv_out; #endif /* LIBXML_ICONV_ENABLED */ }; -- The secret of genius is to carry the spirit of the child into old age, which means never losing your enthusiasm. --Aldous Huxley From joelwreed@comcast.net Fri Feb 11 12:28:26 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B4153B0BED for ; Fri, 11 Feb 2005 12:28:26 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23505-02 for ; Fri, 11 Feb 2005 12:28:24 -0500 (EST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by menubar.gnome.org (Postfix) with ESMTP id 24B7F3B0E78 for ; Fri, 11 Feb 2005 12:28:23 -0500 (EST) Received: from earendil (c-24-3-111-37.client.comcast.net[24.3.111.37]) by comcast.net (sccrmhc13) with SMTP id <2005021117282201600ihsree>; Fri, 11 Feb 2005 17:28:22 +0000 Date: Fri, 11 Feb 2005 12:27:28 -0500 From: Joel Reed To: veillard@redhat.com, The Gnome XSLT library mailing-list Subject: Re: [xslt] wiki documentation ready. future plans? Message-ID: <20050211172727.GA5180@comcast.net> References: <20050211030359.GA3351@comcast.net> <20050211100605.GE16828@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050211100605.GE16828@redhat.com> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at gnome.org Cc: X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 17:28:26 -0000 On Fri, Feb 11, 2005 at 05:06:05AM -0500, Daniel Veillard wrote: > On Thu, Feb 10, 2005 at 10:03:59PM -0500, Joel Reed wrote: > > (btw daniel can we setup downloads for plugins like > > libxslt-plugin-regexp-0.2.tar.gz off of xmlsoft.org?) > > done > > ftp://xmlsoft.org/plugins/ cool. fixed up wiki link to point to above URL. > > > Finally, I'm wondering what other things might be useful > > to have on the wiki. Please let me know if you have any > > suggestions. > > - FAQ especially the XPath "foo" doesn't match foo element in > a default namespace. > - code examples ? ok, started FAQ: http://xmlsoft.org/wiki/index.php?title=Libxslt:FAQ code examples: can anyone on this list add some? http://xmlsoft.org/wiki/index.php?title=Libxslt:Code > > I'm also wondering if we'd ever consider having the main > > xmlsoft.org site be the wiki - moving all documentation > > to the wiki, but keeping autogenerated API docs and changelog. > > This could be slightly disruptive, but might make it far > > easier for a larger group of users/developers to update > > and maintain the site. Comments? > > the wiki is a bit slow to serve page, also the search engine doesn't > seem to work, and I still want the source to remain the primary place > where the code documentation goes. The wiki is fine for user comments > and examples though. So at this point switching sounds premature to me. > Also we web site is in CVS, in case of disaster rebuilding the site is > a CVs checkout, I can't garantee that level of service with pages > served from the MySQL database. i'm surprised to that wiki seems a bit slow. haven't experienced this locally. anyway i agree for now to keep as is and see where it goes. jr From joelwreed@comcast.net Sun Feb 13 22:16:58 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 19E273B07FA for ; Sun, 13 Feb 2005 22:16:58 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31354-04 for ; Sun, 13 Feb 2005 22:16:56 -0500 (EST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by menubar.gnome.org (Postfix) with ESMTP id 94DD13B0675 for ; Sun, 13 Feb 2005 22:16:55 -0500 (EST) Received: from earendil (c-24-3-111-37.client.comcast.net[24.3.111.37]) by comcast.net (sccrmhc11) with SMTP id <2005021403165101100e0kqpe>; Mon, 14 Feb 2005 03:16:51 +0000 Date: Sun, 13 Feb 2005 22:16:38 -0500 From: Joel Reed To: xslt@gnome.org Message-ID: <20050214031637.GA19538@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] regexp-plugin and format:date plugin X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 03:16:58 -0000 I've uploaded: http://home.comcast.net/~joelwreed/libxslt-plugin-regexp-0.3.tar.gz http://home.comcast.net/~joelwreed/libxslt-plugin-dates-and-times-0.1.tar.gz The regexp plugin version 0.3 adds support for windows. The dates-and-times plugin implements format:date, using libgcj - thus not suitable for inclusion in libexslt. Currently, the plugin includes date parsing code copied from libexslt/date.c. If we had a exsltInternals.h this code could be removed. But I'm not sure if this worth it for just this plugin. dv, could you drop these into the ftp://xmlsoft.org/plugins/ directory? i hope to make a plugin-sumo tarball, add some docs, make a spec file, and work on some new plugins, etc. but first i need to do my taxes :( jr From vincent+gnome@vinc17.org Mon Feb 14 08:35:05 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 104733B0B40 for ; Mon, 14 Feb 2005 08:35:05 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32517-08 for ; Mon, 14 Feb 2005 08:35:03 -0500 (EST) Received: from ay.vinc17.org (vinc17.net4.nerim.net [62.212.121.106]) by menubar.gnome.org (Postfix) with ESMTP id AE47C3B0A54 for ; Mon, 14 Feb 2005 08:35:02 -0500 (EST) Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1D0gNR-0008NK-Dh; Mon, 14 Feb 2005 14:35:01 +0100 Date: Mon, 14 Feb 2005 14:35:01 +0100 From: Vincent Lefevre To: xslt@gnome.org Message-ID: <20050214133501.GB24076@ay.vinc17.org> Mail-Followup-To: xslt@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.7-vl-20050209i X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] Indentation with X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 13:35:05 -0000 Hi, I don't understand how indentation is done with . Perhaps a bug? *** test.xml: *** test.xsl: Here's what I get (Linux, Debian/unstable): dixsept:~> xsltproc test.xsl test.xml I wonder why I don't get the same form as with xmllint --format: dixsept:~> xsltproc test.xsl test.xml | xmllint --format - -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA From mlh@idi.ntnu.no Mon Feb 14 09:33:44 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DCEAE3B0D5C for ; Mon, 14 Feb 2005 09:33:44 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03492-01 for ; Mon, 14 Feb 2005 09:33:43 -0500 (EST) Received: from pil.idi.ntnu.no (pil.idi.ntnu.no [129.241.107.93]) by menubar.gnome.org (Postfix) with ESMTP id B28883B080F for ; Mon, 14 Feb 2005 09:33:42 -0500 (EST) Received: from selje.idi.ntnu.no (IDENT:22955@selje.idi.ntnu.no [129.241.107.78]) by pil.idi.ntnu.no (8.13.1/8.13.1) with ESMTP id j1EEXePY015566 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Mon, 14 Feb 2005 15:33:41 +0100 (MET) Received: (from mlh@localhost) by selje.idi.ntnu.no (8.12.10/8.12.9/Submit) id j1EEXen1015716 for xslt@gnome.org; Mon, 14 Feb 2005 15:33:40 +0100 (MET) Date: Mon, 14 Feb 2005 15:33:40 +0100 From: Magnus Lie Hetland To: xslt@gnome.org Message-ID: <20050214143340.GA15482@idi.ntnu.no> Mail-Followup-To: xslt@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Virus-Scanned-By: mimedefang.idi.ntnu.no, using FSAV X-SMTP-From: Sender=, Relay/Client=selje.idi.ntnu.no [129.241.107.78], EHLO=selje.idi.ntnu.no X-Scanned-By: MIMEDefang 2.48 on 129.241.107.38 X-Scanned-By: mimedefang.idi.ntnu.no, using MIMEDefang 2.48 with local filter 16.42-idi X-Filter-Time: 2 seconds X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] XSLT patterns without transformations? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 14:33:45 -0000 Hi! I'm writing an application that's building document trees, and I need to use XSLT patterns (or something similar) so the user can specify various predicate that apply (or not) to any given node in the tree. In other words: I have a document tree, a predicate (in the form of a string), and a node, and I want to check whether the predicate (e.g., an XSLT pattern) is true for the given node. After realising that the xpath and pattern support in libxml probably wasn't what I was looking for (the patterns there are a bit too restricted; i.e., they are XML Schema patterns, not XSLT patterns) I've looked at the libxslt module pattern.c -- but I'm not quite sure how to use it on its own... How do I create the required xsltTransformContext when I don't have any transformations going on? And... Which parts are actually public? (This may be a problem with my installation, but I can find xsltMatchPattern() in the .h-file, but not in the library itself, so I get linker problems if I try to use it.) Any help would, of course, be greatly appreciated. Thanks, - Magnus -- Magnus Lie Hetland Fallen flower I see / Returning to its branch http://hetland.org Ah! a butterfly. [Arakida Moritake] From roeland.muys@dsoft.be Mon Feb 14 10:12:54 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 526153B129A for ; Mon, 14 Feb 2005 10:12:54 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05816-04 for ; Mon, 14 Feb 2005 10:12:51 -0500 (EST) Received: from olympus.dsoft.be (d5152CB14.access.telenet.be [81.82.203.20]) by menubar.gnome.org (Postfix) with ESMTP id 0F3083B1428 for ; Mon, 14 Feb 2005 10:12:48 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Feb 2005 16:11:20 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-Class: urn:content-classes:message Message-ID: <0728B7E65FD8804BAC6C0BC1379F1F5F4828ED@olympus.dsoft.be> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: libxslt on MacOS9? thread-index: AcUNPuBScuHCeniGTDeoYvPcJ+VwrgFYu1Mg From: "Roeland Muys" To: X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] libxslt on MacOS9? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 15:12:54 -0000 I cannot seem to find binaries for MacOS9, but I am no Mac expert. Are such binaries available anywhere? Roeland From vincent+gnome@vinc17.org Mon Feb 14 11:48:38 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A5BE43B14F5 for ; Mon, 14 Feb 2005 11:48:38 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12087-04 for ; Mon, 14 Feb 2005 11:48:34 -0500 (EST) Received: from ay.vinc17.org (vinc17.net4.nerim.net [62.212.121.106]) by menubar.gnome.org (Postfix) with ESMTP id 317E03B1489 for ; Mon, 14 Feb 2005 11:48:34 -0500 (EST) Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1D0jOj-0002E9-0Y; Mon, 14 Feb 2005 17:48:33 +0100 Date: Mon, 14 Feb 2005 17:48:32 +0100 From: Vincent Lefevre To: xslt@gnome.org Message-ID: <20050214164832.GC24076@ay.vinc17.org> Mail-Followup-To: xslt@gnome.org References: <20050214133501.GB24076@ay.vinc17.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050214133501.GB24076@ay.vinc17.org> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.7-vl-20050209i X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] Re: Indentation with X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 16:48:38 -0000 On 2005-02-14 14:35:01 +0100, Vincent Lefevre wrote: > I don't understand how indentation is done with > . Perhaps a bug? Adding fixes the problem. Is there some documentation about that? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA From veillard@redhat.com Mon Feb 14 11:56:32 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 992C63B1449 for ; Mon, 14 Feb 2005 11:56:32 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12563-04 for ; Mon, 14 Feb 2005 11:56:29 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 038263B1415 for ; Mon, 14 Feb 2005 11:56:29 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1EGuS7Q008158 for ; Mon, 14 Feb 2005 11:56:28 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1EGuIO06956 for ; Mon, 14 Feb 2005 11:56:18 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1EGuI2t030757 for ; Mon, 14 Feb 2005 11:56:18 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1EGuIHJ030755 for xslt@gnome.org; Mon, 14 Feb 2005 11:56:18 -0500 Date: Mon, 14 Feb 2005 11:56:18 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] regexp-plugin and format:date plugin Message-ID: <20050214165618.GM1718@redhat.com> References: <20050214031637.GA19538@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050214031637.GA19538@comcast.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 16:56:32 -0000 On Sun, Feb 13, 2005 at 10:16:38PM -0500, Joel Reed wrote: > I've uploaded: > > http://home.comcast.net/~joelwreed/libxslt-plugin-regexp-0.3.tar.gz > http://home.comcast.net/~joelwreed/libxslt-plugin-dates-and-times-0.1.tar.gz > > The regexp plugin version 0.3 adds support for windows. > > The dates-and-times plugin implements format:date, using libgcj - thus not > suitable for inclusion in libexslt. > > Currently, the plugin includes date parsing code copied from > libexslt/date.c. If we had a exsltInternals.h this code could be > removed. But I'm not sure if this worth it for just this plugin. > > dv, could you drop these into the ftp://xmlsoft.org/plugins/ directory? Done, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Mon Feb 14 11:59:22 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 552D43B1489 for ; Mon, 14 Feb 2005 11:59:22 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12676-08 for ; Mon, 14 Feb 2005 11:59:19 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id DC0DF3B1433 for ; Mon, 14 Feb 2005 11:59:19 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1EGxJb3009294 for ; Mon, 14 Feb 2005 11:59:19 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1EGxJO08038 for ; Mon, 14 Feb 2005 11:59:19 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1EGxJgJ031777 for ; Mon, 14 Feb 2005 11:59:19 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1EGxJC4031775 for xslt@gnome.org; Mon, 14 Feb 2005 11:59:19 -0500 Date: Mon, 14 Feb 2005 11:59:19 -0500 From: Daniel Veillard To: xslt@gnome.org Subject: Re: [xslt] Indentation with Message-ID: <20050214165918.GN1718@redhat.com> References: <20050214133501.GB24076@ay.vinc17.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050214133501.GB24076@ay.vinc17.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 16:59:22 -0000 On Mon, Feb 14, 2005 at 02:35:01PM +0100, Vincent Lefevre wrote: > I wonder why I don't get the same form as with xmllint --format: because the serialization code is extremely cautious about the formatting option and tend to just stop it if there is any text node left as a sibling, while those text nodes are stripped out on input with xmllint --format. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Mon Feb 14 12:09:59 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F1F2F3B1513 for ; Mon, 14 Feb 2005 12:09:57 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14068-03 for ; Mon, 14 Feb 2005 12:09:54 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id ECBA63B1560 for ; Mon, 14 Feb 2005 12:07:05 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1EH75p8011833 for ; Mon, 14 Feb 2005 12:07:05 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1EH70O10993 for ; Mon, 14 Feb 2005 12:07:00 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1EH70qS002548 for ; Mon, 14 Feb 2005 12:07:00 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1EH70Ri002546 for xslt@gnome.org; Mon, 14 Feb 2005 12:07:00 -0500 Date: Mon, 14 Feb 2005 12:07:00 -0500 From: Daniel Veillard To: xslt@gnome.org Subject: Re: [xslt] XSLT patterns without transformations? Message-ID: <20050214170700.GO1718@redhat.com> References: <20050214143340.GA15482@idi.ntnu.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050214143340.GA15482@idi.ntnu.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 17:09:59 -0000 On Mon, Feb 14, 2005 at 03:33:40PM +0100, Magnus Lie Hetland wrote: > After realising that the xpath and pattern support in libxml probably > wasn't what I was looking for (the patterns there are a bit too > restricted; i.e., they are XML Schema patterns, not XSLT patterns) > I've looked at the libxslt module pattern.c -- but I'm not quite sure > how to use it on its own... How do I create the required > xsltTransformContext when I don't have any transformations going on? it's really not expected to be used on its own. There is serious dependancies with internal data like caching informations dependant on the XSLT processing itself. > And... Which parts are actually public? (This may be a problem with my > installation, but I can find xsltMatchPattern() in the .h-file, but > not in the library itself, so I get linker problems if I try to use > it.) most headers outside of xslt.h are kind of private, they are here to allow hacking but I can't really spend much time supporting users of those features. You can copy the XSLT pattern.c module and hack on it to fit your needs for example. What I can support is the streaming subset in libxml/pattern.h or the full XPath queries from libxml/xpath.h those are really intended to be public APIs. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From vincent+gnome@vinc17.org Mon Feb 14 12:41:09 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9EEBB3B0961 for ; Mon, 14 Feb 2005 12:41:09 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16088-05 for ; Mon, 14 Feb 2005 12:41:07 -0500 (EST) Received: from ay.vinc17.org (vinc17.net4.nerim.net [62.212.121.106]) by menubar.gnome.org (Postfix) with ESMTP id 72A8D3B11AC for ; Mon, 14 Feb 2005 12:41:05 -0500 (EST) Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1D0kDY-0002U9-Am; Mon, 14 Feb 2005 18:41:04 +0100 Date: Mon, 14 Feb 2005 18:41:04 +0100 From: Vincent Lefevre To: xslt@gnome.org Subject: Re: [xslt] Indentation with Message-ID: <20050214174104.GD24076@ay.vinc17.org> Mail-Followup-To: xslt@gnome.org References: <20050214133501.GB24076@ay.vinc17.org> <20050214165918.GN1718@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050214165918.GN1718@redhat.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.7-vl-20050209i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 17:41:09 -0000 On 2005-02-14 11:59:19 -0500, Daniel Veillard wrote: > On Mon, Feb 14, 2005 at 02:35:01PM +0100, Vincent Lefevre wrote: > > I wonder why I don't get the same form as with xmllint --format: > > because the serialization code is extremely cautious about > the formatting option and tend to just stop it if there is any > text node left as a sibling, while those text nodes are stripped > out on input with xmllint --format. This is OK for me, but is it required by the XSLT specification? For instance, Sablotron and Xalan don't have the same behavior. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA From veillard@redhat.com Mon Feb 14 18:01:54 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5945D3B1318 for ; Mon, 14 Feb 2005 18:01:54 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02889-07 for ; Mon, 14 Feb 2005 18:01:51 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id C59323B16A2 for ; Mon, 14 Feb 2005 18:01:39 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1EN1dC7026721 for ; Mon, 14 Feb 2005 18:01:39 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1EN1dO12967 for ; Mon, 14 Feb 2005 18:01:39 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1EN1dLP025824 for ; Mon, 14 Feb 2005 18:01:39 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1EN1dwd025822 for xslt@gnome.org; Mon, 14 Feb 2005 18:01:39 -0500 Date: Mon, 14 Feb 2005 18:01:39 -0500 From: Daniel Veillard To: xslt@gnome.org Subject: Re: [xslt] Indentation with Message-ID: <20050214230139.GP1718@redhat.com> References: <20050214133501.GB24076@ay.vinc17.org> <20050214165918.GN1718@redhat.com> <20050214174104.GD24076@ay.vinc17.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050214174104.GD24076@ay.vinc17.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 23:01:54 -0000 On Mon, Feb 14, 2005 at 06:41:04PM +0100, Vincent Lefevre wrote: > On 2005-02-14 11:59:19 -0500, Daniel Veillard wrote: > > On Mon, Feb 14, 2005 at 02:35:01PM +0100, Vincent Lefevre wrote: > > > I wonder why I don't get the same form as with xmllint --format: > > > > because the serialization code is extremely cautious about > > the formatting option and tend to just stop it if there is any > > text node left as a sibling, while those text nodes are stripped > > out on input with xmllint --format. > > This is OK for me, but is it required by the XSLT specification? > For instance, Sablotron and Xalan don't have the same behavior. nothing really normative here. check the spec by yourself :-) http://www.w3.org/TR/xslt#section-XML-Output-Method "If the indent attribute has the value yes, then the xml output method may output whitespace in addition to the whitespace in the result tree (possibly based on whitespace stripped from either the source document or the stylesheet) in order to indent the result nicely; if the indent attribute has the value no, it should not output any additional whitespace. The default value is no. The xml output method should use an algorithm to output additional whitespace that ensures that the result if whitespace were to be stripped from the output using the process described in [3.4 Whitespace Stripping] with the set of whitespace-preserving elements consisting of just xsl:text would be the same when additional whitespace is output as when additional whitespace is not output." "nicely" is not defined :-) and not adding any space is also a conformant behaviour, you can just argue about the "nicely" adjective, could be one space, 2 spaces, 4 spaces, one tab, 4 tabs, whatever really ... libxml2 is just being conservative in its processing. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From mlh@idi.ntnu.no Tue Feb 15 03:49:40 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 31D083B0BC7 for ; Tue, 15 Feb 2005 03:49:40 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30380-05 for ; Tue, 15 Feb 2005 03:49:38 -0500 (EST) Received: from pil.idi.ntnu.no (pil.idi.ntnu.no [129.241.107.93]) by menubar.gnome.org (Postfix) with ESMTP id A0C0B3B0A49 for ; Tue, 15 Feb 2005 03:49:30 -0500 (EST) Received: from selje.idi.ntnu.no (IDENT:22955@selje.idi.ntnu.no [129.241.107.78]) by pil.idi.ntnu.no (8.13.1/8.13.1) with ESMTP id j1F8nSEi000838 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Tue, 15 Feb 2005 09:49:28 +0100 (MET) Received: (from mlh@localhost) by selje.idi.ntnu.no (8.12.10/8.12.9/Submit) id j1F8nSOL012214 for xslt@gnome.org; Tue, 15 Feb 2005 09:49:28 +0100 (MET) Date: Tue, 15 Feb 2005 09:49:27 +0100 From: Magnus Lie Hetland To: xslt@gnome.org Subject: Re: [xslt] XSLT patterns without transformations? Message-ID: <20050215084927.GA12053@idi.ntnu.no> Mail-Followup-To: xslt@gnome.org References: <20050214143340.GA15482@idi.ntnu.no> <20050214170700.GO1718@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050214170700.GO1718@redhat.com> User-Agent: Mutt/1.4i X-Virus-Scanned-By: mimedefang.idi.ntnu.no, using FSAV X-SMTP-From: Sender=, Relay/Client=selje.idi.ntnu.no [129.241.107.78], EHLO=selje.idi.ntnu.no X-Scanned-By: MIMEDefang 2.48 on 129.241.107.38 X-Scanned-By: mimedefang.idi.ntnu.no, using MIMEDefang 2.48 with local filter 16.42-idi X-Filter-Time: 1 seconds X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 08:49:40 -0000 Daniel Veillard : > [snip] > it's really not expected to be used on its own. Ok. [snip] > What I can support is the streaming subset in libxml/pattern.h or > the full XPath queries from libxml/xpath.h those are really intended to > be public APIs. I see. Just two more questions, then (about these latter modules): - Is the exact XPath subset used in libxml/pattern.h documented anywhere (other than in the form of source code)? As far as I can see, it's a superset of the XML Schema node selector format? - Is there any (semi-)efficient way of using libxml/xpath.h in a manner similar to that of XSLT patterns (i.e. checking for applicability to a given node all the way up the ancestor chain), or would I simply have do a number of separate checks, one for each ancestor? Thanks, - Magnus -- Magnus Lie Hetland Fallen flower I see / Returning to its branch http://hetland.org Ah! a butterfly. [Arakida Moritake] From veillard@redhat.com Tue Feb 15 05:09:27 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 88EE23B06D6 for ; Tue, 15 Feb 2005 05:09:24 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02990-09 for ; Tue, 15 Feb 2005 05:09:20 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id E0F713B06EF for ; Tue, 15 Feb 2005 05:08:29 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1FA8TSh003500 for ; Tue, 15 Feb 2005 05:08:29 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1FA8TO00640 for ; Tue, 15 Feb 2005 05:08:29 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1FA8TUc009164 for ; Tue, 15 Feb 2005 05:08:29 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1FA8TfF009162 for xslt@gnome.org; Tue, 15 Feb 2005 05:08:29 -0500 Date: Tue, 15 Feb 2005 05:08:29 -0500 From: Daniel Veillard To: xslt@gnome.org Subject: Re: [xslt] XSLT patterns without transformations? Message-ID: <20050215100829.GR1718@redhat.com> References: <20050214143340.GA15482@idi.ntnu.no> <20050214170700.GO1718@redhat.com> <20050215084927.GA12053@idi.ntnu.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050215084927.GA12053@idi.ntnu.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 10:09:27 -0000 On Tue, Feb 15, 2005 at 09:49:27AM +0100, Magnus Lie Hetland wrote: > Daniel Veillard : > > > [snip] > > it's really not expected to be used on its own. > > Ok. > > [snip] > > What I can support is the streaming subset in libxml/pattern.h or > > the full XPath queries from libxml/xpath.h those are really intended to > > be public APIs. > > I see. > > Just two more questions, then (about these latter modules): > > - Is the exact XPath subset used in libxml/pattern.h documented > anywhere (other than in the form of source code)? As far as I can > see, it's a superset of the XML Schema node selector format? No it's a work in progress, what is in the 2.6.17 differs from what is in CVS, which itself differs from what is in my checkout, I will likely grow it over time > - Is there any (semi-)efficient way of using libxml/xpath.h in a > manner similar to that of XSLT patterns (i.e. checking for > applicability to a given node all the way up the ancestor chain), > or would I simply have do a number of separate checks, one for > each ancestor? Well if I wrote pattern.c for libxslt and later migrated this to libxml2 it's really because they work differently and their cost/benefit are really different. Except taking a precompiled form of xpath.c expressions and trying to interpret it in a different way. Currently there is no code which seems to satify your needs, statement which itself is hard to assert as you didn't specify them. And pattern.[ch] in libxml2 is a work in progress which may or may not suit your needs in a distant future, but again since you didn't specify what you want... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From mlh@idi.ntnu.no Tue Feb 15 05:17:16 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 634E83B1765 for ; Tue, 15 Feb 2005 05:17:14 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03532-08 for ; Tue, 15 Feb 2005 05:17:12 -0500 (EST) Received: from pil.idi.ntnu.no (pil.idi.ntnu.no [129.241.107.93]) by menubar.gnome.org (Postfix) with ESMTP id E949E3B14FD for ; Tue, 15 Feb 2005 05:16:35 -0500 (EST) Received: from selje.idi.ntnu.no (IDENT:22955@selje.idi.ntnu.no [129.241.107.78]) by pil.idi.ntnu.no (8.13.1/8.13.1) with ESMTP id j1FAGW8V029028 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Tue, 15 Feb 2005 11:16:33 +0100 (MET) Received: (from mlh@localhost) by selje.idi.ntnu.no (8.12.10/8.12.9/Submit) id j1FAGWh7015338 for xslt@gnome.org; Tue, 15 Feb 2005 11:16:32 +0100 (MET) Date: Tue, 15 Feb 2005 11:16:31 +0100 From: Magnus Lie Hetland To: xslt@gnome.org Subject: Re: [xslt] XSLT patterns without transformations? Message-ID: <20050215101631.GB14989@idi.ntnu.no> Mail-Followup-To: xslt@gnome.org References: <20050214143340.GA15482@idi.ntnu.no> <20050214170700.GO1718@redhat.com> <20050215084927.GA12053@idi.ntnu.no> <20050215100829.GR1718@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050215100829.GR1718@redhat.com> User-Agent: Mutt/1.4i X-Virus-Scanned-By: mimedefang.idi.ntnu.no, using FSAV X-SMTP-From: Sender=, Relay/Client=selje.idi.ntnu.no [129.241.107.78], EHLO=selje.idi.ntnu.no X-Scanned-By: MIMEDefang 2.48 on 129.241.107.38 X-Scanned-By: mimedefang.idi.ntnu.no, using MIMEDefang 2.48 with local filter 16.42-idi X-Filter-Time: 2 seconds X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 10:17:16 -0000 Daniel Veillard : > [snip] > > Well if I wrote pattern.c for libxslt and later migrated this to > libxml2 it's really because they work differently and their cost/benefit > are really different. Except taking a precompiled form of xpath.c > expressions and trying to interpret it in a different way. Currently > there is no code which seems to satify your needs, statement which > itself is hard to assert as you didn't specify them. Yes, I know -- I'm not 100% certain about what I need myself, yet. I do think I need basic location paths and some form of negation (e.g., "nodes that are not code nodes"), which I guess is most easily done using e.g., 'node()[not(self::code)]'. > And pattern.[ch] in libxml2 is a work in progress which may or may > not suit your needs in a distant future, but again since you didn't > specify what you want... Right... :) As I suspect my needs for efficiency might not be all too extreme, I have -- for now -- simply used xmlXPathEvalExpression(...) along with one loop traversing the ancestor chain and one looking through the returned node-set (if any). Sort of a "brute force"-application of XPath matching to get the XSLT pattern semantics (or something similar), but it seems to work, so... (Of course, this doesn't enforce the restricted subset of XPath, but that may not be too critical.) -- Magnus Lie Hetland Fallen flower I see / Returning to its branch http://hetland.org Ah! a butterfly. [Arakida Moritake] From rvanhout@riks.nl Tue Feb 22 04:36:47 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AE7953B1594 for ; Tue, 22 Feb 2005 04:36:47 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06240-06 for ; Tue, 22 Feb 2005 04:36:42 -0500 (EST) Received: from smtp.unimaas.nl (umwin0021.unimaas.nl [137.120.1.21]) by menubar.gnome.org (Postfix) with ESMTP id 0D2913B15D4 for ; Tue, 22 Feb 2005 04:35:58 -0500 (EST) Received: from enceladus.riks.nl ([137.120.111.16]) by smtp.unimaas.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 10:35:56 +0100 Received: from [137.120.111.34] ([137.120.111.34]) by enceladus.riks.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 10:48:15 +0100 Message-ID: <421AFDDB.5020800@riks.nl> Date: Tue, 22 Feb 2005 10:39:39 +0100 From: Roel Vanhout User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: xslt@gnome.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Feb 2005 09:48:15.0202 (UTC) FILETIME=[A131EC20:01C518C3] X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] handling of < in CDATA sections X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 09:36:47 -0000 Hello all, I've written an xsl stylesheet to serve as customization stylesheet for a docbook document. The goal is to insert some php code into the generated (html) documentation. For that to happen I need my stylesheet to output php tags, like this: and that worked for me, but it turned out that someone else, with a newer version of xsltproc, got a different output than I did: he got <?php (the < was escaped). So I upgraded my xsltproc to the latest version and then I got the same problem. Now, my questions are: 1.) Is this behaviour ok? Should a < in a CDATA section be escaped to <? 2.) What other options do I have to reach my goal? I've tried but that (as I expected) didn't help. The bug report with the original stylesheet and the message that it didn't work can be found in the gnome bugzilla, see http://bugzilla.gnome.org/show_bug.cgi?id=168030. Thanks for any help in this. cheers, roel From vincent+gnome@vinc17.org Tue Feb 22 05:04:07 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 654023B16A7 for ; Tue, 22 Feb 2005 05:04:01 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07409-01 for ; Tue, 22 Feb 2005 05:03:58 -0500 (EST) Received: from ay.vinc17.org (vinc17.net4.nerim.net [62.212.121.106]) by menubar.gnome.org (Postfix) with ESMTP id 722F23B169C for ; Tue, 22 Feb 2005 05:03:56 -0500 (EST) Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1D3WtX-0000TM-1Y; Tue, 22 Feb 2005 11:03:55 +0100 Date: Tue, 22 Feb 2005 11:03:54 +0100 From: Vincent Lefevre To: xslt@gnome.org Subject: Re: [xslt] handling of < in CDATA sections Message-ID: <20050222100354.GC10679@ay.vinc17.org> Mail-Followup-To: xslt@gnome.org References: <421AFDDB.5020800@riks.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <421AFDDB.5020800@riks.nl> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.8-vl-20050218i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 10:04:07 -0000 On 2005-02-22 10:39:39 +0100, Roel Vanhout wrote: > 1.) Is this behaviour ok? Should a < in a CDATA section be escaped to <? Writing < in a CDATA section is not different from writing < outside. In both cases, you have a character < that belongs to a text node. I've not seen the stylesheet, but IMHO, libxslt is doing the right thing, by escaping < when generating a text node. > 2.) What other options do I have to reach my goal? I've tried > but that (as I expected) didn't help. The cleanest way in your case is to use xsl:processing-instruction to create a PI. > The bug report with the original stylesheet and the message that it > didn't work can be found in the gnome bugzilla, see > http://bugzilla.gnome.org/show_bug.cgi?id=168030. Thanks for any > help in this. It should be closed as invalid. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA From veillard@redhat.com Tue Feb 22 05:14:55 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F1C9D3B159C for ; Tue, 22 Feb 2005 05:14:54 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07994-07 for ; Tue, 22 Feb 2005 05:14:53 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id C9E3E3B1592 for ; Tue, 22 Feb 2005 05:14:52 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1MAEoVI000461 for ; Tue, 22 Feb 2005 05:14:50 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1MAEoK03184 for ; Tue, 22 Feb 2005 05:14:50 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1MAEoQo013655 for ; Tue, 22 Feb 2005 05:14:50 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1MAEoXS013653 for xslt@gnome.org; Tue, 22 Feb 2005 05:14:50 -0500 Date: Tue, 22 Feb 2005 05:14:50 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] handling of < in CDATA sections Message-ID: <20050222101450.GK15979@redhat.com> References: <421AFDDB.5020800@riks.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <421AFDDB.5020800@riks.nl> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 10:14:55 -0000 On Tue, Feb 22, 2005 at 10:39:39AM +0100, Roel Vanhout wrote: > > Hello all, > > I've written an xsl stylesheet to serve as customization stylesheet for > a docbook document. The goal is to insert some php code into the > generated (html) documentation. For that to happen I need my stylesheet > to output php tags, like this: > into the generated html. It's the < that is causing me troubles. My > first try was to put it in a CDATA section, like this: > ]]> > and that worked for me, but it turned out that someone else, with a > newer version of xsltproc, got a different output than I did: he got > <?php > (the < was escaped). So I upgraded my xsltproc to the latest version and > then I got the same problem. Now, my questions are: > > 1.) Is this behaviour ok? Should a < in a CDATA section be escaped to <? > 2.) What other options do I have to reach my goal? I've tried > but that (as I expected) didn't help. > > The bug report with the original stylesheet and the message that it > didn't work can be found in the gnome bugzilla, see > http://bugzilla.gnome.org/show_bug.cgi?id=168030. Thanks for any help in > this. CDATA does not exist in the XPAth data model. I.e. XSLT does not see CDATA in any input or generated tree, only text nodes with the associated text value. What you're trying to do is not possible in XSLT. The only thing you can do: - force some element content to be CDATA http://www.w3.org/TR/xslt#section-XML-Output-Method using cdata-section-elements - disable escaping for some specific text nodes http://www.w3.org/TR/xslt#disable-output-escaping Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From rvanhout@riks.nl Tue Feb 22 05:26:39 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BD7373B1700 for ; Tue, 22 Feb 2005 05:26:39 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08606-03 for ; Tue, 22 Feb 2005 05:26:36 -0500 (EST) Received: from smtp.unimaas.nl (umwin0021.unimaas.nl [137.120.1.21]) by menubar.gnome.org (Postfix) with ESMTP id 41EE13B16E2 for ; Tue, 22 Feb 2005 05:26:36 -0500 (EST) Received: from enceladus.riks.nl ([137.120.111.16]) by smtp.unimaas.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 11:26:35 +0100 Received: from [137.120.111.34] ([137.120.111.34]) by enceladus.riks.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 11:38:53 +0100 Message-ID: <421B09B9.3080306@riks.nl> Date: Tue, 22 Feb 2005 11:30:17 +0100 From: Roel Vanhout User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The Gnome XSLT library mailing-list Subject: Re: [xslt] handling of < in CDATA sections References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> In-Reply-To: <20050222100354.GC10679@ay.vinc17.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Feb 2005 10:38:53.0311 (UTC) FILETIME=[B40C90F0:01C518CA] X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 10:26:39 -0000 Vincent Lefevre wrote: > Writing < in a CDATA section is not different from writing < outside. > In both cases, you have a character < that belongs to a text node. I've > not seen the stylesheet, but IMHO, libxslt is doing the right thing, by > escaping < when generating a text node. Ok well this shows my lack of understanding then :) >>2.) What other options do I have to reach my goal? I've tried >>but that (as I expected) didn't help. > The cleanest way in your case is to use xsl:processing-instruction to > create a PI. Although it does seem like cheating, this could indeed work. According to http://www.w3schools.com/xsl/el_processing-instruction.asp (and various other pages I found on this element), if I'd write $var = 0; that should produce Unfortunately it seems that xsltproc makes that (notice the missing ? in the close tag of the PI). I've also tried putting in an xsl:text node around the $var = 0; but that didn't help. Am I reading the examples wrong or maybe doing something else wrong? >>The bug report with the original stylesheet and the message that it >>didn't work can be found in the gnome bugzilla, see >>http://bugzilla.gnome.org/show_bug.cgi?id=168030. Thanks for any >>help in this. > It should be closed as invalid. Sorry what I meant was: 'see this bug for the original stylesheet'. It's not a bug report on libxslt, it's a bug report on gtkmm for which I'm trying to do this whole thing. Thanks for your help. cheers, roel From rvanhout@riks.nl Tue Feb 22 05:27:29 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E99E63B1716 for ; Tue, 22 Feb 2005 05:27:28 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08683-06 for ; Tue, 22 Feb 2005 05:27:27 -0500 (EST) Received: from smtp.unimaas.nl (umwin0021.unimaas.nl [137.120.1.21]) by menubar.gnome.org (Postfix) with ESMTP id 277CD3B16E2 for ; Tue, 22 Feb 2005 05:27:27 -0500 (EST) Received: from enceladus.riks.nl ([137.120.111.16]) by smtp.unimaas.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 11:27:26 +0100 Received: from [137.120.111.34] ([137.120.111.34]) by enceladus.riks.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 11:39:44 +0100 Message-ID: <421B09EC.4040007@riks.nl> Date: Tue, 22 Feb 2005 11:31:08 +0100 From: Roel Vanhout User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: veillard@redhat.com, The Gnome XSLT library mailing-list Subject: Re: [xslt] handling of < in CDATA sections References: <421AFDDB.5020800@riks.nl> <20050222101450.GK15979@redhat.com> In-Reply-To: <20050222101450.GK15979@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Feb 2005 10:39:44.0422 (UTC) FILETIME=[D2837C60:01C518CA] X-Virus-Scanned: by amavisd-new at gnome.org Cc: X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 10:27:29 -0000 Daniel Veillard wrote: > CDATA does not exist in the XPAth data model. I.e. XSLT does not see > CDATA in any input or generated tree, only text nodes with the associated > text value. What you're trying to do is not possible in XSLT. > The only thing you can do: > - force some element content to be CDATA > http://www.w3.org/TR/xslt#section-XML-Output-Method > using cdata-section-elements > - disable escaping for some specific text nodes > http://www.w3.org/TR/xslt#disable-output-escaping Aha yes this method works just fine! Thanks a lot Daniel. cheers, roel From veillard@redhat.com Tue Feb 22 05:49:46 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BE993B1726 for ; Tue, 22 Feb 2005 05:49:45 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09959-02 for ; Tue, 22 Feb 2005 05:49:41 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 2A2713B1729 for ; Tue, 22 Feb 2005 05:48:51 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1MAmoDT009809 for ; Tue, 22 Feb 2005 05:48:50 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1MAmoK10118 for ; Tue, 22 Feb 2005 05:48:50 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1MAmoIk022515 for ; Tue, 22 Feb 2005 05:48:50 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1MAmoEJ022513 for xslt@gnome.org; Tue, 22 Feb 2005 05:48:50 -0500 Date: Tue, 22 Feb 2005 05:48:50 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] handling of < in CDATA sections Message-ID: <20050222104850.GM15979@redhat.com> References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <421B09B9.3080306@riks.nl> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 10:49:46 -0000 On Tue, Feb 22, 2005 at 11:30:17AM +0100, Roel Vanhout wrote: > Although it does seem like cheating, this could indeed work. According > to http://www.w3schools.com/xsl/el_processing-instruction.asp (and > various other pages I found on this element), if I'd write > > $var = 0; > > that should produce > $var = 0; > ?> > > Unfortunately it seems that xsltproc makes that > $var = 0; > > > (notice the missing ? in the close tag of the PI). I've also tried > putting in an xsl:text node around the $var = 0; but that didn't help. > Am I reading the examples wrong or maybe doing something else wrong? An XML PI does not end with ?> but with > so .... $var = 0; ? should do what you want ! Daniel P.S.: all this is not xsltproc specific, it's just XML and XSLT specs ! -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From vincent+gnome@vinc17.org Tue Feb 22 06:11:35 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1DA3E3B0755 for ; Tue, 22 Feb 2005 06:11:35 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11025-01 for ; Tue, 22 Feb 2005 06:11:33 -0500 (EST) Received: from ay.vinc17.org (vinc17.net4.nerim.net [62.212.121.106]) by menubar.gnome.org (Postfix) with ESMTP id 3A60E3B099E for ; Tue, 22 Feb 2005 06:11:33 -0500 (EST) Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1D3Xwy-0000uw-BZ; Tue, 22 Feb 2005 12:11:32 +0100 Date: Tue, 22 Feb 2005 12:11:32 +0100 From: Vincent Lefevre To: xslt@gnome.org Subject: Re: [xslt] handling of < in CDATA sections Message-ID: <20050222111132.GD10679@ay.vinc17.org> Mail-Followup-To: xslt@gnome.org References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <421B09B9.3080306@riks.nl> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.8-vl-20050218i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 11:11:35 -0000 On 2005-02-22 11:30:17 +0100, Roel Vanhout wrote: > Vincent Lefevre wrote: > >The cleanest way in your case is to use xsl:processing-instruction to > >create a PI. > > Although it does seem like cheating, this could indeed work. This is not cheating, this is exactly what you want to do: create a processing-instruction, right? > > $var = 0; > > that should produce > $var = 0; > ?> > > Unfortunately it seems that xsltproc makes that > $var = 0; > > > (notice the missing ? in the close tag of the PI). Then this is a bug in xsltproc. But there's no problem with Using libxml 20616, libxslt 10112 and libexslt 810 xsltproc was compiled against libxml 20616, libxslt 10112 and libexslt 810 libxslt 10112 was compiled against libxml 20616 libexslt 810 was compiled against libxml 20616 ay:~> cat test.xsl $var = 0; ay:~> xsltproc test.xsl test.xsl BTW, this is much cleaner than the solution based on escaping (proposed by Daniel), IMHO. Disabling escaping is evil. Daniel's first solution won't solve your problem, as you'll get a document that will be semantically the same after parsing. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA From vincent+gnome@vinc17.org Tue Feb 22 06:21:21 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF2EA3B0755 for ; Tue, 22 Feb 2005 06:21:21 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11338-07 for ; Tue, 22 Feb 2005 06:21:20 -0500 (EST) Received: from ay.vinc17.org (vinc17.net4.nerim.net [62.212.121.106]) by menubar.gnome.org (Postfix) with ESMTP id 022423B0E27 for ; Tue, 22 Feb 2005 06:21:20 -0500 (EST) Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1D3Y6R-00010E-35; Tue, 22 Feb 2005 12:21:19 +0100 Date: Tue, 22 Feb 2005 12:21:19 +0100 From: Vincent Lefevre To: xslt@gnome.org Subject: Re: [xslt] handling of < in CDATA sections Message-ID: <20050222112119.GE10679@ay.vinc17.org> Mail-Followup-To: xslt@gnome.org References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> <20050222104850.GM15979@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050222104850.GM15979@redhat.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.8-vl-20050218i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 11:21:22 -0000 On 2005-02-22 05:48:50 -0500, Daniel Veillard wrote: > An XML PI does not end with ?> but with > The XML spec says the opposite. > so .... > > > $var = 0; > ? > > should do what you want ! No, http://www.w3.org/TR/xslt#section-Creating-Processing-Instructions says: For example, this href="book.css" type="text/css" would create the processing instruction -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA From rvanhout@riks.nl Tue Feb 22 06:22:32 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4698A3B172B for ; Tue, 22 Feb 2005 06:22:32 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11552-01 for ; Tue, 22 Feb 2005 06:22:30 -0500 (EST) Received: from smtp.unimaas.nl (umwin0021.unimaas.nl [137.120.1.21]) by menubar.gnome.org (Postfix) with ESMTP id 0496F3B1674 for ; Tue, 22 Feb 2005 06:22:30 -0500 (EST) Received: from enceladus.riks.nl ([137.120.111.16]) by smtp.unimaas.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 12:22:29 +0100 Received: from [137.120.111.34] ([137.120.111.34]) by enceladus.riks.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 12:34:47 +0100 Message-ID: <421B16D3.3050007@riks.nl> Date: Tue, 22 Feb 2005 12:26:11 +0100 From: Roel Vanhout User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: veillard@redhat.com, The Gnome XSLT library mailing-list Subject: Re: [xslt] handling of < in CDATA sections References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> <20050222104850.GM15979@redhat.com> In-Reply-To: <20050222104850.GM15979@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Feb 2005 11:34:47.0569 (UTC) FILETIME=[8357B810:01C518D2] X-Virus-Scanned: by amavisd-new at gnome.org Cc: X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 11:22:35 -0000 Daniel Veillard wrote: > An XML PI does not end with ?> but with > > so .... > > $var = 0; > ? Well I couldn't find a definition of what a PI should look like, but on http://www.w3.org/TR/xslt#section-Creating-Processing-Instructions there is the following example: ===== For example, this href="book.css" type="text/css" would create the processing instruction ====== which led me to believe that the extra ? should not be necessary but should be put in by the xslt processor. I've solved my problem so it's not important to me any more, I was just trying to figure out if I understood something wrong. > P.S.: all this is not xsltproc specific, it's just XML and XSLT specs ! You're right it's not xsltproc specific, I originally posted here because of the difference in output between xsltproc versions. So sorry for the noise. cheers, roel From rvanhout@riks.nl Tue Feb 22 06:37:16 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 05D093B0EDD for ; Tue, 22 Feb 2005 06:37:16 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12410-05 for ; Tue, 22 Feb 2005 06:37:14 -0500 (EST) Received: from smtp.unimaas.nl (umwin0021.unimaas.nl [137.120.1.21]) by menubar.gnome.org (Postfix) with ESMTP id 6A9493B0EB1 for ; Tue, 22 Feb 2005 06:37:14 -0500 (EST) Received: from enceladus.riks.nl ([137.120.111.16]) by smtp.unimaas.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 12:37:13 +0100 Received: from [137.120.111.34] ([137.120.111.34]) by enceladus.riks.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 12:49:31 +0100 Message-ID: <421B1A48.9070806@riks.nl> Date: Tue, 22 Feb 2005 12:40:56 +0100 From: Roel Vanhout User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The Gnome XSLT library mailing-list Subject: Re: [xslt] handling of < in CDATA sections References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> <20050222111132.GD10679@ay.vinc17.org> In-Reply-To: <20050222111132.GD10679@ay.vinc17.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Feb 2005 11:49:32.0013 (UTC) FILETIME=[928329D0:01C518D4] X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 11:37:16 -0000 Vincent Lefevre wrote: > On 2005-02-22 11:30:17 +0100, Roel Vanhout wrote: >>Although it does seem like cheating, this could indeed work. > This is not cheating, this is exactly what you want to do: create > a processing-instruction, right? Well I want to create a php tag, and php tags just happen to look like processing instructions, so that's why I'd consider it cheating. But you're right, it depends on how you look at it :) > Then this is a bug in xsltproc. But there's no problem with > Using libxml 20616, libxslt 10112 and libexslt 810 > xsltproc was compiled against libxml 20616, libxslt 10112 and libexslt 810 > libxslt 10112 was compiled against libxml 20616 > libexslt 810 was compiled against libxml 20616 I'm using E:\cvs\gtkmm2\docs\tutorial>xsltproc -V Using libxml 20617CVS2313, libxslt 10112CVS991 and libexslt 810CVS991 xsltproc was compiled against libxml 20617, libxslt 10112 and libexslt 810 libxslt 10112 was compiled against libxml 20617 libexslt 810 was compiled against libxml 20617 and your test case below works ok for me too. However when I run it as part of my docbook toolchain, as described in the bug report to gtkmm that I referred to earlier (http://bugzilla.gnome.org/show_bug.cgi?id=168030), it doesn't work any more. Here's the output up to the point where the error is visible: Chapter 1. Introduction I think it has something to do with the fact that the output format is html; if I try to change the element in your example to , I get the following output: C:\>xsltproc pitext.xsl pitest.xml Notice that the ? is not there in this case! As you can see, I'm running on windows and using a slightly different version than you do, would you mind trying the to and see if you can reproduce it? > BTW, this is much cleaner than the solution based on escaping (proposed > by Daniel), IMHO. Disabling escaping is evil. Well at this point I'm just trying to get a working solution, that's all :) Thanks anyway for guiding me on the way to Enlightenment ;) > Daniel's first solution won't solve your problem, as you'll get a > document that will be semantically the same after parsing. That's right, it was the second solution that I was referring to. Thanks. cheers, roel From vincent+gnome@vinc17.org Tue Feb 22 07:21:33 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 989443B08B9 for ; Tue, 22 Feb 2005 07:21:33 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14264-05 for ; Tue, 22 Feb 2005 07:21:32 -0500 (EST) Received: from ay.vinc17.org (vinc17.net4.nerim.net [62.212.121.106]) by menubar.gnome.org (Postfix) with ESMTP id 7BB603B0737 for ; Tue, 22 Feb 2005 07:21:31 -0500 (EST) Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1D3Z2g-0001T2-Gt; Tue, 22 Feb 2005 13:21:30 +0100 Date: Tue, 22 Feb 2005 13:21:30 +0100 From: Vincent Lefevre To: xslt@gnome.org Subject: Re: [xslt] handling of < in CDATA sections Message-ID: <20050222122130.GG10679@ay.vinc17.org> Mail-Followup-To: xslt@gnome.org References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> <20050222111132.GD10679@ay.vinc17.org> <421B1A48.9070806@riks.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <421B1A48.9070806@riks.nl> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.8-vl-20050218i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 12:21:33 -0000 On 2005-02-22 12:40:56 +0100, Roel Vanhout wrote: > Vincent Lefevre wrote: > >This is not cheating, this is exactly what you want to do: create > >a processing-instruction, right? > > Well I want to create a php tag, and php tags just happen to look > like processing instructions, so that's why I'd consider it > cheating. But you're right, it depends on how you look at it :) They don't just look like. They exactly *are* processing instructions. > I think it has something to do with the fact that the output format > is html; if I try to change the element in your example to > , I get the following output: > > C:\>xsltproc pitext.xsl pitest.xml > $var = 0; > > Yes, ditto here. To get the XML behavior, one needs xsltproc probably defaults to html output when the root element of the output is "html". I don't know what SGML PI's look like, so I don't know if this is a bug or not. You can still specify the ending "?" in your stylesheet, as Daniel said. > >BTW, this is much cleaner than the solution based on escaping > >(proposed by Daniel), IMHO. Disabling escaping is evil. > > Well at this point I'm just trying to get a working solution, that's > all :) Thanks anyway for guiding me on the way to Enlightenment ;) The advantage of avoiding output escaping is that the stylesheet is more maintainable and there is more guarantee that the output is well-formed. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA From veillard@redhat.com Tue Feb 22 07:31:42 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50A4A3B0F65 for ; Tue, 22 Feb 2005 07:31:42 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14966-05 for ; Tue, 22 Feb 2005 07:31:41 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id EAB073B0AD3 for ; Tue, 22 Feb 2005 07:31:40 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1MCVeiJ002196 for ; Tue, 22 Feb 2005 07:31:40 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1MCVeK01468 for ; Tue, 22 Feb 2005 07:31:40 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1MCVedm014939 for ; Tue, 22 Feb 2005 07:31:40 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1MCVeE5014937 for xslt@gnome.org; Tue, 22 Feb 2005 07:31:40 -0500 Date: Tue, 22 Feb 2005 07:31:40 -0500 From: Daniel Veillard To: xslt@gnome.org Subject: Re: [xslt] handling of < in CDATA sections Message-ID: <20050222123140.GN15979@redhat.com> References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> <20050222104850.GM15979@redhat.com> <20050222112119.GE10679@ay.vinc17.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050222112119.GE10679@ay.vinc17.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 12:31:42 -0000 On Tue, Feb 22, 2005 at 12:21:19PM +0100, Vincent Lefevre wrote: > On 2005-02-22 05:48:50 -0500, Daniel Veillard wrote: > > An XML PI does not end with ?> but with > > > The XML spec says the opposite. hum, it's the way around. depends what his stylesheet output says. > > so .... > > > > > > $var = 0; > > ? > > > > should do what you want ! > > No, http://www.w3.org/TR/xslt#section-Creating-Processing-Instructions > says: > > For example, this > > href="book.css" type="text/css" > > would create the processing instruction > > again assuming an XML output. it creates a logical PI node, serialization is a separated step which is not even mandatory. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From rvanhout@riks.nl Tue Feb 22 07:31:45 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BD64B3B0D8D for ; Tue, 22 Feb 2005 07:31:44 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14966-06 for ; Tue, 22 Feb 2005 07:31:42 -0500 (EST) Received: from smtp.unimaas.nl (umwin0021.unimaas.nl [137.120.1.21]) by menubar.gnome.org (Postfix) with ESMTP id A159D3B0EB4 for ; Tue, 22 Feb 2005 07:31:41 -0500 (EST) Received: from enceladus.riks.nl ([137.120.111.16]) by smtp.unimaas.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 13:31:41 +0100 Received: from [137.120.111.34] ([137.120.111.34]) by enceladus.riks.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 22 Feb 2005 13:43:59 +0100 Message-ID: <421B270B.60605@riks.nl> Date: Tue, 22 Feb 2005 13:35:23 +0100 From: Roel Vanhout User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The Gnome XSLT library mailing-list Subject: Re: [xslt] handling of < in CDATA sections References: <421AFDDB.5020800@riks.nl> <20050222100354.GC10679@ay.vinc17.org> <421B09B9.3080306@riks.nl> <20050222111132.GD10679@ay.vinc17.org> <421B1A48.9070806@riks.nl> <20050222122130.GG10679@ay.vinc17.org> In-Reply-To: <20050222122130.GG10679@ay.vinc17.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Feb 2005 12:43:59.0488 (UTC) FILETIME=[2E144800:01C518DC] X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 12:31:45 -0000 Vincent Lefevre wrote: > They don't just look like. They exactly *are* processing instructions. Hmm I never thought about them like that, but now that I do I think you are right. Thanks. > xsltproc probably defaults to html output when the root element of > the output is "html". I don't know what SGML PI's look like, so I > don't know if this is a bug or not. You can still specify the ending > "?" in your stylesheet, as Daniel said. Ok I see now, when the root element is the processing instruction is an SGML PI, and according to http://www.w3.org/TR/WD-html40-970917/intro/sgmltut.html, those do not end in ?> but in >. So it looks like xsltproc's behaviour is right. Sorry for the noise, the details of xml/xslt turn out to be hard for me again and again :) cheers, roel From roeland.muys@dsoft.be Tue Feb 22 09:05:09 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3AF033B17F2 for ; Tue, 22 Feb 2005 09:05:09 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22255-04 for ; Tue, 22 Feb 2005 09:05:06 -0500 (EST) Received: from olympus.dsoft.be (d5152CB14.access.telenet.be [81.82.203.20]) by menubar.gnome.org (Postfix) with ESMTP id ED6F43B1801 for ; Tue, 22 Feb 2005 09:04:54 -0500 (EST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Tue, 22 Feb 2005 15:03:14 +0100 Message-ID: <0728B7E65FD8804BAC6C0BC1379F1F5F4829D8@olympus.dsoft.be> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: handling of < in CDATA sections (Roel Vanhout) thread-index: AcUY0LPg8PSMyyT8Q12f5QhIJpx1CgAFizbA From: "Roeland Muys" To: X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] RE: Re: handling of < in CDATA sections (Roel Vanhout) X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 14:05:09 -0000 >From what I have read in http://www.w3.org/TR/xslt#section-HTML-Output-Method, it also depends on the output method: "The html output method should terminate processing instructions with > rather than ?>."=20 Roeland From gnome-xslt@m.gmane.org Thu Feb 24 17:04:20 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7F393B0FAB for ; Thu, 24 Feb 2005 17:04:20 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07401-07 for ; Thu, 24 Feb 2005 17:04:19 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 5ABBD3B12A9 for ; Thu, 24 Feb 2005 17:04:19 -0500 (EST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1D4R1p-00046c-F9 for xslt@gnome.org; Thu, 24 Feb 2005 23:00:13 +0100 Received: from 66.74-182-adsl-pool.axelero.hu ([81.182.74.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2005 23:00:13 +0100 Received: from Daniel.Bonniot by 66.74-182-adsl-pool.axelero.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2005 23:00:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: xslt@gnome.org From: Daniel Bonniot Date: Thu, 24 Feb 2005 22:57:04 +0100 Lines: 30 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 66.74-182-adsl-pool.axelero.hu User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: gnome-xslt@m.gmane.org X-MailScanner-To: xslt@gnome.org X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] xsltproc error : Operation in progress X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 22:04:21 -0000 Hi, I'm running xsltproc, and I expect it to load stylesheets from the net, and I'm getting: error : Operation in progress warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/VERSION" compilation error: file http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl line 24 element include xsl:include : unable to load http://docbook.sourceforge.net/release/xsl/current/VERSION (and several others) If I rerun the command, I will get other files failing, in another order. So it seems loading runs in parallel, and some of them fail. If I try to wget those URLs, that succeeds, so I don't think this is a connectivity problem (I did not find any proxy setting). For what it's worth, I'm running the command on shell.sourceforge.net. I know I could download the stylesheets locally and use a catalog, but I would rather use the net. Any idea what is going wrong? Daniel -- The Nice programming language: http://nice.sf.net From veillard@redhat.com Thu Feb 24 17:13:04 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DFC03B1C39 for ; Thu, 24 Feb 2005 17:13:03 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08043-01 for ; Thu, 24 Feb 2005 17:13:02 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 4968C3B118E for ; Thu, 24 Feb 2005 17:12:45 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1OMCitu017063 for ; Thu, 24 Feb 2005 17:12:44 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1OMCiK29874 for ; Thu, 24 Feb 2005 17:12:44 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1OMCitY017562 for ; Thu, 24 Feb 2005 17:12:44 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1OMCipY017560 for xslt@gnome.org; Thu, 24 Feb 2005 17:12:44 -0500 Date: Thu, 24 Feb 2005 17:12:44 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] xsltproc error : Operation in progress Message-ID: <20050224221244.GP27064@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 22:13:04 -0000 On Thu, Feb 24, 2005 at 10:57:04PM +0100, Daniel Bonniot wrote: > If I rerun the command, I will get other files failing, in another order. > So it seems loading runs in parallel, and some of them fail. it's not in parallel. Processing docbook.xsl will require VERSION.xsl so both are open in parallel but only one is read at a time. > If I try to wget those URLs, that succeeds, so I don't think this is a > connectivity problem (I did not find any proxy setting). For what it's http_proxy environment variable IIRC. > worth, I'm running the command on shell.sourceforge.net. > > I know I could download the stylesheets locally and use a catalog, but I > would rather use the net. Any idea what is going wrong? I think it's really a connection or server problem. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From gnome-xslt@m.gmane.org Thu Feb 24 17:23:10 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB3823B0AD8 for ; Thu, 24 Feb 2005 17:23:09 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08737-09 for ; Thu, 24 Feb 2005 17:23:06 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id BC2C23B0924 for ; Thu, 24 Feb 2005 17:23:05 -0500 (EST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D4RK3-0006mj-2v for xslt@gnome.org; Thu, 24 Feb 2005 23:19:03 +0100 Received: from 66.74-182-adsl-pool.axelero.hu ([81.182.74.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2005 23:19:03 +0100 Received: from Daniel.Bonniot by 66.74-182-adsl-pool.axelero.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2005 23:19:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: xslt@gnome.org From: Daniel Bonniot Date: Thu, 24 Feb 2005 23:22:32 +0100 Lines: 40 Message-ID: References: <20050224221244.GP27064@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 66.74-182-adsl-pool.axelero.hu User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en In-Reply-To: <20050224221244.GP27064@redhat.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: gnome-xslt@m.gmane.org X-MailScanner-To: xslt@gnome.org X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] Re: xsltproc error : Operation in progress X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 22:23:10 -0000 Daniel, thanks for your fast answer. Daniel Veillard wrote: > On Thu, Feb 24, 2005 at 10:57:04PM +0100, Daniel Bonniot wrote: > >>If I rerun the command, I will get other files failing, in another order. >>So it seems loading runs in parallel, and some of them fail. > > > it's not in parallel. Processing docbook.xsl will require VERSION.xsl > so both are open in parallel but only one is read at a time. OK. I just mean it looks like the order is not deterministic. In another run the first failure is with param.xsl. In another with lib.xsl >>If I try to wget those URLs, that succeeds, so I don't think this is a >>connectivity problem (I did not find any proxy setting). For what it's > > > http_proxy environment variable IIRC. Yeah, I checked, htt_prox is unset, and I don't have a ~/.wgetrc >>worth, I'm running the command on shell.sourceforge.net. >> >>I know I could download the stylesheets locally and use a catalog, but I >>would rather use the net. Any idea what is going wrong? > > > I think it's really a connection or server problem. Now I tried with wget --proxy=off, which explicitely disables proxy usage, and I can still download everything. It does not look like a proxy problem. Would the strace help? Daniel -- The Nice programming language: http://nice.sf.net From veillard@redhat.com Thu Feb 24 17:30:54 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 089D43B0924 for ; Thu, 24 Feb 2005 17:30:54 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08928-06 for ; Thu, 24 Feb 2005 17:30:53 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id E99963B08C8 for ; Thu, 24 Feb 2005 17:30:52 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1OMUq16021734 for ; Thu, 24 Feb 2005 17:30:52 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1OMUlK03107 for ; Thu, 24 Feb 2005 17:30:47 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j1OMUlv5026002 for ; Thu, 24 Feb 2005 17:30:47 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j1OMUlW3026000 for xslt@gnome.org; Thu, 24 Feb 2005 17:30:47 -0500 Date: Thu, 24 Feb 2005 17:30:47 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Subject: Re: [xslt] Re: xsltproc error : Operation in progress Message-ID: <20050224223047.GQ27064@redhat.com> References: <20050224221244.GP27064@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 22:30:54 -0000 On Thu, Feb 24, 2005 at 11:22:32PM +0100, Daniel Bonniot wrote: > Would the strace help? Too complex I'm afraid. I would not have time. A catalog is still the preferred way, even the behaviour you state sounds suspicious. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From roeland.muys@dsoft.be Fri Feb 25 02:26:39 2005 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA2DB3B1386 for ; Fri, 25 Feb 2005 02:26:39 -0500 (EST) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01737-07 for ; Fri, 25 Feb 2005 02:26:37 -0500 (EST) Received: from olympus.dsoft.be (d5152CB14.access.telenet.be [81.82.203.20]) by menubar.gnome.org (Postfix) with ESMTP id 872AA3B12E1 for ; Fri, 25 Feb 2005 02:26:34 -0500 (EST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Fri, 25 Feb 2005 08:24:50 +0100 Message-ID: <0728B7E65FD8804BAC6C0BC1379F1F5F482A2B@olympus.dsoft.be> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: libxslt on MacOS9? thread-index: AcUNPuBScuHCeniGTDeoYvPcJ+VwrgFYu1MgAhpCFyA= From: "Roeland Muys" To: X-Virus-Scanned: by amavisd-new at gnome.org Subject: [xslt] RE: libxslt on MacOS9? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2005 07:26:39 -0000 > I cannot seem to find binaries for MacOS9, but I am no Mac=20 > expert. Are such binaries available anywhere? Does anyone know of someone who would be so kind as to make such a build? It would be much appreciated. Roeland