From pbergeron@innobec.com Fri Jan 4 20:51:28 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DAC27500C6 for ; Fri, 4 Jan 2008 20:51:28 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.75 X-Spam-Level: X-Spam-Status: No, score=-0.75 tagged_above=-999 required=2 tests=[BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_90_100=0.113, HTML_MESSAGE=0.001, L_P0F_Unix=-1] X-Amavis-OS-Fingerprint: FreeBSD 6.x (1) (up: 7064 hrs), (distance 14, link: ethernet/modem), [63.208.196.179] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rVls04XEyUEi for ; Fri, 4 Jan 2008 20:51:23 +0000 (GMT) Received: from mho-02-bos.mailhop.org (mho-02-bos.mailhop.org [63.208.196.179]) by menubar.gnome.org (Postfix) with ESMTP id DCD41750097 for ; Fri, 4 Jan 2008 20:51:22 +0000 (GMT) Received: from mtlxpqak-1242544857.sdsl.bell.ca ([74.15.186.217] helo=innobec.com) by mho-02-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JAtVg-000IL1-U9 for xslt@gnome.org; Fri, 04 Jan 2008 20:51:21 +0000 Received: from [172.16.31.189] (helo=rosario) by innobec.com with esmtps (Exim 4.50 #1 (Debian)) id 1JAtVg-0002Zo-0q for ; Fri, 04 Jan 2008 15:51:20 -0500 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 74.15.186.217 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+sBr8frErHO/tIrnpKs1vUobGEMxZfd/k= From: "Patrick Bergeron" To: Date: Fri, 4 Jan 2008 15:51:19 -0500 Message-ID: <030601c84f13$8ebcf420$ac36dc60$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0307_01C84EE9.A5E6EC20" X-Mailer: Microsoft Office Outlook 12.0 thread-index: AchPE45zeTwSZelRR4yh8ghslXv2wA== Content-Language: en-us X-SA-Exim-Connect-IP: 172.16.31.189 X-SA-Exim-Mail-From: pbergeron@innobec.com X-SA-Exim-Scanned: No (on innobec.com); SAEximRunCond expanded to false Subject: [xslt] xsltproc on Windows CE X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 20:51:28 -0000 This is a multipart message in MIME format. ------=_NextPart_000_0307_01C84EE9.A5E6EC20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi guys, Has anyone ported xsltproc to Windows CE using eVC4 ? Much research on the web, little turning up. Regards Patrick Bergeron ------=_NextPart_000_0307_01C84EE9.A5E6EC20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

Hi guys,

 

Has anyone ported xsltproc to Windows CE  = using eVC4 ?

 

Much research on the web, little turning = up.

 

Regards

Patrick Bergeron

------=_NextPart_000_0307_01C84EE9.A5E6EC20-- From dev001@pas-world.com Tue Jan 8 12:49:19 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D248D75025B for ; Tue, 8 Jan 2008 12:49:19 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.143 X-Spam-Level: X-Spam-Status: No, score=-1.143 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, RCVD_IN_SORBS_WEB=1.456] X-Amavis-OS-Fingerprint: Linux 2.4-2.6 (up: 534 hrs), (distance 10, link: ethernet/modem), [65.19.169.34] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fJCFhA9PUDcu for ; Tue, 8 Jan 2008 12:49:14 +0000 (GMT) Received: from babylon.hostgo.com (babylon.hostgo.com [65.19.169.34]) by menubar.gnome.org (Postfix) with ESMTP id F2EA7750147 for ; Tue, 8 Jan 2008 12:49:13 +0000 (GMT) Received: from [217.168.1.118] (helo=[192.168.0.10]) by babylon.hostgo.com with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1JCDtF-0007Yi-BH for xslt@gnome.org; Tue, 08 Jan 2008 07:49:11 -0500 From: "http://www.pas-world.com" To: xslt@gnome.org Content-Type: text/plain Date: Tue, 08 Jan 2008 13:48:09 +0100 Message-Id: <1199796489.7249.5.camel@secure.precioventa.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-33.el5) Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - babylon.hostgo.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pas-world.com X-Source: X-Source-Args: X-Source-Dir: Subject: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 08 Jan 2008 12:49:20 -0000 Hello, I am trying to do something like this in XSL stylesheet: using variables works under Mozilla Firefox processor, but do not work under PHP XSLT Processor that is based in xmlsoft.org. Anyone know if this syntax should work? -- Publicidad http://www.pas-world.com From brettz9@yahoo.com Tue Jan 8 13:17:07 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B8B07750141 for ; Tue, 8 Jan 2008 13:17:07 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.183 X-Spam-Level: * X-Spam-Status: No, score=1.183 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, L_P0F_Unix=-1, RCVD_IN_NJABL_PROXY=0.721] X-Amavis-OS-Fingerprint: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) (up: 5896 hrs), (distance 9, link: ethernet/modem), [69.147.95.73] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s+1EAUn4EggN for ; Tue, 8 Jan 2008 13:16:59 +0000 (GMT) Received: from smtp110.plus.mail.sp1.yahoo.com (smtp110.plus.mail.sp1.yahoo.com [69.147.95.73]) by menubar.gnome.org (Postfix) with SMTP id 13EE575011F for ; Tue, 8 Jan 2008 13:16:58 +0000 (GMT) Received: (qmail 47744 invoked from network); 8 Jan 2008 13:16:57 -0000 Received: from unknown (HELO ?192.168.0.157?) (brettz9@219.133.147.55 with plain) by smtp110.plus.mail.sp1.yahoo.com with SMTP; 8 Jan 2008 13:16:56 -0000 X-YMail-OSG: SN7y3WIVM1ktoUU0D7IWdjJgzvgUcLdEP3s0If6B_lyOYI2rxAes8oQWCSa0WW6oOmQz8p4fHpkDaQWaE9BfmBVQYGwPLRAIhhkYX8fqm3q_at.sOQ-- Message-ID: <478377C2.2090002@yahoo.com> Date: Tue, 08 Jan 2008 21:16:50 +0800 From: Brett Zamir User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <1199796489.7249.5.camel@secure.precioventa.com> In-Reply-To: <1199796489.7249.5.camel@secure.precioventa.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 08 Jan 2008 13:17:07 -0000 If you're including the item below as a string in PHP (in double quotes or a HEREDOC), don't forget to use a backslash to escape the $var so that PHP doesn't try to treat it as its own PHP variable... Thus, try: Brett http://www.pas-world.com wrote: > Hello, > I am trying to do something like this in XSL stylesheet: > > > > > using variables works under Mozilla Firefox processor, but do not work > under PHP XSLT Processor that is based in xmlsoft.org. > > > Anyone know if this syntax should work? > > From brettz9@yahoo.com Tue Jan 8 13:20:07 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 493677501D8 for ; Tue, 8 Jan 2008 13:20:07 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.504 X-Spam-Level: * X-Spam-Status: No, score=1.504 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_50_60=0.134, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_NJABL_PROXY=0.721] X-Amavis-OS-Fingerprint: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) (up: 5896 hrs), (distance 13, link: ethernet/modem), [69.147.95.71] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L-ccsWcXQIzw for ; Tue, 8 Jan 2008 13:20:00 +0000 (GMT) Received: from smtp108.plus.mail.sp1.yahoo.com (smtp108.plus.mail.sp1.yahoo.com [69.147.95.71]) by menubar.gnome.org (Postfix) with SMTP id A27F17501D2 for ; Tue, 8 Jan 2008 13:20:00 +0000 (GMT) Received: (qmail 89965 invoked from network); 8 Jan 2008 13:19:58 -0000 Received: from unknown (HELO ?192.168.0.157?) (brettz9@219.133.147.55 with plain) by smtp108.plus.mail.sp1.yahoo.com with SMTP; 8 Jan 2008 13:19:58 -0000 X-YMail-OSG: rSjRHi4VM1ks9Bk8UFSkYrXQa2IR68.NHTijtC1RQlGk7Xnu4Jcr18KHHW5BC.sT.kxz72z06A-- Message-ID: <47837877.4070707@yahoo.com> Date: Tue, 08 Jan 2008 21:19:51 +0800 From: Brett Zamir User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <1199796489.7249.5.camel@secure.precioventa.com> In-Reply-To: <1199796489.7249.5.camel@secure.precioventa.com> Content-Type: multipart/alternative; boundary="------------040904090007000207050606" Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 08 Jan 2008 13:20:07 -0000 This is a multi-part message in MIME format. --------------040904090007000207050606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit One more common tip you might miss... If you are using entities (in your XML or XSL), add something like the following before loading: |$xml = new DOMDocument; $xml->resolveExternals = true; $xml->substituteEntities = true; $xml->loadXML($xmlstring);| --------------040904090007000207050606 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit One more common tip you might miss...

If you are using entities (in your XML or XSL), add something like the following before loading:

$xml = new DOMDocument;
$xml->resolveExternals = true;
$xml->substituteEntities = true;
$xml->loadXML($xmlstring);

--------------040904090007000207050606-- From dev001@pas-world.com Tue Jan 8 14:43:28 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A135A750090 for ; Tue, 8 Jan 2008 14:43:28 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.415 X-Spam-Level: X-Spam-Status: No, score=0.415 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, RCVD_IN_SORBS_WEB=1.456] X-Amavis-OS-Fingerprint: Linux 2.4-2.6 (up: 536 hrs), (distance 10, link: ethernet/modem), [65.19.169.34] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XYCOvxT9vwIx for ; Tue, 8 Jan 2008 14:43:25 +0000 (GMT) Received: from babylon.hostgo.com (babylon.hostgo.com [65.19.169.34]) by menubar.gnome.org (Postfix) with ESMTP id 03DF6750201 for ; Tue, 8 Jan 2008 14:43:24 +0000 (GMT) Received: from [217.168.3.246] (helo=[192.168.0.10]) by babylon.hostgo.com with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1JCFfj-0001uR-Tu for xslt@gnome.org; Tue, 08 Jan 2008 09:43:22 -0500 From: "http://www.pas-world.com" To: The Gnome XSLT library mailing-list In-Reply-To: <47837877.4070707@yahoo.com> References: <1199796489.7249.5.camel@secure.precioventa.com> <47837877.4070707@yahoo.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 08 Jan 2008 15:42:23 +0100 Message-Id: <1199803343.7874.12.camel@secure.precioventa.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-33.el5) Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - babylon.hostgo.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pas-world.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 08 Jan 2008 14:43:28 -0000 Do not work for me with XSL like this: ... result of this (->transformToXml) is: ... ... value attribute has not value, should be "valor", null or empty seems. If I replace {$test} with {sum(1+1)}, stop with any warning or any results, using {count(..)} return a value of 1. With {position()} works fine return 1,2,3,.. El mar, 08-01-2008 a las 21:19 +0800, Brett Zamir escribi=C3=B3: > One more common tip you might miss... >=20 > If you are using entities (in your XML or XSL), add something like the > following before loading: >=20 > $xml =3D new DOMDocument; > $xml->resolveExternals =3D true; > $xml->substituteEntities =3D true; > $xml->loadXML($xmlstring);=20 From brettz9@yahoo.com Tue Jan 8 14:47:40 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 95ACC750295 for ; Tue, 8 Jan 2008 14:47:40 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.856 X-Spam-Level: X-Spam-Status: No, score=-0.856 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_NJABL_PROXY=0.721] X-Amavis-OS-Fingerprint: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) (up: 5898 hrs), (distance 16, link: ethernet/modem), [209.191.106.155] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zRsijLGF0Tx7 for ; Tue, 8 Jan 2008 14:47:32 +0000 (GMT) Received: from smtp124.plus.mail.mud.yahoo.com (smtp124.plus.mail.mud.yahoo.com [209.191.106.155]) by menubar.gnome.org (Postfix) with SMTP id B496C750287 for ; Tue, 8 Jan 2008 14:47:25 +0000 (GMT) Received: (qmail 5012 invoked from network); 8 Jan 2008 14:47:24 -0000 Received: from unknown (HELO ?192.168.0.157?) (brettz9@219.133.147.55 with plain) by smtp124.plus.mail.mud.yahoo.com with SMTP; 8 Jan 2008 14:47:22 -0000 X-YMail-OSG: .tSCpjoVM1nYRsrY5LXmqJjM6JOWqyurbK5Fsrj1nwqdEoDilS3UAezS69BulnBC0L88kyjlu3B8KqG5aj_hQrZkHKSDzkZIMSNjVQbxLrxsA4Td2eE- Message-ID: <47838CF2.7040200@yahoo.com> Date: Tue, 08 Jan 2008 22:47:14 +0800 From: Brett Zamir User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <1199796489.7249.5.camel@secure.precioventa.com> <47837877.4070707@yahoo.com> <1199803343.7874.12.camel@secure.precioventa.com> In-Reply-To: <1199803343.7874.12.camel@secure.precioventa.com> Content-Type: multipart/alternative; boundary="------------090202070408020702020408" Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 08 Jan 2008 14:47:40 -0000 This is a multi-part message in MIME format. --------------090202070408020702020408 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit A complete working example with XML and XSL would be helpful...Did you try adding a backslash \ to the $ in the variables? Brett http://www.pas-world.com wrote: > Do not work for me with XSL like this: > > > > > > > tipo="input" class="[required:true]" value="{$test}"/> > ... > > result of this (->transformToXml) is: > > ... > tipo="input" class="[required:true]" value=""/> > ... > > value attribute has not value, should be "valor", null or empty seems. > > If I replace {$test} with {sum(1+1)}, stop with any warning or any > results, using {count(..)} return a value of 1. With {position()} works > fine return 1,2,3,.. > > > > > > > El mar, 08-01-2008 a las 21:19 +0800, Brett Zamir escribió: > >> One more common tip you might miss... >> >> If you are using entities (in your XML or XSL), add something like the >> following before loading: >> >> $xml = new DOMDocument; >> $xml->resolveExternals = true; >> $xml->substituteEntities = true; >> $xml->loadXML($xmlstring); >> > > > _______________________________________________ > xslt mailing list, project page http://xmlsoft.org/XSLT/ > xslt@gnome.org > http://mail.gnome.org/mailman/listinfo/xslt > --------------090202070408020702020408 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit A complete working example with XML and XSL would be helpful...Did you try adding a backslash \  to the $ in the variables?

Brett

http://www.pas-world.com wrote:
Do not work for me with XSL like this:

<xsl:variable name="test"			select="valor"/>
<xsl:for-each select="items/datos">
<xsl:sort select="@fecha"/>
<tr>
<td>
<input name="item_db_ids[]" type="checkbox" id="item_db_ids"
tipo="input" class="[required:true]"  value="{$test}"/>
...

result of this (->transformToXml) is:

...
<input name="item_db_ids[]" type="checkbox" id="item_db_ids"
tipo="input" class="[required:true]" value=""/>
...

value attribute has not value, should be "valor", null or empty seems.

If I replace {$test} with {sum(1+1)}, stop with any warning or any
results, using {count(..)} return a value of 1. With {position()} works
fine return 1,2,3,..






El mar, 08-01-2008 a las 21:19 +0800, Brett Zamir escribió:
  
One more common tip you might miss...

If you are using entities (in your XML or XSL), add something like the
following before loading:

$xml = new DOMDocument;
$xml->resolveExternals = true;
$xml->substituteEntities = true;
$xml->loadXML($xmlstring); 
    


_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
xslt@gnome.org
http://mail.gnome.org/mailman/listinfo/xslt
  

--------------090202070408020702020408-- From brettz9@yahoo.com Tue Jan 8 14:49:58 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA2DD750141 for ; Tue, 8 Jan 2008 14:49:58 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.856 X-Spam-Level: X-Spam-Status: No, score=-0.856 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_NJABL_PROXY=0.721] X-Amavis-OS-Fingerprint: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) (up: 5898 hrs), (distance 16, link: ethernet/modem), [209.191.106.155] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0uugHU+lCmdP for ; Tue, 8 Jan 2008 14:49:50 +0000 (GMT) Received: from smtp124.plus.mail.mud.yahoo.com (smtp124.plus.mail.mud.yahoo.com [209.191.106.155]) by menubar.gnome.org (Postfix) with SMTP id 35AA275009C for ; Tue, 8 Jan 2008 14:49:50 +0000 (GMT) Received: (qmail 5462 invoked from network); 8 Jan 2008 14:49:48 -0000 Received: from unknown (HELO ?192.168.0.157?) (brettz9@219.133.147.55 with plain) by smtp124.plus.mail.mud.yahoo.com with SMTP; 8 Jan 2008 14:49:47 -0000 X-YMail-OSG: bGe.RFUVM1kKVGxcYROrS5ofdKVHnSEXXpfci4t57Kt7.MSAmh3lQqUAE2lg8NrDvnefNAzh3j_J2LMn20NYsbYg8cvjyTn2alSvSbJAzzM2kLKuO1A- Message-ID: <47838D83.7060703@yahoo.com> Date: Tue, 08 Jan 2008 22:49:39 +0800 From: Brett Zamir User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <1199796489.7249.5.camel@secure.precioventa.com> <47837877.4070707@yahoo.com> <1199803343.7874.12.camel@secure.precioventa.com> In-Reply-To: <1199803343.7874.12.camel@secure.precioventa.com> Content-Type: multipart/alternative; boundary="------------080302020001040703000604" Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 08 Jan 2008 14:49:59 -0000 This is a multi-part message in MIME format. --------------080302020001040703000604 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit To have a literal, you need to have the @select like select= "'valor'" with apostrophes instead of the quotation marks... Otherwise it looks for an element called valor within the context Brett http://www.pas-world.com wrote: > Do not work for me with XSL like this: > > > > > > > tipo="input" class="[required:true]" value="{$test}"/> > ... > > result of this (->transformToXml) is: > > ... > tipo="input" class="[required:true]" value=""/> > ... > > value attribute has not value, should be "valor", null or empty seems. > > If I replace {$test} with {sum(1+1)}, stop with any warning or any > results, using {count(..)} return a value of 1. With {position()} works > fine return 1,2,3,.. > > > > > > > El mar, 08-01-2008 a las 21:19 +0800, Brett Zamir escribió: > >> One more common tip you might miss... >> >> If you are using entities (in your XML or XSL), add something like the >> following before loading: >> >> $xml = new DOMDocument; >> $xml->resolveExternals = true; >> $xml->substituteEntities = true; >> $xml->loadXML($xmlstring); >> > > > _______________________________________________ > xslt mailing list, project page http://xmlsoft.org/XSLT/ > xslt@gnome.org > http://mail.gnome.org/mailman/listinfo/xslt > --------------080302020001040703000604 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit To have a literal, you need to have the @select like select= "'valor'"  with apostrophes instead of the quotation marks... Otherwise it looks for an element called valor within the context

Brett

http://www.pas-world.com wrote:
Do not work for me with XSL like this:

<xsl:variable name="test"			select="valor"/>
<xsl:for-each select="items/datos">
<xsl:sort select="@fecha"/>
<tr>
<td>
<input name="item_db_ids[]" type="checkbox" id="item_db_ids"
tipo="input" class="[required:true]"  value="{$test}"/>
...

result of this (->transformToXml) is:

...
<input name="item_db_ids[]" type="checkbox" id="item_db_ids"
tipo="input" class="[required:true]" value=""/>
...

value attribute has not value, should be "valor", null or empty seems.

If I replace {$test} with {sum(1+1)}, stop with any warning or any
results, using {count(..)} return a value of 1. With {position()} works
fine return 1,2,3,..






El mar, 08-01-2008 a las 21:19 +0800, Brett Zamir escribió:
  
One more common tip you might miss...

If you are using entities (in your XML or XSL), add something like the
following before loading:

$xml = new DOMDocument;
$xml->resolveExternals = true;
$xml->substituteEntities = true;
$xml->loadXML($xmlstring); 
    


_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
xslt@gnome.org
http://mail.gnome.org/mailman/listinfo/xslt
  

--------------080302020001040703000604-- From sebastian.rahtz@oucs.ox.ac.uk Tue Jan 8 14:50:20 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DD7457501A4 for ; Tue, 8 Jan 2008 14:50:20 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50=0.001] X-Amavis-OS-Fingerprint: Linux 2.6, seldom 2.4 (older, 4) (NAT!) (up: 10092 hrs), (distance 22, link: GPRS, T1, FreeS/WAN), [129.67.1.163] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OqTWkcY4O+vC for ; Tue, 8 Jan 2008 14:50:14 +0000 (GMT) Received: from relay4.mail.ox.ac.uk (relay4.mail.ox.ac.uk [129.67.1.163]) by menubar.gnome.org (Postfix) with ESMTP id ACB3A750201 for ; Tue, 8 Jan 2008 14:50:12 +0000 (GMT) Received: from smtp0.mail.ox.ac.uk ([129.67.1.205]) by relay4.mail.ox.ac.uk with esmtp (Exim 4.68) (envelope-from ) id 1JCFmM-0007EF-Ea for xslt@gnome.org; Tue, 08 Jan 2008 14:50:10 +0000 Received: from rahtz.oucs.ox.ac.uk ([129.67.100.16]) by smtp0.mail.ox.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JCFmL-0006b3-2L for xslt@gnome.org; Tue, 08 Jan 2008 14:50:10 +0000 Message-ID: <47838D9E.6030209@oucs.ox.ac.uk> Date: Tue, 08 Jan 2008 14:50:06 +0000 From: Sebastian Rahtz User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <1199796489.7249.5.camel@secure.precioventa.com> <47837877.4070707@yahoo.com> <1199803343.7874.12.camel@secure.precioventa.com> <47838CF2.7040200@yahoo.com> In-Reply-To: <47838CF2.7040200@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Oxford-Username: rahtz Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 08 Jan 2008 14:50:21 -0000 means "the contents of the element . Did you mean -- Sebastian Rahtz Information Manager, Oxford University Computing Services 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431 From dev001@pas-world.com Wed Jan 9 09:29:41 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 01D4A75014C for ; Wed, 9 Jan 2008 09:29:41 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.4-2.6 (up: 554 hrs), (distance 11, link: ethernet/modem), [65.19.169.34] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NtkUzEeJZpy7 for ; Wed, 9 Jan 2008 09:29:36 +0000 (GMT) Received: from babylon.hostgo.com (babylon.hostgo.com [65.19.169.34]) by menubar.gnome.org (Postfix) with ESMTP id DB5C97500FB for ; Wed, 9 Jan 2008 09:29:36 +0000 (GMT) Received: from [217.168.4.250] (helo=[192.168.0.10]) by babylon.hostgo.com with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1JCXFZ-0004AN-EW for xslt@gnome.org; Wed, 09 Jan 2008 04:29:31 -0500 From: "http://www.pas-world.com" To: The Gnome XSLT library mailing-list In-Reply-To: <47838D9E.6030209@oucs.ox.ac.uk> References: <1199796489.7249.5.camel@secure.precioventa.com> <47837877.4070707@yahoo.com> <1199803343.7874.12.camel@secure.precioventa.com> <47838CF2.7040200@yahoo.com> <47838D9E.6030209@oucs.ox.ac.uk> Content-Type: text/plain; charset=utf-8 Date: Wed, 09 Jan 2008 10:28:25 +0100 Message-Id: <1199870905.5783.4.camel@secure.precioventa.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-33.el5) Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - babylon.hostgo.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pas-world.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 09:29:41 -0000 Good point, valor is not 'valor' (string). But, why Do not work {sum(1 + 1)}? El mar, 08-01-2008 a las 14:50 +0000, Sebastian Rahtz escribi=C3=B3: > >=20 > means "the contents of the element . Did you mean >=20 > >=20 From sebastian.rahtz@oucs.ox.ac.uk Wed Jan 9 09:58:31 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68AE575010A for ; Wed, 9 Jan 2008 09:58:31 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50=0.001] X-Amavis-OS-Fingerprint: Linux 2.6, seldom 2.4 (older, 4) (NAT!) (up: 194 hrs), (distance 22, link: GPRS, T1, FreeS/WAN), [129.67.1.165] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hxBCoYFNEYul for ; Wed, 9 Jan 2008 09:58:23 +0000 (GMT) Received: from relay1.mail.ox.ac.uk (relay1.mail.ox.ac.uk [129.67.1.165]) by menubar.gnome.org (Postfix) with ESMTP id 426E775000B for ; Wed, 9 Jan 2008 09:58:23 +0000 (GMT) Received: from smtp2.mail.ox.ac.uk ([163.1.2.205]) by relay1.mail.ox.ac.uk with esmtp (Exim 4.68) (envelope-from ) id 1JCXhV-0007KV-3s for xslt@gnome.org; Wed, 09 Jan 2008 09:58:21 +0000 Received: from rahtz.oucs.ox.ac.uk ([129.67.100.16]) by smtp2.mail.ox.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JCXhV-0007nM-6q for xslt@gnome.org; Wed, 09 Jan 2008 09:58:21 +0000 Message-ID: <47849ABC.9020306@oucs.ox.ac.uk> Date: Wed, 09 Jan 2008 09:58:20 +0000 From: Sebastian Rahtz User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <1199796489.7249.5.camel@secure.precioventa.com> <47837877.4070707@yahoo.com> <1199803343.7874.12.camel@secure.precioventa.com> <47838CF2.7040200@yahoo.com> <47838D9E.6030209@oucs.ox.ac.uk> <1199870905.5783.4.camel@secure.precioventa.com> In-Reply-To: <1199870905.5783.4.camel@secure.precioventa.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Oxford-Username: rahtz Subject: Re: [xslt] Xpath commands inside attributes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 09:58:31 -0000 http://www.pas-world.com wrote: > But, why Do not work {sum(1 + 1)}? > > because the sum function operates on a nodeset? why not just "{1 + 1}"? -- Sebastian Rahtz Information Manager, Oxford University Computing Services 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431 From gr@active-media-group.com Fri Jan 11 07:47:53 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 38C15750072 for ; Fri, 11 Jan 2008 07:47:53 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 96 hrs), (distance 24, link: ethernet/modem), [91.194.143.80] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hPvuAoINb1-C for ; Fri, 11 Jan 2008 07:47:48 +0000 (GMT) Received: from ls04.private.active-media-group.com (unknown [91.194.143.80]) by menubar.gnome.org (Postfix) with ESMTP id 11881750030 for ; Fri, 11 Jan 2008 07:46:59 +0000 (GMT) Received: from ls04.private.active-media-group.com ([192.168.0.13]) by ls04.private.active-media-group.com with esmtp (Exim 4.50) id 1JDEbP-0001uG-Ey for xslt@gnome.org; Fri, 11 Jan 2008 08:46:55 +0100 From: Giulio Rizzo Organization: active-media-group.com Srl To: xslt@gnome.org Date: Fri, 11 Jan 2008 08:46:55 +0100 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801110846.55333.gr@active-media-group.com> Subject: [xslt] extending xsltproc with plugins X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 07:47:53 -0000 Hi, I have to extend xsltproc with a set of our defined funcion and as I'm not a pro c programmer (as I'm a java programmer) I'm not able to compile my library file against the source code of libxslt. I try to compile it with the whole libxslt, adding some lines (maybe in the wrong way) to the make file but there's no way to compile it. I see that the make don't compile the testplugin.c file. So I can't even try to put this example file in /usr/local/lib/libxslt-plugins/ folder. Can somebody help me please? Another question, having a look (more than one for real) at the source code of TestPlugin.c there's this comment function libxslt:test() for testing the extensions support. but in the test xslt file this is the call to the function and the element: Is anything I miss or is an error in the documentation? Another question, should the library and the function inside the library (our function not the one to load an unload the library in xsltproc) respect any kind of naming convention? I ask this because I see some example around where if the namespace is www.test.xml/test the library is called test_xml_test.so. Best Regards and thank you for helping me. Giulio From Tony.Graham@MenteithConsulting.com Fri Jan 11 11:45:10 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 78DB3750030 for ; Fri, 11 Jan 2008 11:45:10 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.975 X-Spam-Level: X-Spam-Status: No, score=-0.975 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, FORGED_RCVD_HELO=0.135] X-Amavis-OS-Fingerprint: Linux 2.6, seldom 2.4 (older, 4) (up: 9377 hrs), (distance 12, link: ethernet/modem), [211.29.133.51] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cei-gVAfgcT6 for ; Fri, 11 Jan 2008 11:45:04 +0000 (GMT) Received: from mail35.syd.optusnet.com.au (mail35.syd.optusnet.com.au [211.29.133.51]) by menubar.gnome.org (Postfix) with ESMTP id A288575010D for ; Fri, 11 Jan 2008 11:45:03 +0000 (GMT) Received: from zako.menteithconsulting.com.menteith.com (ip-83-147-143-141.dsl.digiweb.ie [83.147.143.141] (may be forged)) (authenticated sender kandjgraham) by mail35.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0BBitkd017962 for ; Fri, 11 Jan 2008 22:44:59 +1100 From: Tony Graham To: xslt@gnome.org References: <200801110846.55333.gr@active-media-group.com> Date: Fri, 11 Jan 2008 11:44:51 +0000 In-Reply-To: <200801110846.55333.gr@active-media-group.com> (Giulio Rizzo's message of "Fri\, 11 Jan 2008 08\:46\:55 +0100") Message-ID: <87tzlkwpqk.fsf@zako.menteithconsulting.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [xslt] extending xsltproc with plugins X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 11:45:10 -0000 On Fri, Jan 11 2008 07:46:55 +0000, gr@active-media-group.com wrote: > I have to extend xsltproc with a set of our defined funcion and as I'm not a > pro c programmer (as I'm a java programmer) I'm not able to compile my > library file against the source code of libxslt. I try to compile it with the > whole libxslt, adding some lines (maybe in the wrong way) to the make file > but there's no way to compile it. Presumably your project would use the GNU Autotools with a 'configure' script, etc. Here's an extract from a 'Makefile.am' that I've used in the past (where the extensions used GLib): ------------------------------------------------------------ ## Process this file with automake to produce Makefile.in INCLUDES = \ -DMODULE_COMPILE \ $(LIBEXSLT_CFLAGS) \ $(GLIB_CFLAGS) -Wall LDADDS = @STRIP_BEGIN@ \ @GLIB_LIBS@ \ @STRIP_END@ plugindir = @LIBXSLT_PLUGINS_DIR@ plugin_LTLIBRARIES = example_com_plugin.la example_com_plugin_la_SOURCES = \ extensions.c example_com_plugin_la_LDFLAGS = \ -module -avoid-version -rpath $(plugindir) example_com_plugin_la_LIBADD = \ $(LIBEXSLT_LIBS) \ $(GLIB_LIBS) ------------------------------------------------------------ where (paraphrasing my 'configure.ac') LIBXSLT_PLUGINS_DIR is defined using: LIBXSLT_PLUGINS_DIR=`xslt-config --plugins` AC_SUBST(LIBXSLT_PLUGINS_DIR) > I see that the make don't compile the testplugin.c file. So I can't even try testplugin.c is compiled when you run 'make tests'. > to put this example file in /usr/local/lib/libxslt-plugins/ folder. > Can somebody help me please? > Another question, having a look (more than one for real) at the source code of > TestPlugin.c there's this comment > > function libxslt:test() for testing the extensions support. > > but in the test xslt file this is the call to the function and the element: > > > > > Is anything I miss or is an error in the documentation? The mapping of XSLT extension element and function names and namespaces to C functions in testplugin.c is in xmlsoft_org_xslt_testplugin_init() [1]: ------------------------------------------------------------ xsltRegisterExtModuleFunction((const xmlChar *) "testplugin", (const xmlChar *) XSLT_TESTPLUGIN_URL, xsltExtFunctionTest); xsltRegisterExtModuleElement((const xmlChar *) "testplugin", (const xmlChar *) XSLT_TESTPLUGIN_URL, xsltExtElementPreCompTest, xsltExtElementTest); ------------------------------------------------------------ > Another question, should the library and the function inside the library (our > function not the one to load an unload the library in xsltproc) respect any > kind of naming convention? I ask this because I see some example around where > if the namespace is www.test.xml/test the library is called test_xml_test.so. There's nothing special about the C function name. Of course, it's easier for people to make the association if the C function name has some resemblance to the XSLT element or function name. The name of the extension library *is* significant for dynamic plugins. >From the comment in extensions.c [2]: ------------------------------------------------------------ /** * xsltExtModuleRegisterDynamic: * @URI: the function or element namespace URI * * Dynamically loads an extension plugin when available. * * The plugin name is derived from the URI by removing the * initial protocol designation, e.g. "http://", then converting * the characters ".", "-", "/", and "\" into "_", the removing * any trailing "/", then concatenating LIBXML_MODULE_EXTENSION. * * Plugins are loaded from the directory specified by the * environment variable LIBXSLT_PLUGINS_PATH, or if NULL, * by LIBXSLT_DEFAULT_PLUGINS_PATH() which is determined at * compile time. * * Returns 0 if successful, -1 in case of error. */ ------------------------------------------------------------ Plus you need to use "extension-element-prefixes" in your stylesheet even when you're using only extension functions [3]: Registration of new functions or elements are bound to the activation of the module. This is currently done by declaring the namespace as an extension by using the attribute extension-element-prefixes on the xsl:stylesheet element. Regards, Tony Graham. ====================================================================== Tony.Graham@MenteithConsulting.com http://www.menteithconsulting.com Menteith Consulting Ltd Registered in Ireland - No. 428599 Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland ---------------------------------------------------------------------- Menteith Consulting -- Understanding how markup works ====================================================================== [1] http://svn.gnome.org/viewvc/libxslt/trunk/tests/plugins/testplugin.c?view=markup [2] http://svn.gnome.org/viewvc/libxslt/trunk/libxslt/extensions.c?view=markup [3] http://www.xmlsoft.org/XSLT/extensions.html#Keep From gr@active-media-group.com Tue Jan 15 11:24:23 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30E307500AD for ; Tue, 15 Jan 2008 11:24:23 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 345 hrs), (distance 24, link: ethernet/modem), [91.194.143.80] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8J4QXWoFhMgC for ; Tue, 15 Jan 2008 11:24:20 +0000 (GMT) Received: from ls04.private.active-media-group.com (unknown [91.194.143.80]) by menubar.gnome.org (Postfix) with ESMTP id C51EF750160 for ; Tue, 15 Jan 2008 11:24:19 +0000 (GMT) Received: from ls04.private.active-media-group.com ([192.168.0.13]) by ls04.private.active-media-group.com with esmtp (Exim 4.50) id 1JEjtu-0004GT-No for xslt@gnome.org; Tue, 15 Jan 2008 12:24:14 +0100 From: Giulio Rizzo Organization: active-media-group.com Srl To: The Gnome XSLT library mailing-list Date: Tue, 15 Jan 2008 12:24:14 +0100 User-Agent: KMail/1.7.2 References: <200801110846.55333.gr@active-media-group.com> <87tzlkwpqk.fsf@zako.menteithconsulting.com> In-Reply-To: <87tzlkwpqk.fsf@zako.menteithconsulting.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801151224.14631.gr@active-media-group.com> Subject: Re: [xslt] extending xsltproc with plugins X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 11:24:23 -0000 First of all, thanks for your help Tony I can compile and run test, with the supplied testplugin.c there's not problem, but when I tryed to add a function to the file i run in this error: command: LIBXSLT_PLUGINS_PATH=/home/gr/Plugins < "./plugin.xml" xsltproc "./plugin.xsl" - > result.xml error: xmlXPathCompOpEval: function DataDetailValue not found XPath error : Unregistered function runtime error: file ./plugin.xsl line 11 element value-of XPath evaluation returned no result. where in LIBXSLT_PLUGINS_PATH is the xmlsoft_org_xslt_testplugin.so library. Here is the cose I added: static void getDataDetailValue(xmlXPathParserContextPtr ctxt, int nargs){ char* parameters[6] = {"novalue\n", "novalue\n", "novalue\n", "novalue\n", "novalue\n", "novalue\n"}; char* msg = ",DataDetailValue"; int var; for (var = 0; var < nargs; ++var) { xmlXPathObjectPtr obj = valuePop(ctxt); msg = concat(msg, ","); msg = concat(msg, (char*) obj); xmlXPathFreeObject(obj); } concat(msg,"\n"); parameters[0] = msg; char* result = sendDataBySocket(parameters); valuePush(ctxt, xmlXPathNewString(result)); } and this is the registration of the function: void PLUGINPUBFUN xmlsoft_org_xslt_testplugin_init(void) { xsltRegisterExtModuleFull((const xmlChar *) XSLT_TESTPLUGIN_URL, xsltExtInitTest, xsltExtShutdownTest, xsltExtStyleInitTest, xsltExtStyleShutdownTest); xsltRegisterExtModuleFunction((const xmlChar *) "testplugin", (const xmlChar *) XSLT_TESTPLUGIN_URL, xsltExtFunctionTest); xsltRegisterExtModuleFunction((const xmlChar *) "DataDetailValue", (const xmlChar *) XSLT_TESTPLUGIN_URL, getDataDetailValue); xsltRegisterExtModuleElement((const xmlChar *) "testplugin", (const xmlChar *) XSLT_TESTPLUGIN_URL, xsltExtElementPreCompTest, xsltExtElementTest); } I can't understand why this is not working. Thanks for helping me best regards Giulio From Tony.Graham@MenteithConsulting.com Tue Jan 15 13:12:41 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9015C7523E5 for ; Tue, 15 Jan 2008 13:11:37 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.464 X-Spam-Level: X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Amavis-OS-Fingerprint: Linux 2.6, seldom 2.4 (older, 4) (up: 9487 hrs), (distance 15, link: ethernet/modem), [211.29.133.218] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qBWejqz6Dtwy for ; Tue, 15 Jan 2008 13:11:30 +0000 (GMT) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by menubar.gnome.org (Postfix) with ESMTP id 5CD997523B3 for ; Tue, 15 Jan 2008 13:05:04 +0000 (GMT) Received: from zako.menteithconsulting.com.menteith.com (ip-83-147-143-141.dsl.digiweb.ie [83.147.143.141] (may be forged)) (authenticated sender kandjgraham) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0FD4u8e008700 for ; Wed, 16 Jan 2008 00:05:00 +1100 From: Tony Graham To: xslt@gnome.org References: <200801110846.55333.gr@active-media-group.com> <87tzlkwpqk.fsf@zako.menteithconsulting.com> <200801151224.14631.gr@active-media-group.com> Date: Tue, 15 Jan 2008 13:04:48 +0000 In-Reply-To: <200801151224.14631.gr@active-media-group.com> (Giulio Rizzo's message of "Tue\, 15 Jan 2008 12\:24\:14 +0100") Message-ID: <87k5mbs0i7.fsf@zako.menteithconsulting.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [xslt] extending xsltproc with plugins X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 13:12:42 -0000 On Tue, Jan 15 2008 11:24:14 +0000, gr@active-media-group.com wrote: > First of all, thanks for your help Tony Not a problem. > I can compile and run test, with the supplied testplugin.c there's not > problem, but when I tryed to add a function to the file i run in this error: > > command: > LIBXSLT_PLUGINS_PATH=/home/gr/Plugins < "./plugin.xml" xsltproc "./plugin.xsl" > - > result.xml > > error: > xmlXPathCompOpEval: function DataDetailValue not found > XPath error : Unregistered function > runtime error: file ./plugin.xsl line 11 element value-of > XPath evaluation returned no result. > > where in LIBXSLT_PLUGINS_PATH is the xmlsoft_org_xslt_testplugin.so library. Declaring the function looks okay to me, though I'm not so sure about the internals of the function. Have you tried a version of getDataDetailValue() that just does the same as xsltExtFunctionTest (though maybe with popping more function arguments)? > Here is the cose I added: > > static void getDataDetailValue(xmlXPathParserContextPtr ctxt, int nargs){ > > char* parameters[6] = {"novalue\n", "novalue\n", "novalue\n", > "novalue\n", "novalue\n", "novalue\n"}; > char* msg = ",DataDetailValue"; > > int var; > for (var = 0; var < nargs; ++var) { > xmlXPathObjectPtr obj = valuePop(ctxt); If you want the string value, you can use xmlXPathPopString() [1] > msg = concat(msg, ","); > msg = concat(msg, (char*) obj); > xmlXPathFreeObject(obj); > } > > concat(msg,"\n"); Previously you used the return value of this function. > parameters[0] = msg; > > char* result = sendDataBySocket(parameters); > > valuePush(ctxt, xmlXPathNewString(result)); Don't you need to free one or more of the versions of msg? > } > > and this is the registration of the function: > > void > PLUGINPUBFUN xmlsoft_org_xslt_testplugin_init(void) > { > xsltRegisterExtModuleFull((const xmlChar *) XSLT_TESTPLUGIN_URL, > xsltExtInitTest, xsltExtShutdownTest, > xsltExtStyleInitTest, > xsltExtStyleShutdownTest); > xsltRegisterExtModuleFunction((const xmlChar *) "testplugin", > (const xmlChar *) XSLT_TESTPLUGIN_URL, > xsltExtFunctionTest); > xsltRegisterExtModuleFunction((const xmlChar *) "DataDetailValue", > (const xmlChar *) XSLT_TESTPLUGIN_URL, > getDataDetailValue); > xsltRegisterExtModuleElement((const xmlChar *) "testplugin", > (const xmlChar *) XSLT_TESTPLUGIN_URL, > xsltExtElementPreCompTest, > xsltExtElementTest); > } Regards, Tony Graham. ====================================================================== Tony.Graham@MenteithConsulting.com http://www.menteithconsulting.com Menteith Consulting Ltd Registered in Ireland - No. 428599 Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland ---------------------------------------------------------------------- Menteith Consulting -- Understanding how markup works ====================================================================== [1] http://xmlsoft.org/html/libxml-xpathInternals.html#xmlXPathPopString From gr@active-media-group.com Tue Jan 15 14:23:07 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 612C97501E4 for ; Tue, 15 Jan 2008 14:23:07 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 352 hrs), (distance 24, link: ethernet/modem), [91.194.143.80] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aWeaZZ414z0R for ; Tue, 15 Jan 2008 14:23:04 +0000 (GMT) Received: from ls04.private.active-media-group.com (unknown [91.194.143.80]) by menubar.gnome.org (Postfix) with ESMTP id 5FA557501D0 for ; Tue, 15 Jan 2008 14:23:04 +0000 (GMT) Received: from ls04.private.active-media-group.com ([192.168.0.13]) by ls04.private.active-media-group.com with esmtp (Exim 4.50) id 1JEmgv-0005Lw-V1 for xslt@gnome.org; Tue, 15 Jan 2008 15:23:01 +0100 From: Giulio Rizzo Organization: active-media-group.com Srl To: The Gnome XSLT library mailing-list Date: Tue, 15 Jan 2008 15:23:01 +0100 User-Agent: KMail/1.7.2 References: <200801110846.55333.gr@active-media-group.com> <200801151224.14631.gr@active-media-group.com> <87k5mbs0i7.fsf@zako.menteithconsulting.com> In-Reply-To: <87k5mbs0i7.fsf@zako.menteithconsulting.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801151523.01713.gr@active-media-group.com> Subject: Re: [xslt] extending xsltproc with plugins X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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 Jan 2008 14:23:07 -0000 Thanks Tony! It fits. Now the first function is ready and tested. Thanks, thanks, thanks. You got me out of a nightmare! Now I must move on to other function. I feel I'll need some help later. Thanks!!!!!!! Best regards Giulio From lists@beanalby.net Fri Jan 18 22:31:59 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5532A75004D for ; Fri, 18 Jan 2008 22:31:59 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.644 X-Spam-Level: X-Spam-Status: No, score=-1.644 tagged_above=-999 required=2 tests=[AWL=-0.799, BAYES_50=0.001, L_P0F_Unix=-1, TW_BX=0.077, TW_IB=0.077] X-Amavis-OS-Fingerprint: Solaris 2.5-7 (2), (distance 16, link: ethernet/modem), [206.183.1.81] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SJUtPyellLGw for ; Fri, 18 Jan 2008 22:31:55 +0000 (GMT) Received: from thunderstone.com (thunder.thunderstone.com [206.183.1.81]) by menubar.gnome.org (Postfix) with ESMTP id 7FF74750007 for ; Fri, 18 Jan 2008 22:31:55 +0000 (GMT) Received: from [127.0.0.1] (helo=[192.168.1.7]) by thunderstone.com with esmtp (Exim 2.10 #1) id 1JFzkf-0004Y5-00 for xslt@gnome.org; Fri, 18 Jan 2008 17:31:53 -0500 Received: from 192.168.1.7 ([192.168.1.7] helo=[192.168.1.7]) by ASSP.nospam; 18 Jan 2008 17:31:53 -0500 Message-ID: <479128D9.2080305@beanalby.net> Date: Fri, 18 Jan 2008 17:31:53 -0500 From: Jason Viers User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [xslt] ./configure --with-libxml-src not finding libs X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 18 Jan 2008 22:31:59 -0000 When using the --with-libxml-src option to configure, it sets the following variables: XML_CONFIG=${SRC_DIR}/xml2-config LIBXML_CFLAGS="-I${SRC_DIR}/include" LIBXML_LIBS="-L${SRC_DIR}" The first two work fine, but when I compile libxml2 2.6.31, it places the libs in ${SRC_DIR}/.libs, not ${SRC_DIR}, so the install step (where it actually links) fails unless I instead set --with-libxml-libs-prefix to libxml2dir/.libs (and the include & bin directories accordingly). Is this something that changed, or is there something wacky in my setup/process? Jason From lists@beanalby.net Fri Jan 18 22:56:12 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 64179750083 for ; Fri, 18 Jan 2008 22:56:12 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.191 X-Spam-Level: X-Spam-Status: No, score=-2.191 tagged_above=-999 required=2 tests=[AWL=-0.235, BAYES_05=-1.11, L_P0F_Unix=-1, TW_BX=0.077, TW_IB=0.077, UPPERCASE_25_50=0] X-Amavis-OS-Fingerprint: Solaris 2.5-7 (2), (distance 16, link: ethernet/modem), [206.183.1.81] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b-dzh6hds4LJ for ; Fri, 18 Jan 2008 22:56:09 +0000 (GMT) Received: from thunderstone.com (thunder.thunderstone.com [206.183.1.81]) by menubar.gnome.org (Postfix) with ESMTP id 4ABDA750081 for ; Fri, 18 Jan 2008 22:56:09 +0000 (GMT) Received: from [127.0.0.1] (helo=[192.168.1.7]) by thunderstone.com with esmtp (Exim 2.10 #1) id 1JG087-0005px-00 for xslt@gnome.org; Fri, 18 Jan 2008 17:56:07 -0500 Received: from 192.168.1.7 ([192.168.1.7] helo=[192.168.1.7]) by ASSP.nospam; 18 Jan 2008 17:56:07 -0500 Message-ID: <47912E87.1040607@beanalby.net> Date: Fri, 18 Jan 2008 17:56:07 -0500 From: Jason Viers User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <479128D9.2080305@beanalby.net> In-Reply-To: <479128D9.2080305@beanalby.net> Content-Type: multipart/mixed; boundary="------------010202080207090101040207" Subject: Re: [xslt] ./configure --with-libxml-src not finding libs X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 18 Jan 2008 22:56:12 -0000 This is a multi-part message in MIME format. --------------010202080207090101040207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I've verified that it compiles properly if .libs is appended to LIBXML_LIBS var, attached a patch in case it wants to be applied. Jason --------------010202080207090101040207 Content-Type: text/plain; name="configure.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="configure.patch" --- configure.orig Fri Jan 18 17:53:24 2008 +++ configure Fri Jan 18 17:53:10 2008 @@ -21948,7 +21948,7 @@ SRC_DIR=`pwd` XML_CONFIG=${SRC_DIR}/xml2-config LIBXML_CFLAGS="-I${SRC_DIR}/include" - LIBXML_LIBS="-L${SRC_DIR}" + LIBXML_LIBS="-L${SRC_DIR}/.libs" cd $CWD else { { echo "$as_me:$LINENO: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&5 --------------010202080207090101040207-- From lists@beanalby.net Wed Jan 30 18:10:21 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 859C5750007 for ; Wed, 30 Jan 2008 18:10:21 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.702 X-Spam-Level: X-Spam-Status: No, score=-1.702 tagged_above=-999 required=2 tests=[AWL=-0.703, BAYES_50=0.001, L_P0F_Unix=-1] X-Amavis-OS-Fingerprint: Solaris 2.5-7 (2), (distance 16, link: ethernet/modem), [206.183.1.81] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XnL2tOprVmeu for ; Wed, 30 Jan 2008 18:10:19 +0000 (GMT) Received: from thunderstone.com (thunder.thunderstone.com [206.183.1.81]) by menubar.gnome.org (Postfix) with ESMTP id 6FAD87500A9 for ; Wed, 30 Jan 2008 18:10:18 +0000 (GMT) Received: from [127.0.0.1] (helo=[192.168.1.7]) by thunderstone.com with esmtp (Exim 2.10 #1) id 1JKHO5-0005yU-00 for xslt@gnome.org; Wed, 30 Jan 2008 13:10:17 -0500 Received: from 192.168.1.7 ([192.168.1.7] helo=[192.168.1.7]) by ASSP.nospam; 30 Jan 2008 13:10:17 -0500 Message-ID: <47A0BD88.8000508@beanalby.net> Date: Wed, 30 Jan 2008 13:10:16 -0500 From: Jason Viers User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list Content-Type: multipart/mixed; boundary="------------080700020306080601000302" Subject: [xslt] small documentation addition X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 30 Jan 2008 18:10:22 -0000 This is a multi-part message in MIME format. --------------080700020306080601000302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Attached is a small doc addition for xsltParseStylesheetDoc, which now mentions that the doc is kept as a reference and explains its ramifications. Jason --------------080700020306080601000302 Content-Type: text/plain; name="patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.txt" --- libxslt/xslt.c.orig 2008-01-30 12:45:11.000000000 -0500 +++ libxslt/xslt.c 2008-01-30 13:07:50.000000000 -0500 @@ -6589,7 +6589,11 @@ * xsltParseStylesheetDoc: * @doc: and xmlDoc parsed XML * - * parse an XSLT stylesheet building the associated structures + * parse an XSLT stylesheet, building the associated structures. doc + * is kept as a reference within the returned stylesheet, so changes + * to doc after tha parsing will be reflected when the stylesheet + * is applied, and the doc is automatically freed when the + * stylesheet is closed. * * Returns a new XSLT stylesheet structure. */ --------------080700020306080601000302-- From lists@beanalby.net Wed Jan 30 18:13:49 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D5EFE750155 for ; Wed, 30 Jan 2008 18:13:49 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.995 X-Spam-Level: X-Spam-Status: No, score=-2.995 tagged_above=-999 required=2 tests=[AWL=0.604, BAYES_00=-2.599, L_P0F_Unix=-1] X-Amavis-OS-Fingerprint: Solaris 2.5-7 (2), (distance 16, link: ethernet/modem), [206.183.1.81] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hw23-mmCjC-c for ; Wed, 30 Jan 2008 18:13:16 +0000 (GMT) Received: from thunderstone.com (thunder.thunderstone.com [206.183.1.81]) by menubar.gnome.org (Postfix) with ESMTP id 6A804750108 for ; Wed, 30 Jan 2008 18:13:10 +0000 (GMT) Received: from [127.0.0.1] (helo=[192.168.1.7]) by thunderstone.com with esmtp (Exim 2.10 #1) id 1JKHQq-00062Z-00 for xslt@gnome.org; Wed, 30 Jan 2008 13:13:08 -0500 Received: from 192.168.1.7 ([192.168.1.7] helo=[192.168.1.7]) by ASSP.nospam; 30 Jan 2008 13:13:08 -0500 Message-ID: <47A0BE34.1040107@beanalby.net> Date: Wed, 30 Jan 2008 13:13:08 -0500 From: Jason Viers User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <47A0BD88.8000508@beanalby.net> In-Reply-To: <47A0BD88.8000508@beanalby.net> Content-Type: multipart/mixed; boundary="------------080105040403000104040204" Subject: Re: [xslt] small documentation addition X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 30 Jan 2008 18:13:50 -0000 This is a multi-part message in MIME format. --------------080105040403000104040204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Same patch as before except without the spelling mistake. <_< Jason --------------080105040403000104040204 Content-Type: text/plain; name="patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.txt" --- libxslt/xslt.c.orig 2008-01-30 12:45:11.000000000 -0500 +++ libxslt/xslt.c 2008-01-30 13:07:50.000000000 -0500 @@ -6589,7 +6589,11 @@ * xsltParseStylesheetDoc: * @doc: and xmlDoc parsed XML * - * parse an XSLT stylesheet building the associated structures + * parse an XSLT stylesheet, building the associated structures. doc + * is kept as a reference within the returned stylesheet, so changes + * to doc after the parsing will be reflected when the stylesheet + * is applied, and the doc is automatically freed when the + * stylesheet is closed. * * Returns a new XSLT stylesheet structure. */ --------------080105040403000104040204-- From ari@lib.aero Wed Jan 23 22:40:30 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DE3B07501EA for ; Wed, 23 Jan 2008 22:40:29 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.936 X-Spam-Level: X-Spam-Status: No, score=0.936 tagged_above=-999 required=2 tests=[BAYES_50=0.001, FORGED_RCVD_HELO=0.135, L_P0F_UNKN=0.8] X-Amavis-OS-Fingerprint: UNKNOWN [S4:42:1:60:M1460,N,N,N,N,N,N,N,N,N,N,N,N,N,N:!:?:?], (link: ethernet/modem), [76.96.62.16] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MhV2MQl0c07H for ; Wed, 23 Jan 2008 22:40:22 +0000 (GMT) Received: from QMTA01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by menubar.gnome.org (Postfix) with ESMTP id 9C6837500FF for ; Wed, 23 Jan 2008 22:40:21 +0000 (GMT) Received: from OMTA10.westchester.pa.mail.comcast.net ([76.96.62.28]) by QMTA01.westchester.pa.mail.comcast.net with comcast id gjQu1Y00E0cZkys050Hn00; Wed, 23 Jan 2008 22:40:19 +0000 Received: from deb.lib.aero ([76.21.115.74]) by OMTA10.westchester.pa.mail.comcast.net with comcast id gmgE1Y00Q1cNg1G3W00000; Wed, 23 Jan 2008 22:40:19 +0000 X-Authority-Analysis: v=1.0 c=1 a=d9K8RKSxMtQA:10 a=N_2SzJR1mQjyjhWJvjEA:9 a=nwiP_YYNRejE0WD7xnOVDNVcSpQA:4 a=v468qNhiUuwA:10 Received: from ari by deb.lib.aero with local (Exim 4.63) (envelope-from ) id 1JHoXN-0004LY-Jb for xslt@gnome.org; Wed, 23 Jan 2008 14:57:41 -0800 From: Ari Krupnik To: xslt@gnome.org Date: Wed, 23 Jan 2008 14:57:41 -0800 Message-ID: <8663xkqhei.fsf@deb.lib.aero> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Tue, 05 Feb 2008 07:56:24 +0000 Subject: [xslt] HTML input from command line and document() function X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 23 Jan 2008 22:40:30 -0000 xsltproc(1) accepts the --html argument that allows transforming HTML documents without running them through tidy(1) first. Is it possible to use the same (HTML) parser for documents loaded through the document() XSLT function, not just the source document? Ari. -- Elections only count as free and trials as fair if you can lose money betting on the outcome. From siegfried@rorkvell.de Wed Jan 30 10:21:37 2008 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EFABA750097 for ; Wed, 30 Jan 2008 10:21:36 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.108 X-Spam-Level: X-Spam-Status: No, score=-0.108 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, TW_XH=0.077] X-Amavis-OS-Fingerprint: Linux 2.6? (barebone, rare!), (distance 20, link: ethernet/modem), [212.227.126.188] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wTC-JMfnNxtc for ; Wed, 30 Jan 2008 10:21:32 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by menubar.gnome.org (Postfix) with ESMTP id 00DFC750108 for ; Wed, 30 Jan 2008 10:21:30 +0000 (GMT) Received: from noname (p57A7123B.dip0.t-ipconnect.de [87.167.18.59]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1JKA4O00gK-0005Mq; Wed, 30 Jan 2008 11:21:28 +0100 From: Siegfried Gipp To: xslt@gnome.org Date: Wed, 30 Jan 2008 11:21:27 +0100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801301121.27447.siegfried@rorkvell.de> X-Provags-ID: V01U2FsdGVkX182Z0JsvMfJSWDGiAlW0ttR7i6TvarCympGudP 96Cy9MPIN9fp2qjKP2ntGdC/lb5fcADhROVy2JW790/A7Rbecz LbCYfzi0ZCz9LJZkc95Vg== X-Mailman-Approved-At: Tue, 05 Feb 2008 07:57:08 +0000 Subject: [xslt] xsltproc/libxslt X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 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, 30 Jan 2008 10:21:37 -0000 Hi, while xsltproc is working fine with xml and xhtml documents it has some errors in outputting html. I'm currently using a sed file to correct them: 1,3s/\/\/EN\"\"http/\/\/EN\" \"http/ s#xmlns=\"http://www.w3.org/1999/xhtml\"##g s#/>#>#g s/\&action/\&action/g s#]*\)>##g s#]*\)>##g s#]*\)>##g s#

#
#g s#
#
#g s#]*\)/>##g s#]*\)/>##g The first line throws in an extra space in the DOCTYPE. The second line is possibly not necessary, but html pages do not validate at w3c with a namespace. The third line removes those shorthand tag endings since the validator throws warnings about that. The next three lines do correct real invalid html. In html it is not allowed to write . Although this is correct in xml, it is not in html. The same is for input, hr and br. The opposite is true for in html even if there is no content. Anything other is invalid. Regards Siegfried