Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 66415 invoked from network); 25 May 2005 05:17:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2005 05:17:28 -0000 Received: (qmail 2284 invoked by uid 500); 25 May 2005 05:17:28 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 2083 invoked by uid 500); 25 May 2005 05:17:26 -0000 Mailing-List: contact hivemind-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: hivemind-user@jakarta.apache.org List-Id: Delivered-To: mailing list hivemind-user@jakarta.apache.org Received: (qmail 2070 invoked by uid 99); 25 May 2005 05:17:26 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of knut.wannheden@gmail.com designates 64.233.170.196 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.196) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 24 May 2005 22:17:25 -0700 Received: by rproxy.gmail.com with SMTP id i8so11514rne for ; Tue, 24 May 2005 22:17:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b3m5npeGeWGGxiqNcv/FVI5HgRgtOUbKKYFAeIgHrQd/i2u8EGRl1RFZxupjf2dW8ivvRGxpoOxmnAY3HhdBiouxIQ4b7k1zIDmwGE4ArIoTCwoRUchAFBVSUgTaO+cftia4/M7I2m4zmuxCWh2sKJCkHR9QJH4fzb72PHW0osQ= Received: by 10.38.101.9 with SMTP id y9mr41668rnb; Tue, 24 May 2005 22:17:23 -0700 (PDT) Received: by 10.38.65.48 with HTTP; Tue, 24 May 2005 22:17:23 -0700 (PDT) Message-ID: <360173eb050524221781a3947@mail.gmail.com> Date: Wed, 25 May 2005 07:17:23 +0200 From: Knut Wannheden Reply-To: Knut Wannheden To: hivemind-user@jakarta.apache.org Subject: Re: Schema Object Manipulate Question In-Reply-To: <200505242152.j4OLq0GK018438@carmanconsulting.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200505242152.j4OLq0GK018438@carmanconsulting.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm almost surprised that we didn't already have a :-) +1 --knut On 5/24/05, James Carman wrote: > I wouldn't mind just adding your push-content rule to HiveMind. It seems > logical enough. >=20 >=20 > -----Original Message----- > From: Hensley, Richard [mailto:Richard.Hensley@McKesson.com] > Sent: Tuesday, May 24, 2005 5:44 PM > To: hivemind-user@jakarta.apache.org > Subject: Schema Object Manipulate Question >=20 > I have the following schema >=20 > > > >=20 > This above dictates the following xml: >=20 > instance:package.class >=20 > When I use it, I really want whatever the object provider produces using = the > contents as one of the elements in my configuration list. >=20 > The following works, but does not have the syntax that I desire. >=20 > > > >=20 > > > > > > >=20 > The above dictates the following xml: >=20 > >=20 > Not really what I want. Does anybody have any suggestions? >=20 >=20 >=20 > At the moment I'm using the following custom rule. >=20 > public class PushContentRule extends BaseRule implements Rule { >=20 > public void begin(SchemaProcessor processor, Element element) { > String value =3D RuleUtils.processText(processor, element, elemen= t > .getContent()); > Translator t =3D processor.getContentTranslator(); > Object finalValue =3D t.translate(processor.getContributingModule= (), > Object.class, value, element.getLocation()); > processor.push(finalValue); > } >=20 > public void end(SchemaProcessor processor, Element element) { > processor.pop(); > } > } >=20 > with a schema that looks like. >=20 > > > >=20 > > > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org