Return-Path: Delivered-To: apmail-xml-xalan-j-users-archive@www.apache.org Received: (qmail 21821 invoked from network); 14 May 2004 14:01:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 May 2004 14:01:33 -0000 Received: (qmail 14710 invoked by uid 500); 14 May 2004 14:01:35 -0000 Delivered-To: apmail-xml-xalan-j-users-archive@xml.apache.org Received: (qmail 14640 invoked by uid 500); 14 May 2004 14:01:35 -0000 Mailing-List: contact xalan-j-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list xalan-j-users@xml.apache.org Received: (qmail 14610 invoked by uid 98); 14 May 2004 14:01:35 -0000 Received: from Santiago.Pericasgeertsen@Sun.COM by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(192.18.98.34):. Processed in 0.037179 secs); 14 May 2004 14:01:35 -0000 X-Qmail-Scanner-Mail-From: Santiago.Pericasgeertsen@Sun.COM via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(192.18.98.34):. Processed in 0.037179 secs) Received: from unknown (HELO brmea-mail-3.sun.com) (192.18.98.34) by hermes.apache.org with SMTP; 14 May 2004 14:01:34 -0000 Received: from phys-bur1-1 ([129.148.13.15]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id i4EE1Nhu011005 for ; Fri, 14 May 2004 08:01:23 -0600 (MDT) Received: from conversion-daemon.bur-mail2.east.sun.com by bur-mail2.east.sun.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) id <0HXP00C01IW3RI@bur-mail2.east.sun.com> for xalan-j-users@xml.apache.org; Fri, 14 May 2004 10:01:23 -0400 (EDT) Received: from dhcp-ubur02-176-236.East.Sun.COM (dhcp-ubur02-176-236.East.Sun.COM [129.148.176.236]) by bur-mail2.east.sun.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HXP00LSUIYBRY@bur-mail2.east.sun.com>; Fri, 14 May 2004 10:01:23 -0400 (EDT) Date: Fri, 14 May 2004 10:05:00 -0400 From: Santiago Pericas-Geertsen Subject: Re: create xsl programmatically using xalan API? In-reply-to: To: Jeffrey Hau Cc: xalan-j-users@xml.apache.org Message-id: <1084543500.1952.11.camel@dhcp-ubur02-176-236.East.Sun.COM> MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Wqoc66NW8JyUzRLHJUdM" References: X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=-Wqoc66NW8JyUzRLHJUdM Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2004-05-14 at 09:21, Jeffrey Hau wrote: > On 14 May 2004, at 14:16, Hall, Joe wrote: >=20 > > Could you just use a StringBuffer containing xslt and pass it in as an=20 > > InputSource? > sorry i think i didnt make myself clear. >=20 > rather then creating an stylesheet, i mean constructing a stylesheet=20 > from scratch.=20 I'm not sure I understand the difference. Could you elaborate? > so i want to be able to create different templates and=20 > add them to a stylesheet dynamically depending on my program logic. You mean, add new templates dynamically *as* the transformation is running? Or as the program constructing the stylesheet is running? If the latter, I don't see why you cannot use any of the techniques already proposed (using a DOM or a String). If the former, hmmm, I don't believe the language is prepared to work that way, there are number constructs that require some form of global preprocessing (template priorities, imports, etc.) which will require you to recompile (or re-precompile depending on the processor) every time you add new things. In any case, I don't understand why you'd need to do such a thing. -- Santiago --=-Wqoc66NW8JyUzRLHJUdM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQBApNIL66dNjT43Rv8RAr0iAJ9C5KobSKOOU3YSttJbSiOqyQTAzACfWRyG l5oHcmAAXhDtwKkYzU5YHp4= =BcOr -----END PGP SIGNATURE----- --=-Wqoc66NW8JyUzRLHJUdM--