Discussion:
XSL refactoring
Aurelien Bompard
2009-09-03 07:07:59 UTC
Permalink
Dr John Gow,

Following patch 2827143 [1], I've fixed a "spec conformance bug" in the *-
to-airsync.xsl files, and thought the XSL files are becoming a little
"hairy".

Mark told me you're in charge of sync-engine, so I'm asking you directly :
if you like, I can refactor the stylesheets with templates and variables. I
think that would make sense since many tags are near-identical.

We could avoid regression bugs with the unit tests, although they don't
cover every possible transformation at the moment.

Do you have something planned in this general direction ? Are you interested
in the refactoring ?

Thanks

Aurélien

[1]
https://sourceforge.net/tracker/?func=detail&atid=399603&aid=2827143&group_id=30550
--
http://aurelien.bompard.org ~~~~ Jabber : ***@jabber.fr
Recursion: (n.) See "Recursion".
Mark Ellis
2009-09-16 18:36:10 UTC
Permalink
Post by Aurelien Bompard
Dr John Gow,
Following patch 2827143 [1], I've fixed a "spec conformance bug" in the *-
to-airsync.xsl files, and thought the XSL files are becoming a little
"hairy".
if you like, I can refactor the stylesheets with templates and variables. I
think that would make sense since many tags are near-identical.
We could avoid regression bugs with the unit tests, although they don't
cover every possible transformation at the moment.
Do you have something planned in this general direction ? Are you interested
in the refactoring ?
Thanks
Aurélien
[1]
https://sourceforge.net/tracker/?func=detail&atid=399603&aid=2827143&group_id=30550
Aurelien, in the absence of any objections, I would say please go ahead,
your help will be most welcome :)

Mark
David Eriksson
2009-09-16 18:39:03 UTC
Permalink
Post by Mark Ellis
Post by Aurelien Bompard
Dr John Gow,
Following patch 2827143 [1], I've fixed a "spec conformance bug" in the *-
to-airsync.xsl files, and thought the XSL files are becoming a little
"hairy".
if you like, I can refactor the stylesheets with templates and variables. I
think that would make sense since many tags are near-identical.
We could avoid regression bugs with the unit tests, although they don't
cover every possible transformation at the moment.
Do you have something planned in this general direction ? Are you interested
in the refactoring ?
Thanks
Aurélien
[1]
https://sourceforge.net/tracker/?func=detail&atid=399603&aid=2827143&group_id=30550
Aurelien, in the absence of any objections, I would say please go ahead,
your help will be most welcome :)
+1


Cheers,

David Eriksson, http://www.divideandconquer.se/
Aurelien Bompard
2009-09-17 05:31:59 UTC
Permalink
Post by Mark Ellis
Aurelien, in the absence of any objections, I would say please go
ahead, your help will be most welcome :)
+1
Actually, John replied to me privately, he's fine with the idea. I've sent
him the first part of my work, which apparently seem to look good :)

I'll remember to keep the mailing-list in CC now.

Thanks

Aurélien
--
http://aurelien.bompard.org ~~~~ Jabber : ***@jabber.fr
"When the winds of change are blowing, some people are building
shelters and others are building windmills."
Aurelien Bompard
2009-09-17 05:40:05 UTC
Permalink
I like!
Great !
Do you have commit rights on SVN or do you want me to commit it?
No, I don't have the commit rights. Until now I've sent 4 patches to
SynCE[1] and Mark committed them himself. If you could commit this one
that'd be great.
[1]
http://sourceforge.net/tracker/?limit=10&func=&group_id=30550&atid=399603&assignee=&status=&category=&artgroup=&keyword=&submitter=&artifact_id=&assignee=&status=&category=&artgroup=&submitter=abompard&keyword=&artifact_id=&submit=Filter
Don't forget to update the changelog :)
Oh, that's right. Last times Mark updated it himself, but that's not a
reason to keep being lazy :)
If you are happy to extend this to the event and tasks, that would be
great.
OK, I'll do it. Thanks for your support.
I'm adding the list as CC, if you don't mind, to keep the rest of the team
posted.


Aurélien
--
http://aurelien.bompard.org ~~~~ Jabber : ***@jabber.fr
"Anyone who believes exponential growth can go on forever in a finite world
is either a madman or an economist." -- Kenneth Boulding, economist
Mark Ellis
2009-09-17 06:08:42 UTC
Permalink
Post by Aurelien Bompard
I like!
Great !
Do you have commit rights on SVN or do you want me to commit it?
I've just given you commit access, have fun ...
Post by Aurelien Bompard
No, I don't have the commit rights. Until now I've sent 4 patches to
SynCE[1] and Mark committed them himself. If you could commit this one
that'd be great.
[1]
http://sourceforge.net/tracker/?limit=10&func=&group_id=30550&atid=399603&assignee=&status=&category=&artgroup=&keyword=&submitter=&artifact_id=&assignee=&status=&category=&artgroup=&submitter=abompard&keyword=&artifact_id=&submit=Filter
Don't forget to update the changelog :)
Oh, that's right. Last times Mark updated it himself, but that's not a
reason to keep being lazy :)
If you are happy to extend this to the event and tasks, that would be
great.
OK, I'll do it. Thanks for your support.
I'm adding the list as CC, if you don't mind, to keep the rest of the team
posted.
Aurélien
Aurelien Bompard
2009-09-17 06:17:48 UTC
Permalink
Post by Mark Ellis
I've just given you commit access, have fun ...
Wow, thank you Mark !
Any instructions available to keep me from making beginner's mistakes ? I
know SVN, it's just if you have SynCE-specific policies, things like that.

Aurélien
--
http://aurelien.bompard.org ~~~~ Jabber : ***@jabber.fr
"Millions long for immortality who do not know what to do with themselves
on a rainy Sunday afternoon." -- Susan Ertz
Mark Ellis
2009-09-18 06:10:39 UTC
Permalink
Post by Aurelien Bompard
Post by Mark Ellis
I've just given you commit access, have fun ...
Wow, thank you Mark !
Any instructions available to keep me from making beginner's mistakes ? I
know SVN, it's just if you have SynCE-specific policies, things like that.
Aurélien
Nothing specific, just the normal kind of thing.

Loading...