You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Rolf Kulemann <ma...@rolf-kulemann.com> on 2003/12/13 16:09:20 UTC
[IDEA] AssetTransformer
Hello Developers,
sorry for trashing again ;)
You may have noticed that I thought of a central asset store etc., but I
think I meant a central function to replace all symbolic references to
assets in doc. before send to a browser.
It goes a little bit into the direction of the insert-asset ant task and
other transformers already available i.e. AugmentTransformer.
I think of i18n aware soft asset transformation. Think of an img tag
like this (first draft):
<img id="asset:/assetgroup/subgroup/logo"/>
or an <a> tag like
<a id="asset:/alink"/>
which then gets replaced as
<img src="/lenya/lenya/default/images/logo.jpg" alt="Logo of my company"
title="A cool tooltip text which is specified in an asset dictionary or
so"/>
and
<a href="#top" title="Go to top of page">Top</a>
The title and llnk texts are i18n aware.
In my projects I have used an xslt which has done all that.
What do you think of an AssetTransformer?
--
Rolf Kulemann
Monday is an awful way to spend one seventh of your life.
PGP/GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: [IDEA] AssetTransformer
Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sat, 2003-12-13 at 16:09, Rolf Kulemann wrote:
> Hello Developers,
...
> I think of i18n aware soft asset transformation. Think of an img tag
> like this (first draft):
>
> <img id="asset:/assetgroup/subgroup/logo"/>
>
> or an <a> tag like
>
> <a id="asset:/alink"/>
>
> which then gets replaced as
>
> <img src="/lenya/lenya/default/images/logo.jpg" alt="Logo of my company"
> title="A cool tooltip text which is specified in an asset dictionary or
> so"/>
>
> and
>
> <a href="#top" title="Go to top of page">Top</a>
>
> The title and llnk texts are i18n aware.
This transformer should be configurable so that we could also use markup
like
<asset:ref id="asset:/category/sub/an-id"/>
for rewriting.
The way of accessing the assets via asset:/category/etc goes along with
a categorizing function like:
<asset:ref id="asset:/category/a/*"/>
<asset:ref id="asset:/category/img/*"/>
which could be expanded to
<a href=".." title="a title">i18ntext1</a>
<a href="...." title="a title2">i18ntext2</a>
...
<a href="....*n" title="a titlen">i18ntextn</a>
Thoughts?
--
Rolf Kulemann
"... The name of the song is called 'Haddocks' Eyes'!"
"Oh, that's the name of the song, is it?" Alice said, trying to
feel interested.
"No, you don't understand," the Knight said, looking a little
vexed. "That's what the name is called. The name really is, 'The Aged
Aged Man.'"
"Then I ought to have said "That's what the song is called'?"
Alice corrected herself.
"No, you oughtn't: that's quite another thing! The song is
called 'Ways and Means': but that's only what it is called you know!"
"Well, what is the song then?" said Alice, who was by this time
completely bewildered.
"I was coming to that," the Knight said. "The song really is
"A-sitting on a Gate": and the tune's my own invention."
-- Lewis Carroll, "Through the Looking Glass"
PGP/GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
RE: [IDEA] AssetTransformer
Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sat, 2003-12-13 at 17:00, Rolf Kulemann wrote:
> On Sat, 2003-12-13 at 16:51, Danny Bols wrote:
> > The cocoon linkrewriter used in Forrest is a nice solution for this. Read
> > more about it here:
> > http://xml.apache.org/forrest/sitemap-ref.html#linkrewriting_impl
>
> Thank you, but a link is only one type of asset. What about acronyms or
> abbriviations like this in an xhtml syntax:
>
> <abbr id="asset:/abbrevs/thisone"/>
>
> get expanded to
>
> <abbr title="Enterprise Application Integration">EAI</abbr>
>
>
> More thoughts?
>
On http://xml.apache.org/forrest/linking.html one finds future uri
schemes.
Seeing that I could imagine a scheme abbr:/, acronym:/ or so.
But this is defnitely no *link* rewriting anymore.
--
Rolf Kulemann
"The illegal we do immediately. The unconstitutional takes a bit
longer."
-- Henry Kissinger
PGP/GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
RE: [IDEA] AssetTransformer
Posted by Danny Bols <db...@osirion.be>.
> -----Original Message-----
> From: Gregor J. Rothfuss [mailto:gregor@apache.org]
> Sent: zaterdag 13 december 2003 18:51
> To: Lenya Developers List
> Subject: Re: [IDEA] AssetTransformer
>
>
> Danny Bols wrote:
>
> > We have integrated the I18nTransformer transformer in one of our test
> > publications where we use woody for form handling. The I18N and Woody
> > samples in cocoon are a good start to see how it all works.
>
> woody for form handling, test publication? /me interested. would you be
> willing to make those available? :)
uhm .. uhm .. I would be willing .. if it weren't for the fact that
- it's based on a Lenya 1.1 version
- it has it's own PathMapper
- it has it's own sitetree
- some parts have sensitive content
- the woody forms are based on our own beans
So in other words...a bit difficult to make this test publication available.
I am willing to share my expierence though .. just let me know if it can be
of any value to the Lenya community.
--
Danny
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: [IDEA] AssetTransformer
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Danny Bols wrote:
> We have integrated the I18nTransformer transformer in one of our test
> publications where we use woody for form handling. The I18N and Woody
> samples in cocoon are a good start to see how it all works.
woody for form handling, test publication? /me interested. would you be
willing to make those available? :)
-gregor
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
RE: [IDEA] AssetTransformer
Posted by Danny Bols <db...@osirion.be>.
> -----Original Message-----
> From: Rolf Kulemann [mailto:mail@rolf-kulemann.com]
> > >
> > > Thank you, but a link is only one type of asset. What about
> acronyms or
> > > abbriviations like this in an xhtml syntax:
> > >
> > > <abbr id="asset:/abbrevs/thisone"/>
> > >
> > > get expanded to
> > >
> > > <abbr title="Enterprise Application Integration">EAI</abbr>
> > >
> >
> > I think the I18nTransformer of Cocoon is suitable for this.
> >
>
> Oh, yes I see. Lets make some tests.
We have integrated the I18nTransformer transformer in one of our test
publications where we use woody for form handling. The I18N and Woody
samples in cocoon are a good start to see how it all works.
--
Danny
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
RE: [IDEA] AssetTransformer
Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sat, 2003-12-13 at 17:16, Danny Bols wrote:
> > -----Original Message-----
> > From: Rolf Kulemann [mailto:mail@rolf-kulemann.com]
> > Sent: zaterdag 13 december 2003 17:00
> > To: Lenya Developers List
> > Subject: RE: [IDEA] AssetTransformer
> >
> >
> > On Sat, 2003-12-13 at 16:51, Danny Bols wrote:
> > > The cocoon linkrewriter used in Forrest is a nice solution for
> > this. Read
> > > more about it here:
> > > http://xml.apache.org/forrest/sitemap-ref.html#linkrewriting_impl
> >
> > Thank you, but a link is only one type of asset. What about acronyms or
> > abbriviations like this in an xhtml syntax:
> >
> > <abbr id="asset:/abbrevs/thisone"/>
> >
> > get expanded to
> >
> > <abbr title="Enterprise Application Integration">EAI</abbr>
> >
>
> I think the I18nTransformer of Cocoon is suitable for this.
>
Oh, yes I see. Lets make some tests.
Thanks.
> --
>
> Danny
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
--
Rolf Kulemann
Learning French is trivial: the word for horse is cheval, and
everything else follows in the same way.
-- Alan J. Perlis
PGP/GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
RE: [IDEA] AssetTransformer
Posted by Danny Bols <db...@osirion.be>.
> -----Original Message-----
> From: Rolf Kulemann [mailto:mail@rolf-kulemann.com]
> Sent: zaterdag 13 december 2003 17:00
> To: Lenya Developers List
> Subject: RE: [IDEA] AssetTransformer
>
>
> On Sat, 2003-12-13 at 16:51, Danny Bols wrote:
> > The cocoon linkrewriter used in Forrest is a nice solution for
> this. Read
> > more about it here:
> > http://xml.apache.org/forrest/sitemap-ref.html#linkrewriting_impl
>
> Thank you, but a link is only one type of asset. What about acronyms or
> abbriviations like this in an xhtml syntax:
>
> <abbr id="asset:/abbrevs/thisone"/>
>
> get expanded to
>
> <abbr title="Enterprise Application Integration">EAI</abbr>
>
I think the I18nTransformer of Cocoon is suitable for this.
--
Danny
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
RE: [IDEA] AssetTransformer
Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sat, 2003-12-13 at 16:51, Danny Bols wrote:
> The cocoon linkrewriter used in Forrest is a nice solution for this. Read
> more about it here:
> http://xml.apache.org/forrest/sitemap-ref.html#linkrewriting_impl
Thank you, but a link is only one type of asset. What about acronyms or
abbriviations like this in an xhtml syntax:
<abbr id="asset:/abbrevs/thisone"/>
get expanded to
<abbr title="Enterprise Application Integration">EAI</abbr>
More thoughts?
--
Rolf Kulemann
Tact, n.:
The unsaid part of what you're thinking.
PGP/GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
RE: [IDEA] AssetTransformer
Posted by Danny Bols <db...@osirion.be>.
The cocoon linkrewriter used in Forrest is a nice solution for this. Read
more about it here:
http://xml.apache.org/forrest/sitemap-ref.html#linkrewriting_impl
--
Danny
> -----Original Message-----
> From: Rolf Kulemann [mailto:mail@rolf-kulemann.com]
> Sent: zaterdag 13 december 2003 16:09
> To: Lenya Developers List
> Subject: [IDEA] AssetTransformer
>
>
> Hello Developers,
>
> sorry for trashing again ;)
>
> You may have noticed that I thought of a central asset store etc., but I
> think I meant a central function to replace all symbolic references to
> assets in doc. before send to a browser.
>
> It goes a little bit into the direction of the insert-asset ant task and
> other transformers already available i.e. AugmentTransformer.
>
> I think of i18n aware soft asset transformation. Think of an img tag
> like this (first draft):
>
> <img id="asset:/assetgroup/subgroup/logo"/>
>
> or an <a> tag like
>
> <a id="asset:/alink"/>
>
> which then gets replaced as
>
> <img src="/lenya/lenya/default/images/logo.jpg" alt="Logo of my company"
> title="A cool tooltip text which is specified in an asset dictionary or
> so"/>
>
> and
>
> <a href="#top" title="Go to top of page">Top</a>
>
> The title and llnk texts are i18n aware.
>
>
> In my projects I have used an xslt which has done all that.
>
>
> What do you think of an AssetTransformer?
>
>
> --
> Rolf Kulemann
>
> Monday is an awful way to spend one seventh of your life.
>
>
> PGP/GPG public key:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org