Re: Adding a new BuiltIn - previousSibling

2016-01-12 Thread Pradeep Murugesan
: Tuesday, January 12, 2016 12:58 AM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling Some minor issues I have noticed at a quick glance: - You have added some unused special-variable constants - You are using a mutable List as EMPTY_LIST constant (you could use

Re: Adding a new BuiltIn - previousSibling

2016-01-11 Thread Daniel Dekany
___ > From: Pradeep Murugesan > Sent: Monday, January 11, 2016 8:50 PM > To: dev@freemarker.incubator.apache.org; Daniel Dekany > Subject: Re: Adding a new BuiltIn - previousSibling > > Hi Daniel, > > I did the merge with the branch gae-2.3. Once I build and r

Re: Adding a new BuiltIn - previousSibling

2016-01-11 Thread Pradeep Murugesan
@freemarker.incubator.apache.org; Daniel Dekany Subject: Re: Adding a new BuiltIn - previousSibling Hi Daniel, I did the merge with the branch gae-2.3. Once I build and run the tests I am getting the following error message Caused by: java.lang.RuntimeException: Clashing FreeMarker versions (2.3.24-rc01

Re: Adding a new BuiltIn - previousSibling

2016-01-11 Thread Pradeep Murugesan
: Re: Adding a new BuiltIn - previousSibling If you believe it's complete and is well tested, then yes. For "freemarker", it's "2.3-gae" branch. For "docgen", it's the "master" branch. (See also: http://freemarker.incubator.apache.org/sourcec

Re: Adding a new BuiltIn - previousSibling

2015-12-18 Thread Daniel Dekany
d a formDataModel in /manual/dgui_quickstart_template.html >>> >>> Kindly check and let me know if its fine. >>> >>> Also should we need to add a datamodel section for all the template section >>> in the manual ? >>> >>> Pradeep. >>&g

Re: Adding a new BuiltIn - previousSibling

2015-12-17 Thread Pradeep Murugesan
t; >> Also should we need to add a datamodel section for all the template section >> in the manual ? >> >> Pradeep. >> >> >> >> >> >> >> >> >> ____________________ >> From: Daniel Dekany >> Sent: Monday, December 14, 2015

Re: Adding a new BuiltIn - previousSibling

2015-12-17 Thread Daniel Dekany
datamodel section for all the template section > in the manual ? > > Pradeep. > > > > > > > > > > From: Daniel Dekany > Sent: Monday, December 14, 2015 2:39 AM > To: Pradeep Murugesan > Cc: dev@freemarker.

Re: Adding a new BuiltIn - previousSibling

2015-12-17 Thread Pradeep Murugesan
> Sent: Sunday, December 13, 2015 12:07 AM > To: Pradeep Murugesan > Cc: dev@freemarker.incubator.apache.org > Subject: Re: Adding a new BuiltIn - previousSibling > > I guess you get it right. We have to ignore text that's white-space > only, and wether it's CDATA or not we will do th

Re: Adding a new BuiltIn - previousSibling

2015-12-13 Thread Daniel Dekany
> To: Pradeep Murugesan > Cc: dev@freemarker.incubator.apache.org > Subject: Re: Adding a new BuiltIn - previousSibling > > I guess you get it right. We have to ignore text that's white-space > only, and wether it's CDATA or not we will do the same. > > > Satu

Re: Adding a new BuiltIn - previousSibling

2015-12-13 Thread Pradeep Murugesan
@freemarker.incubator.apache.org Subject: Re: Adding a new BuiltIn - previousSibling I guess you get it right. We have to ignore text that's white-space only, and wether it's CDATA or not we will do the same. Saturday, December 12, 2015, 7:45:17 AM, Pradeep Murugesan wrote: > Hi Daniel, > > So we

Re: Adding a new BuiltIn - previousSibling

2015-12-12 Thread Daniel Dekany
hat difference even where you can tell it. > > -- > Thanks, > Daniel Dekany > >> Eg: >> >> Software Engineer >> >> 12345678 >> >> >> doing a doc.person.phone.@@previous returns the node type as text with value >> as tes

Re: Adding a new BuiltIn - previousSibling

2015-12-11 Thread Pradeep Murugesan
, December 11, 2015 12:44 AM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling Thursday, December 10, 2015, 9:28:31 AM, Pradeep Murugesan wrote: > Hi Daniel, > > Done the changes > https://github.com/pradeepmurugesan/incubator-freem

Re: Adding a new BuiltIn - previousSibling

2015-12-10 Thread Daniel Dekany
sure which is the criteria to check the CDATA node. Am i missing > something here ? > > Pradeep. > > > > ____________________ > From: Daniel Dekany > Sent: Thursday, December 10, 2015 5:07 AM > To: Pradeep Murugesan > Cc: dev@freemarker.incubator.a

Re: Adding a new BuiltIn - previousSibling

2015-12-10 Thread Pradeep Murugesan
dev@freemarker.incubator.apache.org Subject: Re: Adding a new BuiltIn - previousSibling Wednesday, December 9, 2015, 10:11:04 AM, Pradeep Murugesan wrote: > Daniel, > > you got a chance to review this ? > > Pradeep. > > > From: Pradeep Muruges

Re: Adding a new BuiltIn - previousSibling

2015-12-09 Thread Daniel Dekany
t; To: Daniel Dekany > Cc: dev@freemarker.incubator.apache.org > Subject: Re: Adding a new BuiltIn - previousSibling > > Hi daniel, > > I have a question on the @@previous and @@next being null. So we > will return the previous significant node if exists but will return > an empty set of nodes if

Re: Adding a new BuiltIn - previousSibling

2015-12-09 Thread Pradeep Murugesan
Daniel, you got a chance to review this ? Pradeep. From: Pradeep Murugesan Sent: Monday, December 7, 2015 10:15 AM To: Daniel Dekany Cc: dev@freemarker.incubator.apache.org Subject: Re: Adding a new BuiltIn - previousSibling Hi daniel, I have a

Re: Adding a new BuiltIn - previousSibling

2015-12-06 Thread Pradeep Murugesan
adeep From: Daniel Dekany Sent: Monday, December 7, 2015 4:05 AM To: Pradeep Murugesan Cc: dev@freemarker.incubator.apache.org Subject: Re: Adding a new BuiltIn - previousSibling Sunday, December 6, 2015, 4:28:11 PM, Pradeep Murugesan wrote: > > Hi Daniel, > >sorry

Re: Adding a new BuiltIn - previousSibling

2015-12-06 Thread Daniel Dekany
r sure, I guess you see that now. As of > trimming, that's a minor issue really, but in fact we know how many > spaces are there, since we provide the XML. > >> Let me know if I am missing something. >> >> Pradeep. >> >

Re: Adding a new BuiltIn - previousSibling

2015-12-06 Thread Pradeep Murugesan
. Pradeep. From: Daniel Dekany Sent: Saturday, November 21, 2015 2:34 AM To: Pradeep Murugesan Cc: dev@freemarker.incubator.apache.org Subject: Re: Adding a new BuiltIn - previousSibling Friday, November 20, 2015, 8:51:31 AM, Pradeep Murugesan wrote: >

Re: Adding a new BuiltIn - previousSibling

2015-11-20 Thread Daniel Dekany
> From: Daniel Dekany > Sent: Tuesday, November 10, 2015 2:44 AM > To: Pradeep Murugesan > Subject: Re: Adding a new BuiltIn - previousSibling > > Tuesday, November 3, 2015, 7:19:17 AM, Pradeep Murugesan wrote: > >> Hi Daniel, >&g

Re: Adding a new BuiltIn - previousSibling

2015-11-19 Thread Pradeep Murugesan
From: Daniel Dekany Sent: Tuesday, November 10, 2015 2:44 AM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling Tuesday, November 3, 2015, 7:19:17 AM, Pradeep Murugesan wrote: > Hi Daniel, > > I have made the changes you have said and writing unit tests. I > have w

Re: Adding a new BuiltIn - previousSibling

2015-11-09 Thread Daniel Dekany
> > > > From: Pradeep Murugesan > Sent: Thursday, October 29, 2015 7:46 AM > To: dev@freemarker.incubator.apache.org > Subject: Re: Adding a new BuiltIn - previousSibling > > oh now I got it. > > So we can also expect somet

Re: Adding a new BuiltIn - previousSibling

2015-11-03 Thread Pradeep Murugesan
@freemarker.incubator.apache.org Subject: Re: Adding a new BuiltIn - previousSibling Hi Daniel, I have made the changes you have said and writing unit tests. I have written an unit test and need to check whether can I proceed in the same fashion. One important question I have is accessing the (XML) datamodel required for the

Re: Adding a new BuiltIn - previousSibling

2015-11-02 Thread Pradeep Murugesan
!!. Pradeep. From: Pradeep Murugesan Sent: Thursday, October 29, 2015 7:46 AM To: dev@freemarker.incubator.apache.org Subject: Re: Adding a new BuiltIn - previousSibling oh now I got it. So we can also expect something like there is some text here Now

Re: Adding a new BuiltIn - previousSibling

2015-10-28 Thread Pradeep Murugesan
Daniel Dekany Sent: Thursday, October 29, 2015 4:12 AM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling Wednesday, October 28, 2015, 6:21:19 PM, Pradeep Murugesan wrote: > Hi Daniel, > > I agree with that but I have a question kindly don't take it as an ar

Re: Adding a new BuiltIn - previousSibling

2015-10-28 Thread Daniel Dekany
ion loss. -- Thanks, Daniel Dekany > Pradeep. > ________________ > From: Daniel Dekany > Sent: Wednesday, October 28, 2015 1:33 PM > To: Pradeep Murugesan > Subject: Re: Adding a new BuiltIn - previousSibling > > Wednesday, October 28, 2015, 3:52:35

Re: Adding a new BuiltIn - previousSibling

2015-10-28 Thread Pradeep Murugesan
e about what is a better logic though. Kindly let me know if I am not getting something which you are telling. Pradeep. From: Daniel Dekany Sent: Wednesday, October 28, 2015 1:33 PM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling

Re: Adding a new BuiltIn - previousSibling

2015-10-28 Thread Daniel Dekany
ill return null if its > the root node, similarly we can return null if its first and last > accessing previous and next respectively. > > Pradeep. > ________________ > From: Daniel Dekany > Sent: Wednesday, October 28, 2015 2:45 AM > To: Pradeep Mu

Re: Adding a new BuiltIn - previousSibling

2015-10-27 Thread Pradeep Murugesan
; https://github.com/pradeepmurugesan/incubator-freemarker/commit/465ed1bd768e8a5bee91bea7d3b291a5872efae5 >> I have added the builtIns which will return blindly the previous >> and next sibling and also the special variables @@previous and >> @@next which will return the valid n

Re: Adding a new BuiltIn - previousSibling

2015-10-27 Thread Daniel Dekany
tried few cases and things worked fine there. Kindly let me know your > thoughts. > > P.S : I am working on the Junit test cases. > > Pradeep. > > > From: Daniel Dekany > Sent: Tuesday, October 27, 2015 3:36 AM > To: Pradeep Muruge

Re: Adding a new BuiltIn - previousSibling

2015-10-27 Thread Pradeep Murugesan
on the Junit test cases. Pradeep. From: Daniel Dekany Sent: Tuesday, October 27, 2015 3:36 AM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling OK, let's see. I have ran through the diff and have spotted these (just in the ord

Re: Adding a new BuiltIn - previousSibling

2015-10-26 Thread Pradeep Murugesan
From: Daniel Dekany Sent: Tuesday, October 27, 2015 3:41 AM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling Monday, October 26, 2015, 3:01:56 PM, Pradeep Murugesan wrote: > HI Daniel, > > You got a chance to re

Re: Adding a new BuiltIn - previousSibling

2015-10-26 Thread Pradeep Murugesan
From: Daniel Dekany Sent: Tuesday, October 27, 2015 3:36 AM To: Pradeep Murugesan Subject: Re: Adding a new BuiltIn - previousSibling OK, let's see. I have ran through the diff and have spotted these (just in the order as I find then):

Re: Adding a new BuiltIn - previousSibling

2015-10-26 Thread Daniel Dekany
your commits there. > When you find time Kindly check and let me know if we can proceed? > > Pradeep. > > > > > From: Pradeep Murugesan > Sent: Saturday, October 24, 2015 1:39 AM > To: dev@freemarker.incubator.apache.org > Subject: RE: Adding a new BuiltIn - previousS

Re: Adding a new BuiltIn - previousSibling

2015-10-26 Thread Daniel Dekany
he valid node. In the special variable > case I have used the xpath to get the required nodes. > Kindly review and let me know your thoughts. > Pradeep. >> Date: Sun, 18 Oct 2015 11:42:04 +0200 >> From: ddek...@freemail.hu >> To: dev@freemarker.incubator.apache.org &g

Re: Adding a new BuiltIn - previousSibling

2015-10-26 Thread Pradeep Murugesan
me know if we can proceed? Pradeep. From: Pradeep Murugesan Sent: Saturday, October 24, 2015 1:39 AM To: dev@freemarker.incubator.apache.org Subject: RE: Adding a new BuiltIn - previousSibling Hi Daniel, https://github.com/pradeepmurugesan/incubator-freemarker/commit/465ed1bd768e8a5bee91bea7d3b291

RE: Adding a new BuiltIn - previousSibling

2015-10-23 Thread Pradeep Murugesan
special variable case I have used the xpath to get the required nodes. Kindly review and let me know your thoughts. Pradeep. > Date: Sun, 18 Oct 2015 11:42:04 +0200 > From: ddek...@freemail.hu > To: dev@freemarker.incubator.apache.org > Subject: Re: Adding a new BuiltIn - pre

Re: Adding a new BuiltIn - previousSibling

2015-10-18 Thread Daniel Dekany
ent skipping few . > Pradeep. >> Date: Sat, 17 Oct 2015 20:15:57 +0200 >> From: ddek...@freemail.hu >> To: dev@freemarker.incubator.apache.org >> Subject: Re: Adding a new BuiltIn - previousSibling >> >> Saturday, October 17, 2015, 7:09:49 PM, Pradeep Muruges

RE: Adding a new BuiltIn - previousSibling

2015-10-17 Thread Pradeep Murugesan
which will return the immediate sibling2. @prevNode or something intutive which will return a valid element skipping few . Pradeep. > Date: Sat, 17 Oct 2015 20:15:57 +0200 > From: ddek...@freemail.hu > To: dev@freemarker.incubator.apache.org > Subject: Re: Adding a new BuiltIn - pre

Re: Adding a new BuiltIn - previousSibling

2015-10-17 Thread Daniel Dekany
pecial case and use > .node.@@prev.@@prev to get to theprevious sibling node. You mean, you will use: .node.@@prev > Pradeep. > >> Date: Fri, 16 Oct 2015 01:09:36 +0200 >> From: ddek...@freemail.hu >> To: dev@freemarker.incubator.apache.org >> Subject: Re: Adding a

RE: Adding a new BuiltIn - previousSibling

2015-10-17 Thread Pradeep Murugesan
can only be addressed reasonably be ensuring that the whole DOM > is normalized before we do anything with it... so it doesn't mater > now.) > > > Pradeep. > >> Date: Thu, 15 Oct 2015 20:32:33 +0200 > >> From: ddek...@freemail.hu > >> To: de

Re: Adding a new BuiltIn - previousSibling

2015-10-15 Thread Daniel Dekany
; Pradeep. >> Date: Thu, 15 Oct 2015 20:32:33 +0200 >> From: ddek...@freemail.hu >> To: dev@freemarker.incubator.apache.org >> Subject: Re: Adding a new BuiltIn - previousSibling >> >> Thursday, October 15, 2015, 4:13:18 PM, Pradeep Murugesan wrote: >> &g

RE: Adding a new BuiltIn - previousSibling

2015-10-15 Thread Pradeep Murugesan
e also added a key with @@prev in ElementModel and that works fine. > > So what exactly is the semantic of @@prev? > > > Pradeep. > >> Date: Wed, 14 Oct 2015 22:32:40 +0200 > >> From: ddek...@freemail.hu > >> To: dev@freemarker.incubator.apache.org > &

Re: Adding a new BuiltIn - previousSibling

2015-10-15 Thread Daniel Dekany
use, if you have cdata, then surely you don't want to say that is preceded bu , but "cdata". > I have also added a key with @@prev in ElementModel and that works fine. So what exactly is the semantic of @@prev? > Pradeep. >> Date: Wed, 14 Oct 2015 22:32

RE: Adding a new BuiltIn - previousSibling

2015-10-15 Thread Pradeep Murugesan
2:40 +0200 > From: ddek...@freemail.hu > To: dev@freemarker.incubator.apache.org > Subject: Re: Adding a new BuiltIn - previousSibling > > I'm not sure what's improper in the result (I don't know what was > expected). Isn't that node preceded by white space? Tha

Re: Adding a new BuiltIn - previousSibling

2015-10-14 Thread Daniel Dekany
I'm not sure what's improper in the result (I don't know what was expected). Isn't that node preceded by white space? That would explain it. You might rather want the previous *element*. But that will be difficult to express on the TemplateNodeModel level, which is not bound to XML. One important

Adding a new BuiltIn - previousSibling

2015-10-14 Thread Pradeep Murugesan
Hi Daniel, I tried to add a new built in & of course it DIDN'T work 😢. I did the following. 1. added putBI("previousSibling", new previousSiblingBI()); in BuiltIn.java2. added a static class in BuiltInForNodes.java static class previousSiblingBI extends BuiltInForNode { @Overr