Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 34098 invoked from network); 15 Sep 2006 05:15:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 05:15:11 -0000 Received: (qmail 71831 invoked by uid 500); 15 Sep 2006 05:15:11 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 71790 invoked by uid 500); 15 Sep 2006 05:15:11 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 71779 invoked by uid 99); 15 Sep 2006 05:15:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 22:15:10 -0700 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 [193.229.0.32] (HELO fep30-app.kolumbus.fi) (193.229.0.32) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 22:15:01 -0700 Received: from [88.114.127.52] by fep30-app.kolumbus.fi with ESMTP id <20060915051433.WOKH18449.fep30-app.kolumbus.fi@[88.114.127.52]> for ; Fri, 15 Sep 2006 08:14:33 +0300 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <00ac01c6d850$f2d841c0$6b0fa8c0@developer> References: <00ac01c6d850$f2d841c0$6b0fa8c0@developer> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <36B258EF-D7C3-489B-860F-F834DC5896C1@mac.com> Content-Transfer-Encoding: 7bit From: Sjur Moshagen Subject: Re: i18n/dispatcher: language selection contract Date: Fri, 15 Sep 2006 08:14:28 +0300 To: dev@forrest.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Gav, Den 15. sep. 2006 kl. 01.55 skrev Gav....: >> I can see no traces of that message on the console, nor in any log >> file. > > With the 'debug string-' I get :- > > cocoon://resolve.contract.html.language-variants; Line #0; Column #0; > org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was > made to > insert a node where it is not permitted. > > And the SME no longer appears. If I remove 'debug string -' from the > Contract then words SME appears as it should. > > Having now tested it further, it seems that where you put the words > 'debug string -' makes a difference. > > You showed it as being :- > > > debug string - > > > Which is when I get the error message, moving it to :- > > > > debug string - > > cures this problem and my contract now works fine again, I get the > words SME appear and the output is rendered as : > >
> >
> SME >
> > >
> > > >> >>> Unfortunatly it also makes this script fail, removing it cured it >>> for me. >> >> I had/have no such problems.' >> >>> I also had a failure of >>> >>> >> >>> because they were separate, this may be a cut-n-paste thing on my >>> part if >>> the mail was wrapped. >> >> Probably since I didn't have any such problems with the code:-) > > Ok, but then I don't understand why it works for me then and not > for you, > The 'debug string -' is the ONLY thing I have changed to make it work > For me, have you tried removing it or moving it as above.? Sorry for not reading your first mail better - I attributed the error message to the TEST string I had in the pelt.fv file, not to anything in the contract itself. It was copied from the howto-structurer- contracts.html page, in which the debug string occurs directly after the element (but there's no element in that example). With the correction you made above, I get the same result as you - it works! Thanks so far, I will now continue with the next step. I'm certain I will be back with more questions soon:-) Sjur