From general-return-7456-apmail-xml-general-archive=xml.apache.org@xml.apache.org Mon Nov 08 11:41:20 2004 Return-Path: Delivered-To: apmail-xml-general-archive@www.apache.org Received: (qmail 25089 invoked from network); 8 Nov 2004 11:41:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Nov 2004 11:41:19 -0000 Received: (qmail 30381 invoked by uid 500); 8 Nov 2004 11:41:10 -0000 Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 30333 invoked by uid 500); 8 Nov 2004 11:41:10 -0000 Mailing-List: contact general-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: general@xml.apache.org Delivered-To: mailing list general@xml.apache.org Received: (qmail 30319 invoked by uid 99); 8 Nov 2004 11:41:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-general@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 08 Nov 2004 03:41:08 -0800 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CR7tR-00045k-00 for ; Mon, 08 Nov 2004 12:41:05 +0100 Received: from 194.98.79.6 ([194.98.79.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Nov 2004 12:41:05 +0100 Received: from mozer by 194.98.79.6 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Nov 2004 12:41:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: general@xml.apache.org From: xmlizer Subject: How to surround an element with efficacity ? Date: Mon, 08 Nov 2004 12:35:38 +0100 Lines: 58 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 194.98.79.6 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr-fr, fr, en, en-us Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello As I am writing XSLT documents, i was in a some case in this situation : In one case, i want to surround an element with another one, in another case i don't example : if (@LINKED=='true') { content } else { content } I name this case "conditional surrounding" where content is a multiline stuff of course i see some of those saying i just have to call a template, but the content stuff use a lot of parameters so it is the same to copy/paste than to make a call. So my questions are those 1) Can be handled simply in strict XSLT 1.0 ? 2) Can be handled simply with some extension of XSLT 1.0 ? 3) Can it be handled simply with last XSLT 2.0 WD ? 4) with XQuery ? 5) should I use XSP ? 6) Should I use direct programming langages ? 7) Should I change the structure of the XML input and how ? etc. Of course there is a awful way to do that with and $name could be "a" or "span" for exemple a span content Cheers Xmlizer --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org