You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2004/11/15 17:48:24 UTC
Re: Selective PDF: Generating Site.xml (and tabs.xml)
Ferdinand Soethe wrote:
>
> Ross Gardler wrote:
>
>>>[RT] we should have a generator which produces a tab.xml based on each
>>>directory (title according to dir name), and site.xml provided based on
>>>exactly what files are in the directory (maybe limit to .xml files) and
>>>pull the title from the document.
>>>[/RT]
>
>
> RG> http://issues.cocoondev.org/browse/FOR-328 does something like this, but
> RG> it is an ANT script rather than a generator. An internal plugin that
> RG> does this if no site.xml file is found is a great idea.
>
> I'd like to suggest a different approach:
>
> Provide an piece of software (preferably Java-based, even better an
> Eclipse-plugin) that administrates site.xml as an outline and
> generates site.xml and tabs.xml on saving.
I have two responses to this:
Firstly, if we create a generator that reads the directory structure and
generates the site.xml and tabs.xml file as suggested above then there
is no need to write anything for Eclipse. Simply configure the existing
resource editor to only display the relevant files and you have your
editor.
Actually, you know this is a really good idea. I could knock this
together fairly quickly using the ANT script supplied above. Not a
dynamic generation process, but halfway there. Keep an eye on the
Eclipse plugin in our SVN, I have a feeling I may hack this out.
Secondly, for a more powerful solution take a look at
http://www.burrokeet.org which is developing an eclipse based
application that allows the graphica editing of Content Packages that
use an IMSManifest file instead of site.xml and tabs.xml.
<snip/>
> Hope I'm making myself clear enough?
So clear you changed my todo list priority ;-)
Ross
R: Selective PDF: Generating Site.xml (and tabs.xml)
Posted by Bruno Fonzi <br...@seceti.it>.
The ANT script to generate automatically site.xml and tabs.xml is
already available at:
http://issues.cocoondev.org/browse/FOR-328
-----Messaggio originale-----
Da: Ross Gardler [mailto:rgardler@apache.org]
Inviato: lunedì 15 novembre 2004 17.48
A: dev@forrest.apache.org
Oggetto: Re: Selective PDF: Generating Site.xml (and tabs.xml)
Ferdinand Soethe wrote:
>
> Ross Gardler wrote:
>
>>>[RT] we should have a generator which produces a tab.xml based on
>>>each directory (title according to dir name), and site.xml provided
>>>based on exactly what files are in the directory (maybe limit to .xml
>>>files) and pull the title from the document. [/RT]
>
>
> RG> http://issues.cocoondev.org/browse/FOR-328 does something like
> RG> this, but it is an ANT script rather than a generator. An internal
> RG> plugin that does this if no site.xml file is found is a great
> RG> idea.
>
> I'd like to suggest a different approach:
>
> Provide an piece of software (preferably Java-based, even better an
> Eclipse-plugin) that administrates site.xml as an outline and
> generates site.xml and tabs.xml on saving.
I have two responses to this:
Firstly, if we create a generator that reads the directory structure and
generates the site.xml and tabs.xml file as suggested above then there
is no need to write anything for Eclipse. Simply configure the existing
resource editor to only display the relevant files and you have your
editor.
Actually, you know this is a really good idea. I could knock this
together fairly quickly using the ANT script supplied above. Not a
dynamic generation process, but halfway there. Keep an eye on the
Eclipse plugin in our SVN, I have a feeling I may hack this out.
Secondly, for a more powerful solution take a look at
http://www.burrokeet.org which is developing an eclipse based
application that allows the graphica editing of Content Packages that
use an IMSManifest file instead of site.xml and tabs.xml.
<snip/>
> Hope I'm making myself clear enough?
So clear you changed my todo list priority ;-)
Ross
=== Start-of Internet E-mail Confidentiality Footer ===
L'uso non autorizzato di questo messaggio o dei suoi allegati e' vietato e potrebbe costituire reato.
Se ha ricevuto per errore questo messaggio, La preghiamo di informarci e di distruggerlo immediatamente coi suoi allegati.
Le dichiarazioni contenute in questo messaggio o nei suoi allegati non impegnano SECETI S.p.A. nei confronti del destinatario o di terzi.
SECETI S.p.A. non si assume alcuna responsabilita' per eventuali intercettazioni, modifiche o danneggiamenti del presente messaggio.
Any unauthorized use of this e-mail or any of its attachments is prohibited and could constitute an offence.
If you are not the intended addressee please advise immediately the sender and destroy the message and its attachments.
The contents of this message shall be understood as neither given nor endorsed by SECETI S.p.A.
SECETI S.p.A. does not accept liability for corruption, interception or amendment, if any, or the consequences thereof.
Re: Selective PDF: Generating Site.xml (and tabs.xml)
Posted by Ross Gardler <rg...@apache.org>.
Ferdinand Soethe wrote:
>
> Ross Gardler wrote:
>
<snip/>
> RG> Unfortunately it is not as simple a taking
> RG> the code from that project and using it here as the editor requries a
> RG> defined schema (which site.xml doesn't have).
>
> A schema as in XML-Schema? Could we not define one? Would make sense
> for people wanting to use other tools anyway.
This has been discussed a few times on the list and has usualy been
rejected for a variety of reasons, none of which I can remember right
now, apart from the one that follows...
> Each entry page being its own unique element might be a problem here.
> Why is that so anyway? Why not have elements like menu or menuitem
> instead?
Again I can't remember all the details. Could be to make things like
"site:howto/buildPlugin" possible. It could be done with attributes but
would be far less intuitive.
> RG> However, we are donating
> RG> as much code from that project to the Eclipse plugin in our SVN (for
> RG> example, the create project and create XDoc wizards).
>
> Here you lost me. Isn't SVN short for subversion? So who donates what
> for which project and what does that mean?
Burrokeet is a project that uses uses Forrest (amongst other things).
Many of the things we have done at Burrokeet are useful in Forrest
itself so wherever possible the Burrokeet project has donated relevant
code to Apache Forrest.
I mixed my "we's" and "our's" in the above sentence - no wonder you are
confused. it should say "the Burrokeet project is donating as much code
as possible to Forrest, much of which is/will be appearing in the
Eclipse plugin here in Forrest".
>>>- optional, but very useful: the ability to integrate into a framework
>>> such as eclipse where an action in my outline allows my to open the
>>> relevant file in a useful (that is dtd-aware) editor.
>
>
> RG> We have that too (in the Eclipse plugin), but to get it we are using
> RG> code donated by IBM that is not yet a part of the Eclipse CVS (milestone
> RG> date for inclusion is mid december).
>
> Are you saying that a dtd-aware editor will be part of Eclipse. Freu!?
Yes, see the web tools project on the Eclipse site.
> RG> Right now the editor is an XML editor, but this is exactly why I built
> RG> the htmlArea WYSIWYG plugin.
>
> Well I'm using XMLBuddy as an Eclipse-Plugin right now. Haven't gotten
> around to trying HTMLArea.
Stick with what you are comfortable with for now. I'll announce on this
list when the Forrest Eclipse plugin is a good replacement - that is,
unless you want to help me with the plugin, it is very usable now, just
takes a bit of configuring.
Ross
Re[2]: Selective PDF: Generating Site.xml (and tabs.xml)
Posted by Ferdinand Soethe <sa...@soethe.net>.
Ross Gardler wrote:
RG> The resource editor in Eclipse is the standard view for
RG> navigating/adding files etc. Nothing special, the one you normally work
RG> with.
OK, got that.
RG> For all these you need the editor in Burrokeet. It isn't a site.xml
RG> editor (uses IMSManifest).
OK, I roughly know what that is.
RG> Unfortunately it is not as simple a taking
RG> the code from that project and using it here as the editor requries a
RG> defined schema (which site.xml doesn't have).
A schema as in XML-Schema? Could we not define one? Would make sense
for people wanting to use other tools anyway.
Each entry page being its own unique element might be a problem here.
Why is that so anyway? Why not have elements like menu or menuitem
instead?
RG> However, we are donating
RG> as much code from that project to the Eclipse plugin in our SVN (for
RG> example, the create project and create XDoc wizards).
Here you lost me. Isn't SVN short for subversion? So who donates what
for which project and what does that mean?
>> - optional, but very useful: the ability to integrate into a framework
>> such as eclipse where an action in my outline allows my to open the
>> relevant file in a useful (that is dtd-aware) editor.
RG> We have that too (in the Eclipse plugin), but to get it we are using
RG> code donated by IBM that is not yet a part of the Eclipse CVS (milestone
RG> date for inclusion is mid december).
Are you saying that a dtd-aware editor will be part of Eclipse. Freu!?
RG> Right now the editor is an XML editor, but this is exactly why I built
RG> the htmlArea WYSIWYG plugin.
Well I'm using XMLBuddy as an Eclipse-Plugin right now. Haven't gotten
around to trying HTMLArea.
--
Ferdinand Soethe
Re: Selective PDF: Generating Site.xml (and tabs.xml)
Posted by Ross Gardler <rg...@apache.org>.
Ferdinand Soethe wrote:
>
> Ross Gardler wrote:
>
> RG> I have two responses to this:
>
> RG> Firstly, if we create a generator that reads the directory structure and
> RG> generates the site.xml and tabs.xml file as suggested above then there
> RG> is no need to write anything for Eclipse. Simply configure the existing
> RG> resource editor to only display the relevant files and you have your
> RG> editor.
>
> I'm not quite sure what resource editor your are talking about? Pls
> give me a hint.
The resource editor in Eclipse is the standard view for
navigating/adding files etc. Nothing special, the one you normally work
with.
> Important differences to just scanning directory structure are:
>
> - ability to move each file of a directory to the desired location in
> my menu as opposed to its place in a given directory sort order.
> - ability to administrate a label that is not necessarily the titel of
> the file (if it even has one)
> - further on: the ability to include other types or ressources that
> are not reflexted in a file.
For all these you need the editor in Burrokeet. It isn't a site.xml
editor (uses IMSManifest). Unfortunately it is not as simple a taking
the code from that project and using it here as the editor requries a
defined schema (which site.xml doesn't have). However, we are donating
as much code from that project to the Eclipse plugin in our SVN (for
example, the create project and create XDoc wizards).
> - optional, but very useful: the ability to integrate into a framework
> such as eclipse where an action in my outline allows my to open the
> relevant file in a useful (that is dtd-aware) editor.
We have that too (in the Eclipse plugin), but to get it we are using
code donated by IBM that is not yet a part of the Eclipse CVS (milestone
date for inclusion is mid december).
Right now the editor is an XML editor, but this is exactly why I built
the htmlArea WYSIWYG plugin.
Ross
Re[2]: Selective PDF: Generating Site.xml (and tabs.xml)
Posted by Ferdinand Soethe <sa...@soethe.net>.
Ross Gardler wrote:
RG> I have two responses to this:
RG> Firstly, if we create a generator that reads the directory structure and
RG> generates the site.xml and tabs.xml file as suggested above then there
RG> is no need to write anything for Eclipse. Simply configure the existing
RG> resource editor to only display the relevant files and you have your
RG> editor.
I'm not quite sure what resource editor your are talking about? Pls
give me a hint.
Important differences to just scanning directory structure are:
- ability to move each file of a directory to the desired location in
my menu as opposed to its place in a given directory sort order.
- ability to administrate a label that is not necessarily the titel of
the file (if it even has one)
- further on: the ability to include other types or ressources that
are not reflexted in a file.
- optional, but very useful: the ability to integrate into a framework
such as eclipse where an action in my outline allows my to open the
relevant file in a useful (that is dtd-aware) editor.
Although I admit that simply calling OS-mappings might do the trick
as well.
--
Ferdinand Soethe