Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 56622 invoked from network); 25 Jan 2008 08:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2008 08:09:36 -0000 Received: (qmail 51510 invoked by uid 500); 25 Jan 2008 08:09:27 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 51491 invoked by uid 500); 25 Jan 2008 08:09:27 -0000 Mailing-List: contact abdera-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-user@incubator.apache.org Delivered-To: mailing list abdera-user@incubator.apache.org Received: (qmail 51478 invoked by uid 99); 25 Jan 2008 08:09:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2008 00:09:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vincent.hiribarren@gmail.com designates 64.233.178.247 as permitted sender) Received: from [64.233.178.247] (HELO hs-out-2122.google.com) (64.233.178.247) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2008 08:09:01 +0000 Received: by hs-out-2122.google.com with SMTP id n78so565583hsc.12 for ; Fri, 25 Jan 2008 00:09:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=mlRHIzNqpCOW24oItyMc6iKUzUW3KZ5Wro4woLVqchw=; b=ajdSsI9A+bcyjRZSqNsVBN8eJE7qW3d0aHFRhKTbk4ZAAwEUqB2GUhsOhkcRwpHXx4um/jpitySYjJyJ2UDojj8BpOl499Ud8FcAbOEaJ++Tv7FMGKoRlS356eGQBp7XhDnCaTeClePKIA2kahkq4ftVEI+kDdAweS++6ycOGGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=OTMvYSM9WoIuqvjtBD3+OrOf9Pz/EXZyo54BoF62H282b/Nt6PxO/+RmQOQKZ7cB66/yRH2bw5uRUxVQujEYtipod9ADsGFMl0vm0xkfBk0+vRLwx3hFcRujv/obiBroocoP17FrB/WmIXPJ/oA06DPGBK1n6p7yo+ZbrH/xg6Y= Received: by 10.142.101.17 with SMTP id y17mr969138wfb.54.1201248546491; Fri, 25 Jan 2008 00:09:06 -0800 (PST) Received: by 10.143.174.9 with HTTP; Fri, 25 Jan 2008 00:09:06 -0800 (PST) Message-ID: Date: Fri, 25 Jan 2008 09:09:06 +0100 From: "Vincent Hiribarren" Sender: vincent.hiribarren@gmail.com To: abdera-user@incubator.apache.org Subject: Re: XML stylesheet and W3C standard implementation In-Reply-To: <47967ABB.1050505@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47967ABB.1050505@gmail.com> X-Google-Sender-Auth: 2b1495ef82c99bad X-Virus-Checked: Checked by ClamAV on apache.org On Jan 23, 2008 12:22 AM, James M Snell wrote: > The challenge with PI's is that there actually is no single correct > syntax for them. There's just the target and the value. Whether or not > the value is structured depends entirely on the target. I understand your point. However, if it does entirely depends on the target, to my mind, the best shot would be to stay compliant with the standards. It would not be so if not implementing the standards would make the code more compliant with the current PI processors. In http://www.w3.org/TR/xml-stylesheet/ it is said that "href" and "type" are required, but "media" is optional. > To associate an xml-stylesheet PI with a feed, you need to do it like this: > > Abdera abdera = Abdera.getInstance(); > Feed feed = abdera.newFeed(); > Document doc = feed.getDocument(); > doc.addProcessingInstruction( > "xml-stylesheet", > "href=\"foo.css\" type=\"text/css\""); > doc.writeTo(System.out); I did something like that. I went into Abdera code and I found that addStylesheet() was just using addProcessingInstruction(). But to be sure we understand one each other, I was speaking about XSLT stylesheets (not CSS ones), so to generate a PI instruction like the following one: > Keep in mind also that IE7 and FF 2.x will likely ignore the stylesheet. Mmmh, I do not know about IE7, but Firefox 2.x (and the latest Safari) correctly interpret my XSLT stylesheet if I set a xml-stylesheet PI in an XML document - but only if there is a "type" instruction (like type="text/xsl"), the "media" one (like media="screen") was useless.