Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 11114 invoked from network); 22 Dec 2005 06:30:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Dec 2005 06:30:30 -0000 Received: (qmail 36621 invoked by uid 500); 22 Dec 2005 06:30:30 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 36395 invoked by uid 500); 22 Dec 2005 06:30:29 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 36384 invoked by uid 99); 22 Dec 2005 06:30:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 22:30:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [203.10.1.132] (HELO vscan02.westnet.com.au) (203.10.1.132) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 22:30:28 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 845FF11BA3A for ; Thu, 22 Dec 2005 14:30:01 +0800 (WST) Received: from vscan02.westnet.com.au ([127.0.0.1]) by localhost (vscan02.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05200-07 for ; Thu, 22 Dec 2005 14:30:01 +0800 (WST) Received: from colbrand.katspace.homelinux.org (dsl-202-173-183-92.vic.westnet.com.au [202.173.183.92]) by vscan02.westnet.com.au (Postfix) with ESMTP id 26AE311BE8A for ; Thu, 22 Dec 2005 14:29:58 +0800 (WST) Received: by colbrand.katspace.homelinux.org (Postfix, from userid 1001) id 201BE273C9; Thu, 22 Dec 2005 17:29:47 +1100 (EST) Date: Thu, 22 Dec 2005 17:29:46 +1100 From: Kathryn Andersen To: embperl@perl.apache.org Subject: XSLT Entity substitutions Message-ID: <20051222062946.GA12842@katla.katspace.homelinux.org> Mail-Followup-To: embperl@perl.apache.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Greetings. I am trying to process my pages through an XSLT stylesheet. (Apache 2, mod_perl 2, Embperl 2.10, libxml 20616, libxslt 10111) The source file is XHTML, the output is also XHTML (but with all the extra stuff like layout and navbars added by the XSLT stylesheet). I've managed to get the recipes right, and all that, but... I'm losing my entities. For example, the source file has a   entity. The result output has that already substituted as a space character. This kind of is a problem, because the page isn't proper XHTML any more, since it has these actual characters there, which might not be rendered correctly in someone else's browser -- that's what having those entities is for, so that they can be rendered portably. I think the reason is this, that in ./driver/eplibxslt.c you have, in multiple places: xmlSubstituteEntitiesDefault(1); Which turns on entity substitution. Which is a good default thing to do, for people who want their entities substituted (like, if they are using entities to read in external files, for example). However, there doesn't seem to be any way of turning this behaviour off, if, like me, you want your entities to be passed through untouched. Is there a way of turning this off? Or could it be added? Kathryn Andersen -=-=-=-=-=-=-=-=- "If it gets too bad I'll just gnaw it off at the ankle." -- Ivanova, "The Geometry of Shadows" (Babylon 5) -- _--_|\ | Kathryn Andersen / \ | \_.--.*/ | GenFicCrit mailing list v | ------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org