You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Jeff Levitt <jl...@mutagen.net> on 2004/12/03 22:15:30 UTC

Derby documentation in XML DITA

I've seen some posts (Thanks Rick) regarding my idea
to move the Derby documentation to DITA, and I wanted
to provide you all with an update on the progress...

As we discussed previously on this list, I proposed to
migrate the Derby documentation to XML DITA to help
make the output more flexible than html.  In testing
DITA, I started with the Getting Started guide since
it was the smallest, and I used it to refine the
process and explore the output options.  The files for
the Getting Started Guide are now in DITA in the
attached zip file (update: The derby-dev list wont let
me attach the zip so I will send to Jean so she can
make it available for download).  To create output
from the DITA files, you need to use the ditamap file
included in the zip. 
This file sets the order and hierarchy of all of the
DITA files, and basically organizes the separate DITA
"topics" into a book.  

I also created a "conrefs" file (gsconrefs.dita) that
is not a topic that is included in the actual book,
but instead simply includes terms and names that can
change from time to time or are used repetitively. 
For example, the name of the product is "Derby," and I
placed that in the gsconrefs.dita file.  The rest of
the files don't actually use the word Derby when it is
needed; instead they point to the conrefs file.  That
way, if the name were to change for any reason, we
don't have to change it in 8 million places, we just
change it once in the conref file and it changes
everywhere.

As for creating html, xml, or pdf output, I have been
experimenting with Saxon and FOP.  I am going to try
Apache's Cocoon as well (and could really use a hand
from anyone who has time or inclination since Cocoon
is new to me).  So far, I have been able to use
Saxon's stylesheets to create individual html files as
well as one complete html file for the whole book.  I
have had some issues with linking between parent and
child topics, however, so if anyone is good with
XSL/XSLT, it might be a good idea to work together to
create some Derby-specific XSL stylesheets for our
purposes. 

As for PDF, I have also successfully used Saxon to
create a .fo file that can be transformed with Apache
FOP to create a PDF.  The PDF is complete, but has
formatting and linking problems.  Once again, if
anyone can help out here with the XSLT, I could use
it!

As for the rest of the documentation, I am already
almost finished with the Reference Manual.  The ref
manual is one of the larger books in the Derby
library, yet it took me much less time to convert to
DITA than the Getting Started Guide, since I spent so
much time refining the process on the first book.

Please post any comments on the DITA approach I used
for the Getting Started guide. And again if you have
any expertise with XSLT, I would appreciate the help!

Re: Derby documentation in XML DITA

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
scott hutinger wrote:

> ...
> Also, I am uncertain about the release date of 0.7.  I think Jean has
> the docs up to spec for 0.6, which I think is needed for 0.7.


The only remaining file is the faq.xml -- when I switched it to
forrest's faq-v20.dtd, forrest 0.5 failed to build it.  I'll backtrack
and try to get it working (or verify it can't build for whatever reason
on 0.5).

 -jean


Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
scott hutinger wrote:

> sissonj@insession.com wrote:
>
>> scott hutinger <s-...@wiu.edu> wrote on 06/12/2004 11:38:59 AM:
>>
>>  
>>
>>> I haven't followed that entire thread, nor can I find that thread 
>>> currently.  But, a log plugin; which I think? followes which files 
>>> have changed, has been developed using java.util.logging.  I think 
>>> it allows forrest to know which files have changed but I think it 
>>> runs on a dynamic site, and I am uncertain if the loging plugin is 
>>> hooked into forrest for this yet.
>>>
>>> I will keep my eyes on that and research it a bit.
>>>
>>> Also, I am uncertain about the release date of 0.7.  I think Jean 
>>> has the docs up to spec for 0.6, which I think is needed for 0.7.  
>>> Cocoon had a problem creating some graphic files which would create 
>>> errors in site logs, that was fixed in cocoon, but I don't know if 
>>> forrest updated   
>>
>>
>>  
>>
>>> cocoon with 6.0 after the release.  I can look into that on monday.
>>>
>>> scott
>>>
>>>   
>>
>>
>> Refer to the links in the comments of the following JIRA issue:
>>
>> http://nagoya.apache.org/jira/browse/DERBY-79
>>
>> It would be nice if the JIRA issue is used to record progress on the 
>> documentation.
>>
>>  
>>
>

Possibly Jeff has some information on DITA and possible search 
alternatives?  I would guess cocoon pdf output would be the limiting or 
non-limiting factor.

scott

> Thanks for pointing this out.  What did you have in mind for the 
> search on a pc?  I was wondering if you were thinking of  something 
> like the adobe extensible metadata platform, or something like that?  
> I really haven't looked at pdf search techniques.  I guess someone 
> could attach derby to pdf files somehow :-)
>
> scott
>
>> Thanks,
>>
>> John
>>
>>  
>>
>


Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.
> Windows only?!  Too bad they don't make it available
> for Linux.
> 
>  -jean

Not a problem :)  Here you go:
http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2003-07-30+12%3A39%3A33.410270R&S_TACT=104CBW71&S_CMP=&s=




Re: Derby documentation in XML DITA

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jeff Levitt wrote:

> ...
>
>Incidentally, I'm working on creating a process for
>anyone to download Eclipse and use it as a help system
>on their local machines or with a web server to
>display the Derby docs online.
>
>I found an IBM implementation of the Eclipse workbench
>that has been stripped down to the minimum for Help
>Systems by the Websphere developers, and includes the
>proper jre.  ...
>
>Anyways, you'll find the Websphere implementation at:
>
>http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2003-12-15+11%3A44%3A17.805174R&S_TACT=104CBW71&S_CMP=&s=
>
>The license is displayed when you try to download it.
>
>Once you have it on your Windows-based machine, all
>...
>  
>
Windows only?!  Too bad they don't make it available for Linux.

 -jean


Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.

> Just out of curiosity, can Eclipse's help system
> package use Apache
> Xalan (the cocoon default)? or does it require
> Saxon?
> 
>  -jean
> 
You just need anything that can build xhtml and an xml
nav tree.  I dont know anything about Xalan, but if it
can accomplish that like Saxon does, then its fine.

Incidentally, I'm working on creating a process for
anyone to download Eclipse and use it as a help system
on their local machines or with a web server to
display the Derby docs online.

I found an IBM implementation of the Eclipse workbench
that has been stripped down to the minimum for Help
Systems by the Websphere developers, and includes the
proper jre.  Much smaller than the full download, but
it does require a license, so I'm not sure if we can
use that legally.  Does anyone know?  If not, we can
always recreate it ourselves by downloading the full
Eclipse and stripping it down, but I had more success
using the Websphere implementation, since it already
included the jre.  I'm not a developer, and I know
very little about java, so I wasnt able to set up my
environment correctly without the included jre.  I'm
sure most of you would not have a problem with
that...:)

Anyways, you'll find the Websphere implementation at:

http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2003-12-15+11%3A44%3A17.805174R&S_TACT=104CBW71&S_CMP=&s=

The license is displayed when you try to download it.

Once you have it on your Windows-based machine, all
you need to do to run the help system is run the
"WebSphere help start.bat" file, which will hang for a
second and then launch your browser.  Dont forget to
run the end bat file after use to end the process.

Once you set that up and confirm its working, its a
simple matter of installing the Derby doc plugin.
I've already done that, but I'll need some more time
to document the process.  Once I'm finished, I'll post
it here.

Jeff

Re: Derby documentation in XML DITA

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jeff Levitt wrote:

> ...
>
>I have an idea that may just solve most if not all of
>these issues.  We can use Eclipse.
>... all we have to do is use
>saxon/cocoon to output xhtml from the DITA (I've
>already tested that with success), as well as create
>an XML nav tree from the ditamap, also using
>saxon/cocoon (again, tested successfully), and then
>throw those into an eclipse help system plugin.  
>...
>
Just out of curiosity, can Eclipse's help system package use Apache
Xalan (the cocoon default)? or does it require Saxon?

 -jean

Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
Jeff Levitt wrote:

>--- scott hutinger <s-...@wiu.edu> wrote:
>
>  
>
>>sissonj@insession.com wrote:
>>
>>    
>>
>>>scott hutinger <s-...@wiu.edu> wrote on
>>>      
>>>
>>06/12/2004 05:21:24 PM:
>>    
>>
>>> 
>>>
>>>      
>>>
>>>>sissonj@insession.com wrote:
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>scott hutinger <s-...@wiu.edu> wrote on
>>>>>          
>>>>>
>>06/12/2004 11:38:59 AM:
>>    
>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>I haven't followed that entire thread, nor can I
>>>>>>            
>>>>>>
>>find that thread 
>>    
>>
>>>>>>currently.  But, a log plugin; which I think?
>>>>>>            
>>>>>>
>>followes which files 
>>    
>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>have 
>>> 
>>>
>>>      
>>>
>>>>>>changed, has been developed using
>>>>>>            
>>>>>>
>>java.util.logging.  I think it 
>>    
>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>allows 
>>> 
>>>
>>>      
>>>
>>>>>>forrest to know which files have changed but I
>>>>>>            
>>>>>>
>>think it runs on a 
>>    
>>
>>>>>>dynamic site, and I am uncertain if the loging
>>>>>>            
>>>>>>
>>plugin is hooked into 
>>    
>>
>>>>>>forrest for this yet.
>>>>>>
>>>>>>I will keep my eyes on that and research it a
>>>>>>            
>>>>>>
>>bit.
>>    
>>
>>>>>>Also, I am uncertain about the release date of
>>>>>>            
>>>>>>
>>0.7.  I think Jean has 
>>    
>>
>>>>>>the docs up to spec for 0.6, which I think is
>>>>>>            
>>>>>>
>>needed for 0.7.  Cocoon 
>>    
>>
>>>>>>had a problem creating some graphic files which
>>>>>>            
>>>>>>
>>would create errors in 
>>    
>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>> 
>>>
>>>      
>>>
>>>>>>site logs, that was fixed in cocoon, but I don't
>>>>>>            
>>>>>>
>>know if forrest 
>>    
>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>updated 
>>> 
>>>
>>>      
>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>cocoon with 6.0 after the release.  I can look
>>>>>>            
>>>>>>
>>into that on monday.
>>    
>>
>>>>>>scott
>>>>>>
>>>>>>
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>Refer to the links in the comments of the
>>>>>          
>>>>>
>>following JIRA issue:
>>    
>>
>>>>>http://nagoya.apache.org/jira/browse/DERBY-79
>>>>>
>>>>>It would be nice if the JIRA issue is used to
>>>>>          
>>>>>
>>record progress on the 
>>    
>>
>>>>>documentation.
>>>>>
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>Thanks for pointing this out.  What did you have
>>>>        
>>>>
>>in mind for the search 
>>    
>>
>>>>on a pc?  I was wondering if you were thinking of 
>>>>        
>>>>
>>something like the 
>>    
>>
>>>>adobe extensible metadata platform, or something
>>>>        
>>>>
>>like that?  I really 
>>    
>>
>>>>haven't looked at pdf search techniques.  I guess
>>>>        
>>>>
>>someone could attach 
>>    
>>
>>>>derby to pdf files somehow :-)
>>>>
>>>>scott
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Thanks,
>>>>>
>>>>>John
>>>>>
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>Hi Scott,
>>>
>>>I haven't spent any time with cocoon, FOP etc, but
>>>      
>>>
>>I have seen other 
>>    
>>
>>>commercial software products provide a PDF document
>>>      
>>>
>>for each of their 
>>    
>>
>>>manuals and a searchable index that covers all the
>>>      
>>>
>>manuals. 
>>    
>>
>>>I'm not sure if any of the open source PDF file
>>>      
>>>
>>generation solutions 
>>    
>>
>>>provide something like:
>>>      
>>>
>>http://www.adobe.co.uk/epaper/tips/acr5search/main.html
>>    
>>
>>>I wasn't trying to suggest that Derby be somehow
>>>      
>>>
>>used to search PDF 
>>    
>>
>>>documentation (not sure if that is what you thought
>>>      
>>>
>>I said).. 
>>    
>>
>>>I would like the ability to search within acrobat
>>>      
>>>
>>reader across the 
>>    
>>
>>>different derby manuals and also have the ability
>>>      
>>>
>>to have links from one 
>>    
>>
>>>manual to the other (as I found I had to refer to
>>>      
>>>
>>more than one manual to 
>>    
>>
>>>perform some Derby tasks).
>>>
>>> 
>>>
>>>      
>>>
>>OK, I understand.  I guess I didn't read the issue
>>correctly all the way.
>>
>>    
>>
>>>The following page describes the search
>>>      
>>>
>>functionality and it also 
>>    
>>
>>>mentioned PDF metadata (that you mentioned), so it
>>>      
>>>
>>sounds like you might 
>>    
>>
>>>have given yourself away as the PDF expert :-)
>>>
>>> 
>>>
>>>      
>>>
>>Actually, I don't know anything about PDF.  I did
>>notice that FOP 
>>supports PDF version 1.3.  So I don't think embedded
>>XML within the PDF 
>>file would work.  It does have Document Level
>>Navigation, Destinations, 
>>Bookmarks etc.  I did notice in FOP if memory
>>problems start to exist, 
>>turn off forward references.  But the point I guess
>>is, do any other new 
>>document formats exist that might be better than
>>PDF?  I know we will 
>>still output to PDF, but thought some other cool
>>document display 
>>architecture might exist.   I don't know, as I am
>>clueless about such 
>>things.  I can look a bit though.
>>
>>Anyone know of some other display architecture?
>>I'll look more into FOP to see what all it supports.
>>
>>thanks,
>>scott
>>
>>
>>http://www.planetpdf.com/enterprise/article.asp?ContentID=6521
>>    
>>
>>>Cheers,
>>>
>>>John
>>>
>>> 
>>>      
>>>
>
>I have an idea that may just solve most if not all of
>these issues.  We can use Eclipse.
>
>Check out the Cloudscape version of the help:
>http://publib.boulder.ibm.com/infocenter/cldscp10/index.jsp
>
>That entire site was created using Eclipse's help
>system package.  To learn more about creating an
>Eclipse help system, read about it here:
>
>http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.platform.doc.isv/reference/misc/help_standalone.html?rev=1.26.2.2
>
>And to deploy a help system on the web:
>
>http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.platform.doc.isv/reference/misc/help_infocenter.html?rev=1.27.2.2
>
>Long story short, we could host it on the Derby site
>using an Apache http server.  I'm not good with the
>technical aspects of this, so hopefully someone can
>read up on whether the requirements for hosting this
>would be allowed by Apache.
>
>But if we can, then all we have to do is use
>saxon/cocoon to output xhtml from the DITA (I've
>already tested that with success), as well as create
>an XML nav tree from the ditamap, also using
>saxon/cocoon (again, tested successfully), and then
>throw those into an eclipse help system plugin.  The
>result would be almost exactly what you see on the
>Cloudscape infocenter.  We'd have full advanced
>pre-indexed search on all the docs at once, a much
>more advanced nav tree, and once we set it up and take
>a look at how related links work within the system, we
>could modify the dita files to add links between the
>docs where needed.  We'd still have PDF docs for those
>who want them, of course.
>
>I took the liberty of throwing my tested xhtml and and
>xml nav tree into a plugin and testing it locally, and
>it looked alright.
>
>Does this sound like it could work?
>
>Jeff
>
>  
>
I think it sounds like a good idea myself.  I would be willing as a 
user, to use jetty or something else, and host the help on my own 
machine during development.  I don't see why others wouldn't if that is 
what they wanted.  I guess a doc on how to use it might be needed :-)

I don't know about apache.org, one would think that would be allowed 
since they are the builder of such things.  But I think it could have 
dual use, a local machine and a website if it all worked out.

scott

Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.
--- sissonj@insession.com wrote:
> > > 
> Sounds like an option, although it means that
> everyone has to install 
> another program to read the manuals. I agree we
> would still want the PDFs 
> so the manuals can be printed.
> 
> How big would a minimal configuration for
> stand-alone help be?  Hoping it 
> isn't too heavy weight..
> 
> John
> 
> 
Sorry I didnt include this information in my previous
post.  The Websphere implementation of the Eclipse
help system is a 31 MB download, but that includes the
jre.  Unpacked from the zip download, your looking at
43-44 MB on your hard disk.  Subtracting the 33 MB
jre, however, brings you down to ~10 MB.

And of course, if we can host the infocenter at the
Derby site in place of the current Forrest setup, then
users just view it online with no need for any
download.  We can even include links to PDF downloads
from the welcome page of the help system.



Re: Derby documentation in XML DITA

Posted by si...@insession.com.
> 
> I have an idea that may just solve most if not all of
> these issues.  We can use Eclipse.
> 
> Check out the Cloudscape version of the help:
> http://publib.boulder.ibm.com/infocenter/cldscp10/index.jsp
> 
> That entire site was created using Eclipse's help
> system package.  To learn more about creating an
> Eclipse help system, read about it here:
> 
> http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.
> platform.doc.isv/reference/misc/help_standalone.html?rev=1.26.2.2
> 
> And to deploy a help system on the web:
> 
> http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.
> platform.doc.isv/reference/misc/help_infocenter.html?rev=1.27.2.2
> 
> Long story short, we could host it on the Derby site
> using an Apache http server.  I'm not good with the
> technical aspects of this, so hopefully someone can
> read up on whether the requirements for hosting this
> would be allowed by Apache.
> 
> But if we can, then all we have to do is use
> saxon/cocoon to output xhtml from the DITA (I've
> already tested that with success), as well as create
> an XML nav tree from the ditamap, also using
> saxon/cocoon (again, tested successfully), and then
> throw those into an eclipse help system plugin.  The
> result would be almost exactly what you see on the
> Cloudscape infocenter.  We'd have full advanced
> pre-indexed search on all the docs at once, a much
> more advanced nav tree, and once we set it up and take
> a look at how related links work within the system, we
> could modify the dita files to add links between the
> docs where needed.  We'd still have PDF docs for those
> who want them, of course.
> 
> I took the liberty of throwing my tested xhtml and and
> xml nav tree into a plugin and testing it locally, and
> it looked alright.
> 
> Does this sound like it could work?
> 
> Jeff

Sounds like an option, although it means that everyone has to install 
another program to read the manuals. I agree we would still want the PDFs 
so the manuals can be printed.

How big would a minimal configuration for stand-alone help be?  Hoping it 
isn't too heavy weight..

John

Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.
--- scott hutinger <s-...@wiu.edu> wrote:

> sissonj@insession.com wrote:
> 
> >scott hutinger <s-...@wiu.edu> wrote on
> 06/12/2004 05:21:24 PM:
> >
> >  
> >
> >>sissonj@insession.com wrote:
> >>
> >>    
> >>
> >>>scott hutinger <s-...@wiu.edu> wrote on
> 06/12/2004 11:38:59 AM:
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>>>I haven't followed that entire thread, nor can I
> find that thread 
> >>>>currently.  But, a log plugin; which I think?
> followes which files 
> >>>>        
> >>>>
> >have 
> >  
> >
> >>>>changed, has been developed using
> java.util.logging.  I think it 
> >>>>        
> >>>>
> >allows 
> >  
> >
> >>>>forrest to know which files have changed but I
> think it runs on a 
> >>>>dynamic site, and I am uncertain if the loging
> plugin is hooked into 
> >>>>forrest for this yet.
> >>>>
> >>>>I will keep my eyes on that and research it a
> bit.
> >>>>
> >>>>Also, I am uncertain about the release date of
> 0.7.  I think Jean has 
> >>>>the docs up to spec for 0.6, which I think is
> needed for 0.7.  Cocoon 
> >>>>had a problem creating some graphic files which
> would create errors in 
> >>>>        
> >>>>
> >
> >  
> >
> >>>>site logs, that was fixed in cocoon, but I don't
> know if forrest 
> >>>>        
> >>>>
> >updated 
> >  
> >
> >>>>        
> >>>>
> >>>
> >>>      
> >>>
> >>>>cocoon with 6.0 after the release.  I can look
> into that on monday.
> >>>>
> >>>>scott
> >>>>
> >>>>
> >>>>
> >>>>        
> >>>>
> >>>Refer to the links in the comments of the
> following JIRA issue:
> >>>
> >>>http://nagoya.apache.org/jira/browse/DERBY-79
> >>>
> >>>It would be nice if the JIRA issue is used to
> record progress on the 
> >>>documentation.
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>Thanks for pointing this out.  What did you have
> in mind for the search 
> >>on a pc?  I was wondering if you were thinking of 
> something like the 
> >>adobe extensible metadata platform, or something
> like that?  I really 
> >>haven't looked at pdf search techniques.  I guess
> someone could attach 
> >>derby to pdf files somehow :-)
> >>
> >>scott
> >>
> >>    
> >>
> >>>Thanks,
> >>>
> >>>John
> >>>
> >>>
> >>>
> >>>      
> >>>
> >Hi Scott,
> >
> >I haven't spent any time with cocoon, FOP etc, but
> I have seen other 
> >commercial software products provide a PDF document
> for each of their 
> >manuals and a searchable index that covers all the
> manuals. 
> >
> >I'm not sure if any of the open source PDF file
> generation solutions 
> >provide something like:
>
>http://www.adobe.co.uk/epaper/tips/acr5search/main.html
> >
> >I wasn't trying to suggest that Derby be somehow
> used to search PDF 
> >documentation (not sure if that is what you thought
> I said).. 
> >
> >I would like the ability to search within acrobat
> reader across the 
> >different derby manuals and also have the ability
> to have links from one 
> >manual to the other (as I found I had to refer to
> more than one manual to 
> >perform some Derby tasks).
> >
> >  
> >
> OK, I understand.  I guess I didn't read the issue
> correctly all the way.
> 
> >The following page describes the search
> functionality and it also 
> >mentioned PDF metadata (that you mentioned), so it
> sounds like you might 
> >have given yourself away as the PDF expert :-)
> >
> >  
> >
> Actually, I don't know anything about PDF.  I did
> notice that FOP 
> supports PDF version 1.3.  So I don't think embedded
> XML within the PDF 
> file would work.  It does have Document Level
> Navigation, Destinations, 
> Bookmarks etc.  I did notice in FOP if memory
> problems start to exist, 
> turn off forward references.  But the point I guess
> is, do any other new 
> document formats exist that might be better than
> PDF?  I know we will 
> still output to PDF, but thought some other cool
> document display 
> architecture might exist.   I don't know, as I am
> clueless about such 
> things.  I can look a bit though.
> 
> Anyone know of some other display architecture?
> I'll look more into FOP to see what all it supports.
> 
> thanks,
> scott
> 
>
>http://www.planetpdf.com/enterprise/article.asp?ContentID=6521
> >
> >Cheers,
> >
> >John
> >
> >  

I have an idea that may just solve most if not all of
these issues.  We can use Eclipse.

Check out the Cloudscape version of the help:
http://publib.boulder.ibm.com/infocenter/cldscp10/index.jsp

That entire site was created using Eclipse's help
system package.  To learn more about creating an
Eclipse help system, read about it here:

http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.platform.doc.isv/reference/misc/help_standalone.html?rev=1.26.2.2

And to deploy a help system on the web:

http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.platform.doc.isv/reference/misc/help_infocenter.html?rev=1.27.2.2

Long story short, we could host it on the Derby site
using an Apache http server.  I'm not good with the
technical aspects of this, so hopefully someone can
read up on whether the requirements for hosting this
would be allowed by Apache.

But if we can, then all we have to do is use
saxon/cocoon to output xhtml from the DITA (I've
already tested that with success), as well as create
an XML nav tree from the ditamap, also using
saxon/cocoon (again, tested successfully), and then
throw those into an eclipse help system plugin.  The
result would be almost exactly what you see on the
Cloudscape infocenter.  We'd have full advanced
pre-indexed search on all the docs at once, a much
more advanced nav tree, and once we set it up and take
a look at how related links work within the system, we
could modify the dita files to add links between the
docs where needed.  We'd still have PDF docs for those
who want them, of course.

I took the liberty of throwing my tested xhtml and and
xml nav tree into a plugin and testing it locally, and
it looked alright.

Does this sound like it could work?

Jeff

Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
sissonj@insession.com wrote:

>scott hutinger <s-...@wiu.edu> wrote on 06/12/2004 05:21:24 PM:
>
>  
>
>>sissonj@insession.com wrote:
>>
>>    
>>
>>>scott hutinger <s-...@wiu.edu> wrote on 06/12/2004 11:38:59 AM:
>>>
>>>
>>>
>>>      
>>>
>>>>I haven't followed that entire thread, nor can I find that thread 
>>>>currently.  But, a log plugin; which I think? followes which files 
>>>>        
>>>>
>have 
>  
>
>>>>changed, has been developed using java.util.logging.  I think it 
>>>>        
>>>>
>allows 
>  
>
>>>>forrest to know which files have changed but I think it runs on a 
>>>>dynamic site, and I am uncertain if the loging plugin is hooked into 
>>>>forrest for this yet.
>>>>
>>>>I will keep my eyes on that and research it a bit.
>>>>
>>>>Also, I am uncertain about the release date of 0.7.  I think Jean has 
>>>>the docs up to spec for 0.6, which I think is needed for 0.7.  Cocoon 
>>>>had a problem creating some graphic files which would create errors in 
>>>>        
>>>>
>
>  
>
>>>>site logs, that was fixed in cocoon, but I don't know if forrest 
>>>>        
>>>>
>updated 
>  
>
>>>>        
>>>>
>>>
>>>      
>>>
>>>>cocoon with 6.0 after the release.  I can look into that on monday.
>>>>
>>>>scott
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>Refer to the links in the comments of the following JIRA issue:
>>>
>>>http://nagoya.apache.org/jira/browse/DERBY-79
>>>
>>>It would be nice if the JIRA issue is used to record progress on the 
>>>documentation.
>>>
>>>
>>>
>>>      
>>>
>>Thanks for pointing this out.  What did you have in mind for the search 
>>on a pc?  I was wondering if you were thinking of  something like the 
>>adobe extensible metadata platform, or something like that?  I really 
>>haven't looked at pdf search techniques.  I guess someone could attach 
>>derby to pdf files somehow :-)
>>
>>scott
>>
>>    
>>
>>>Thanks,
>>>
>>>John
>>>
>>>
>>>
>>>      
>>>
>Hi Scott,
>
>I haven't spent any time with cocoon, FOP etc, but I have seen other 
>commercial software products provide a PDF document for each of their 
>manuals and a searchable index that covers all the manuals. 
>
>I'm not sure if any of the open source PDF file generation solutions 
>provide something like:
>http://www.adobe.co.uk/epaper/tips/acr5search/main.html
>
>I wasn't trying to suggest that Derby be somehow used to search PDF 
>documentation (not sure if that is what you thought I said).. 
>
>I would like the ability to search within acrobat reader across the 
>different derby manuals and also have the ability to have links from one 
>manual to the other (as I found I had to refer to more than one manual to 
>perform some Derby tasks).
>
>  
>
OK, I understand.  I guess I didn't read the issue correctly all the way.

>The following page describes the search functionality and it also 
>mentioned PDF metadata (that you mentioned), so it sounds like you might 
>have given yourself away as the PDF expert :-)
>
>  
>
Actually, I don't know anything about PDF.  I did notice that FOP 
supports PDF version 1.3.  So I don't think embedded XML within the PDF 
file would work.  It does have Document Level Navigation, Destinations, 
Bookmarks etc.  I did notice in FOP if memory problems start to exist, 
turn off forward references.  But the point I guess is, do any other new 
document formats exist that might be better than PDF?  I know we will 
still output to PDF, but thought some other cool document display 
architecture might exist.   I don't know, as I am clueless about such 
things.  I can look a bit though.

Anyone know of some other display architecture?
I'll look more into FOP to see what all it supports.

thanks,
scott

>http://www.planetpdf.com/enterprise/article.asp?ContentID=6521
>
>Cheers,
>
>John
>
>  
>


Re: Derby documentation in XML DITA

Posted by si...@insession.com.
scott hutinger <s-...@wiu.edu> wrote on 06/12/2004 05:21:24 PM:

> sissonj@insession.com wrote:
> 
> >scott hutinger <s-...@wiu.edu> wrote on 06/12/2004 11:38:59 AM:
> >
> > 
> >
> >>I haven't followed that entire thread, nor can I find that thread 
> >>currently.  But, a log plugin; which I think? followes which files 
have 
> >>changed, has been developed using java.util.logging.  I think it 
allows 
> >>forrest to know which files have changed but I think it runs on a 
> >>dynamic site, and I am uncertain if the loging plugin is hooked into 
> >>forrest for this yet.
> >>
> >>I will keep my eyes on that and research it a bit.
> >>
> >>Also, I am uncertain about the release date of 0.7.  I think Jean has 
> >>the docs up to spec for 0.6, which I think is needed for 0.7.  Cocoon 
> >>had a problem creating some graphic files which would create errors in 

> >>site logs, that was fixed in cocoon, but I don't know if forrest 
updated 
> >> 
> >>
> >
> > 
> >
> >>cocoon with 6.0 after the release.  I can look into that on monday.
> >>
> >>scott
> >>
> >> 
> >>
> >
> >Refer to the links in the comments of the following JIRA issue:
> >
> >http://nagoya.apache.org/jira/browse/DERBY-79
> >
> >It would be nice if the JIRA issue is used to record progress on the 
> >documentation.
> >
> > 
> >
> 
> Thanks for pointing this out.  What did you have in mind for the search 
> on a pc?  I was wondering if you were thinking of  something like the 
> adobe extensible metadata platform, or something like that?  I really 
> haven't looked at pdf search techniques.  I guess someone could attach 
> derby to pdf files somehow :-)
> 
> scott
> 
> >Thanks,
> >
> >John
> >
> > 
> >
> 
Hi Scott,

I haven't spent any time with cocoon, FOP etc, but I have seen other 
commercial software products provide a PDF document for each of their 
manuals and a searchable index that covers all the manuals. 

I'm not sure if any of the open source PDF file generation solutions 
provide something like:
http://www.adobe.co.uk/epaper/tips/acr5search/main.html

I wasn't trying to suggest that Derby be somehow used to search PDF 
documentation (not sure if that is what you thought I said).. 

I would like the ability to search within acrobat reader across the 
different derby manuals and also have the ability to have links from one 
manual to the other (as I found I had to refer to more than one manual to 
perform some Derby tasks).

The following page describes the search functionality and it also 
mentioned PDF metadata (that you mentioned), so it sounds like you might 
have given yourself away as the PDF expert :-)

http://www.planetpdf.com/enterprise/article.asp?ContentID=6521

Cheers,

John

Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
sissonj@insession.com wrote:

>scott hutinger <s-...@wiu.edu> wrote on 06/12/2004 11:38:59 AM:
>
>  
>
>>I haven't followed that entire thread, nor can I find that thread 
>>currently.  But, a log plugin; which I think? followes which files have 
>>changed, has been developed using java.util.logging.  I think it allows 
>>forrest to know which files have changed but I think it runs on a 
>>dynamic site, and I am uncertain if the loging plugin is hooked into 
>>forrest for this yet.
>>
>>I will keep my eyes on that and research it a bit.
>>
>>Also, I am uncertain about the release date of 0.7.  I think Jean has 
>>the docs up to spec for 0.6, which I think is needed for 0.7.  Cocoon 
>>had a problem creating some graphic files which would create errors in 
>>site logs, that was fixed in cocoon, but I don't know if forrest updated 
>>    
>>
>
>  
>
>>cocoon with 6.0 after the release.  I can look into that on monday.
>>
>>scott
>>
>>    
>>
>
>Refer to the links in the comments of the following JIRA issue:
>
>http://nagoya.apache.org/jira/browse/DERBY-79
>
>It would be nice if the JIRA issue is used to record progress on the 
>documentation.
>
>  
>

Thanks for pointing this out.  What did you have in mind for the search 
on a pc?  I was wondering if you were thinking of  something like the 
adobe extensible metadata platform, or something like that?  I really 
haven't looked at pdf search techniques.  I guess someone could attach 
derby to pdf files somehow :-)

scott

>Thanks,
>
>John
>
>  
>


Re: Derby documentation in XML DITA

Posted by si...@insession.com.
scott hutinger <s-...@wiu.edu> wrote on 06/12/2004 11:38:59 AM:

> >
> I haven't followed that entire thread, nor can I find that thread 
> currently.  But, a log plugin; which I think? followes which files have 
> changed, has been developed using java.util.logging.  I think it allows 
> forrest to know which files have changed but I think it runs on a 
> dynamic site, and I am uncertain if the loging plugin is hooked into 
> forrest for this yet.
> 
> I will keep my eyes on that and research it a bit.
> 
> Also, I am uncertain about the release date of 0.7.  I think Jean has 
> the docs up to spec for 0.6, which I think is needed for 0.7.  Cocoon 
> had a problem creating some graphic files which would create errors in 
> site logs, that was fixed in cocoon, but I don't know if forrest updated 

> cocoon with 6.0 after the release.  I can look into that on monday.
> 
> scott
> 

Refer to the links in the comments of the following JIRA issue:

http://nagoya.apache.org/jira/browse/DERBY-79

It would be nice if the JIRA issue is used to record progress on the 
documentation.

Thanks,

John


Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
Jeff Levitt wrote:

>--- "Jean T. Anderson" <jt...@bristowhill.com> wrote:
>  
>
>>The number of source files actually goes up for
>>dita. For example, the
>>Getting Started guide currently has 27 files, which
>>increases to 34 dita
>>files -- and it makes sense that this would happen
>>since there is one
>>topic per file. The situation would improve for dita
>>because there would
>>be fewer files on output -- unless somebody wanted
>>one built file per
>>topic, which I think is unlikely. 
>>    
>>
>
>Actually Jean, there may be more cases of people
>transforming to one file per topic than most people
>think.  If you build an infocenter motif, basically a
>framed help site with the nav tree on the left and
>content on the right, most likely that is how you
>would do it.  And the other docs will increase in
>number of files way more than the Getting Started
>Guide.  The reference manual will be divided by
>functions, procedures, etc. for example.  Hundreds of
>files.  Scott, does building a plugin for Forrest in
>0.7 get around this huge time lag in rebuilding each
>time with a bunch of files?
>
>  
>
I haven't followed that entire thread, nor can I find that thread 
currently.  But, a log plugin; which I think? followes which files have 
changed, has been developed using java.util.logging.  I think it allows 
forrest to know which files have changed but I think it runs on a 
dynamic site, and I am uncertain if the loging plugin is hooked into 
forrest for this yet.

I will keep my eyes on that and research it a bit.

Also, I am uncertain about the release date of 0.7.  I think Jean has 
the docs up to spec for 0.6, which I think is needed for 0.7.  Cocoon 
had a problem creating some graphic files which would create errors in 
site logs, that was fixed in cocoon, but I don't know if forrest updated 
cocoon with 6.0 after the release.  I can look into that on monday.

scott


Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.
--- "Jean T. Anderson" <jt...@bristowhill.com> wrote:
> 
> The number of source files actually goes up for
> dita. For example, the
> Getting Started guide currently has 27 files, which
> increases to 34 dita
> files -- and it makes sense that this would happen
> since there is one
> topic per file. The situation would improve for dita
> because there would
> be fewer files on output -- unless somebody wanted
> one built file per
> topic, which I think is unlikely. 

Actually Jean, there may be more cases of people
transforming to one file per topic than most people
think.  If you build an infocenter motif, basically a
framed help site with the nav tree on the left and
content on the right, most likely that is how you
would do it.  And the other docs will increase in
number of files way more than the Getting Started
Guide.  The reference manual will be divided by
functions, procedures, etc. for example.  Hundreds of
files.  Scott, does building a plugin for Forrest in
0.7 get around this huge time lag in rebuilding each
time with a bunch of files?

Re: Derby documentation in XML DITA

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
scott hutinger wrote:

> ...
> First, I think the DITA.dtd files are needed to do any
> transformation.  These files are currently at ../ which means they are
> missing.  I downloaded the DITA.dtd's from IBM's website.  Forrest has
> a really nice architecture currently in the 0.7-dev only code base
> which allows the use of plug-ins.  The

We had been talking about upgrading the derby web site from 0.5 to 0.6.
Should we think in terms of skipping 0.6 and going directly to 0.7?

> ...  But the important thing is how to transform DITA.  One could
> control the output into html, or one could transform to forrest xdoc
> format.  I would prefer to output to xdoc format to stay within the
> forrest model.  Any ideas about this?
> ...

One issue I have with the current set up is 700+ source ihtml files for
the manuals result in 700+ built html files, and any minor change to the
web site, for example to add Jeff's dita zip file :-), results in
rebuilding/recopying *all* files for the web site.

A couple months ago I checked to see if there was a way to tell the
'forrest site' command to do just a partial build -- and I didn't spot a
way, but I was only looking at 0.5. Do you know if there's a way? For
example, if I know that only two source files have changed, is there a
way to tell forrest to process just those two files? (All bets are off,
of course, if the site.xml or tabs.xml file changes.)

The number of source files actually goes up for dita. For example, the
Getting Started guide currently has 27 files, which increases to 34 dita
files -- and it makes sense that this would happen since there is one
topic per file. The situation would improve for dita because there would
be fewer files on output -- unless somebody wanted one built file per
topic, which I think is unlikely. But I'm still concerned that any
change to the web site requires rebuilding all files.

Or might it make sense to have a separate forrest tree for just the
Derby manuals? Then copy the result of that build into the web site tree?

 -jean



 

Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
Jeff Levitt wrote:

>I've seen some posts (Thanks Rick) regarding my idea
>to move the Derby documentation to DITA, and I wanted
>to provide you all with an update on the progress...
>
>As we discussed previously on this list, I proposed to
>migrate the Derby documentation to XML DITA to help
>make the output more flexible than html.  In testing
>DITA, I started with the Getting Started guide since
>it was the smallest, and I used it to refine the
>process and explore the output options.  The files for
>the Getting Started Guide are now in DITA in the
>attached zip file (update: The derby-dev list wont let
>me attach the zip so I will send to Jean so she can
>make it available for download).  To create output
>from the DITA files, you need to use the ditamap file
>included in the zip. 
>This file sets the order and hierarchy of all of the
>DITA files, and basically organizes the separate DITA
>"topics" into a book.  
>
>I also created a "conrefs" file (gsconrefs.dita) that
>is not a topic that is included in the actual book,
>but instead simply includes terms and names that can
>change from time to time or are used repetitively. 
>For example, the name of the product is "Derby," and I
>placed that in the gsconrefs.dita file.  The rest of
>the files don't actually use the word Derby when it is
>needed; instead they point to the conrefs file.  That
>way, if the name were to change for any reason, we
>don't have to change it in 8 million places, we just
>change it once in the conref file and it changes
>everywhere.
>
>As for creating html, xml, or pdf output, I have been
>experimenting with Saxon and FOP.  I am going to try
>Apache's Cocoon as well (and could really use a hand
>from anyone who has time or inclination since Cocoon
>is new to me).  So far, I have been able to use
>Saxon's stylesheets to create individual html files as
>well as one complete html file for the whole book.  I
>have had some issues with linking between parent and
>child topics, however, so if anyone is good with
>XSL/XSLT, it might be a good idea to work together to
>create some Derby-specific XSL stylesheets for our
>purposes. 
>
>As for PDF, I have also successfully used Saxon to
>create a .fo file that can be transformed with Apache
>FOP to create a PDF.  The PDF is complete, but has
>formatting and linking problems.  Once again, if
>anyone can help out here with the XSLT, I could use
>it!
>
>As for the rest of the documentation, I am already
>almost finished with the Reference Manual.  The ref
>manual is one of the larger books in the Derby
>library, yet it took me much less time to convert to
>DITA than the Getting Started Guide, since I spent so
>much time refining the process on the first book.
>
>Please post any comments on the DITA approach I used
>for the Getting Started guide. And again if you have
>any expertise with XSLT, I would appreciate the help!
>
>  
>
I have had some off-line communication with Jeff about this subject.  
Here is where I see the current state of the transformation of DITA.

First, I think the DITA.dtd files are needed to do any transformation.  
These files are currently at ../ which means they are missing.  I 
downloaded the DITA.dtd's from IBM's website.  Forrest has a really nice 
architecture currently in the 0.7-dev only code base which allows the 
use of plug-ins.  The plug-in can be hosted, or rather should be hosted 
at a location.  I haven't fully explored this concept, as it could be 
possible to break the plugin unless some information were available 
about downward compatibility.  I asked the forrest-dev list what would 
be the naming convention.  org.apache.derby.dita (or 
org.apache.derby.DITA, although I prefer lower case) should be the 
convention.  But the important thing is how to transform DITA.  One 
could control the output into html, or one could transform to forrest 
xdoc format.  I would prefer to output to xdoc format to stay within the 
forrest model.  Any ideas about this?

thanks,
scott

Re: [doc] Re: Derby documentation in XML DITA

Posted by Jeff Levitt <le...@yahoo.com>.
--- scott hutinger <s-...@wiu.edu> wrote:

> I wasn't clear what the bat files were doing with
> the command 'saxon'.  
> This is due to the command being instant saxon,
> which is a stripped down 
> version of saxon (only in terms of samples, source,
> documentation ).  So 
> saxon.exe is the xslt processor according to the web
> site.
> 
> I didn't have time last week to follow what
> 'saxon.exe' was; so got the 
> bat files modified, but got lost on the saxon
> command.
> 
> You were saying that the pdf file output was rather
> bad.  I wasn't 
> certain if this was due to missing items that need
> to be in the final 
> document, or if it was something else?  I have been
> a bit busy getting 
> some information needed in some different areas so I
> could be a bit more 
> fluent in this area.
> 
> scott
> 

Yes the PDF file is bad, but I cant say whether the
problems are due to a lack of information in the dita
files or if we need to modify the stylesheets somehow.
 We just need to do some experimenting to see what
needs to be done.  I plan on playing with it soon, but
right now I am trying to finish up the conversion of
the Reference Manual to DITA, which is very close to
being done.  Once thats done, I'll have more time to
do some research on that issue, and we'll also ahve
another book to work with! 

FYI, while the Getting Started Guide came in at around
50 something DITA topics, I am looking at about 325
DITA topics for the Reference Manual, which I expect
to be the largest of the entire doc set.

[doc] Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
I wasn't clear what the bat files were doing with the command 'saxon'.  
This is due to the command being instant saxon, which is a stripped down 
version of saxon (only in terms of samples, source, documentation ).  So 
saxon.exe is the xslt processor according to the web site.

I didn't have time last week to follow what 'saxon.exe' was; so got the 
bat files modified, but got lost on the saxon command.

You were saying that the pdf file output was rather bad.  I wasn't 
certain if this was due to missing items that need to be in the final 
document, or if it was something else?  I have been a bit busy getting 
some information needed in some different areas so I could be a bit more 
fluent in this area.

scott

Jeff Levitt wrote:

>--- scott hutinger <s-...@wiu.edu> wrote:
>  
>
>>So at this point, I think we should do a manual
>>transforms -> html and 
>>see what the problems are.  Jeff has found the
>>parent child problem, 
>>which is what forrest uses by default to create the
>>website.  I'm 
>>certain he has found others.  Then focus on the pdf
>>files.  I think Jeff 
>>has already done that.  I'm looking at the dita-dtd
>>stuff currently.  
>>Jeff, were you using the XSLT Scripts referenced in
>>the dita 
>>XSL-README.txt?  Also, we might want to see if any
>>more information on 
>>the subject is publicly available.
>>
>>A good case study that might get someone up a bit
>>faster with a bit of 
>>good background information might be:
>>
>>http://xml.coverpages.org/DITA-LeslieSIGDOC2001.pdf
>>"Transforming Documentation from the XML Doctypes
>>used for the Apache 
>>Website to DITA: a Case Study" by Donald M Leslie.
>>
>>I am sure a bunch more exist, as when I was looking
>>around I found a lot 
>>of use and papers on the subject.
>>scott
>>
>>    
>>
>
>Cool link Scott!  It looks like they had the same
>problems with the PDF using FOP that I did.  It just
>doesnt look very professional.  Thats why I think we
>need someone who is saavy with XSL to fiddle with our
>transformations to fix that up, if possible.
>
>Yes, I used the XSLT scripts that came with the dita
>download.  Specifically, I have toyed with using
>map2EclipseAll.xsl for the xhtml transform (great for
>creating xhtml output that gets used in a potential
>Eclipse information center), and map2WebHTMLTOC.xsl to
>create a nice html table of contents that links to the
>xhtml files.  For the PDF, I use topicmerge.xsl to
>create one file, dita2fo_shell.xsl to create a .fo, 
>and then FOP for a .ps file, and then distill the .ps
>output with Acrobat.  Lots of problems with this
>process, as I'll mention later in this note...
>
>I think dita2fo_shell.xsl was recommended in that
>XSL-README.txt file, but the others I used based on my
>own experimentation.  If you do go the eclipse
>infocenter route, you need to do more than just create
>the xhtml files.  You also need an XML nav tree file,
>the html one wont work in Eclipse.  So in that case, I
>think I just used map2EclipseTOC.xsl to create the xml
>file.
>
>I created some batch files for Windows (Linux users,
>any volunteers for creating similar Linux
>versions?)that you can use to rapidly create these
>outputs. They are for use with saxon.  I'm attaching
>them to this note.  To use these, place them in your
>saxon install directory, and place the getting started
>guide dita files in a directory called
>"gettingstartedguide".  Also, place the dita package
>files in the saxon hierarchy.  For example, place the
>xsl files from the dita package in an xsl directory
>right there in the saxon install directory.  Then just
>run the batch files from the command line.  Here's a
>description of each batch file:
>
>ditahtml.bat
>This one creates xhtml, and also an html table of
>contents file called getstartmap.htm that you can use
>to navigate the xhtml files.  The batch file creates a
>temporary file during the transform process that
>basically removes a part of one of the xsl files that
>was causing some formatting problems in some of the
>reference topics.
>
>ditaeclipse.bat
>This one creates the same xhtml files as the last one,
>but it then creates an xml table of contents, instead
>of the html one.  This is ideal for creating an entire
>set for use with an Eclipse infocenter.
>
>I wanted to create a batch file for the PDF transform,
>but for some reason, I'm having problems with the
>topicmerge.xsl file in my batch files.  This is a
>necessary step in order to create one PDF file for the
>entire book instead of many.  The problems with the
>topicmerge.xsl file also prevent me from making a
>batch file to create one large html file for the
>entire book.  The problem seems to be that the result
>of the topicmerge transform is a dita file that looks
>invalid.  If someone wants to play around with this,
>if you are more successful than me then please post
>any solutions you find!  I'm going to continue to play
>with it and see if I can get a working transform.
>
>Finally, Scott mentioned errors in the html output. 
>The first one, as he mentioned, is the missing
>parent-child links problem.  The only other problem
>I've found is that any links to other topics have
>trouble pulling the names out of the conrefs file.  So
>for example, if there is a topic that is called
>"Welcome to Derby", it pulls the word "Derby" from the
>gsconrefs.dita file perfectly, but if another topic
>tries to link to that topic, the link says "Welcome to
>" with the word Derby missing.
>
>
>
>  
>
>------------------------------------------------------------------------
>
>@echo off
>
>
>echo writing temporary file..
>if exist TEMPyfsd89.XSL del TEMPyfsd89.XSL
>echo ^<?xml version="1.0" encoding="UTF-8" ?^> >>TEMPyfsd89.XSL
>echo ^<xsl:stylesheet version="1.0" >>TEMPyfsd89.XSL
>echo                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"^> >>TEMPyfsd89.XSL
>echo ^<xsl:import href="xsl/map2EclipseAll.xsl" /^> >>TEMPyfsd89.XSL
>echo ^<xsl:template name="gen-sect-ptoc"^> >>TEMPyfsd89.XSL
>echo   ^<!-- no ptoc necessary --^> >>TEMPyfsd89.XSL
>echo ^</xsl:template^> >>TEMPyfsd89.XSL
>echo ^</xsl:stylesheet^> >>TEMPyfsd89.XSL
>
>echo running XSLT..
>saxon -o getstartmap.htm -w1 "gettingstartedguide/getstartderby.ditamap" TEMPyfsd89.XSL SRCEXT=dita
>echo running XSLT2..
>saxon -o getstartmap.xml -w1 "gettingstartedguide/getstartderby.ditamap" "xsl/map2EclipseTOC.xsl"
>
>echo cleaning up..
>del TEMPyfsd89.XSL
>
>echo done.
>
>  
>
>------------------------------------------------------------------------
>
>@echo off
>
>
>echo writing temporary file..
>if exist TEMPyfsd89.XSL del TEMPyfsd89.XSL
>echo ^<?xml version="1.0" encoding="UTF-8" ?^> >>TEMPyfsd89.XSL
>echo ^<xsl:stylesheet version="1.0" >>TEMPyfsd89.XSL
>echo                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"^> >>TEMPyfsd89.XSL
>echo ^<xsl:import href="xsl/map2EclipseAll.xsl" /^> >>TEMPyfsd89.XSL
>echo ^<xsl:template name="gen-sect-ptoc"^> >>TEMPyfsd89.XSL
>echo   ^<!-- no ptoc necessary --^> >>TEMPyfsd89.XSL
>echo ^</xsl:template^> >>TEMPyfsd89.XSL
>echo ^</xsl:stylesheet^> >>TEMPyfsd89.XSL
>
>echo running XSLT..
>saxon -o getstartmap.htm -w1 "gettingstartedguide/getstartderby.ditamap" TEMPyfsd89.XSL SRCEXT=dita
>echo running XSLT2..
>saxon -o getstartmap.htm -w1 "gettingstartedguide/getstartderby.ditamap" "xsl/map2WebHTMLTOC.xsl"
>
>echo cleaning up..
>del TEMPyfsd89.XSL
>
>echo done.
>
>  
>


Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.
--- scott hutinger <s-...@wiu.edu> wrote:
> So at this point, I think we should do a manual
> transforms -> html and 
> see what the problems are.  Jeff has found the
> parent child problem, 
> which is what forrest uses by default to create the
> website.  I'm 
> certain he has found others.  Then focus on the pdf
> files.  I think Jeff 
> has already done that.  I'm looking at the dita-dtd
> stuff currently.  
> Jeff, were you using the XSLT Scripts referenced in
> the dita 
> XSL-README.txt?  Also, we might want to see if any
> more information on 
> the subject is publicly available.
> 
> A good case study that might get someone up a bit
> faster with a bit of 
> good background information might be:
> 
> http://xml.coverpages.org/DITA-LeslieSIGDOC2001.pdf
> "Transforming Documentation from the XML Doctypes
> used for the Apache 
> Website to DITA: a Case Study" by Donald M Leslie.
> 
> I am sure a bunch more exist, as when I was looking
> around I found a lot 
> of use and papers on the subject.
> scott
> 

Cool link Scott!  It looks like they had the same
problems with the PDF using FOP that I did.  It just
doesnt look very professional.  Thats why I think we
need someone who is saavy with XSL to fiddle with our
transformations to fix that up, if possible.

Yes, I used the XSLT scripts that came with the dita
download.  Specifically, I have toyed with using
map2EclipseAll.xsl for the xhtml transform (great for
creating xhtml output that gets used in a potential
Eclipse information center), and map2WebHTMLTOC.xsl to
create a nice html table of contents that links to the
xhtml files.  For the PDF, I use topicmerge.xsl to
create one file, dita2fo_shell.xsl to create a .fo, 
and then FOP for a .ps file, and then distill the .ps
output with Acrobat.  Lots of problems with this
process, as I'll mention later in this note...

I think dita2fo_shell.xsl was recommended in that
XSL-README.txt file, but the others I used based on my
own experimentation.  If you do go the eclipse
infocenter route, you need to do more than just create
the xhtml files.  You also need an XML nav tree file,
the html one wont work in Eclipse.  So in that case, I
think I just used map2EclipseTOC.xsl to create the xml
file.

I created some batch files for Windows (Linux users,
any volunteers for creating similar Linux
versions?)that you can use to rapidly create these
outputs. They are for use with saxon.  I'm attaching
them to this note.  To use these, place them in your
saxon install directory, and place the getting started
guide dita files in a directory called
"gettingstartedguide".  Also, place the dita package
files in the saxon hierarchy.  For example, place the
xsl files from the dita package in an xsl directory
right there in the saxon install directory.  Then just
run the batch files from the command line.  Here's a
description of each batch file:

ditahtml.bat
This one creates xhtml, and also an html table of
contents file called getstartmap.htm that you can use
to navigate the xhtml files.  The batch file creates a
temporary file during the transform process that
basically removes a part of one of the xsl files that
was causing some formatting problems in some of the
reference topics.

ditaeclipse.bat
This one creates the same xhtml files as the last one,
but it then creates an xml table of contents, instead
of the html one.  This is ideal for creating an entire
set for use with an Eclipse infocenter.

I wanted to create a batch file for the PDF transform,
but for some reason, I'm having problems with the
topicmerge.xsl file in my batch files.  This is a
necessary step in order to create one PDF file for the
entire book instead of many.  The problems with the
topicmerge.xsl file also prevent me from making a
batch file to create one large html file for the
entire book.  The problem seems to be that the result
of the topicmerge transform is a dita file that looks
invalid.  If someone wants to play around with this,
if you are more successful than me then please post
any solutions you find!  I'm going to continue to play
with it and see if I can get a working transform.

Finally, Scott mentioned errors in the html output. 
The first one, as he mentioned, is the missing
parent-child links problem.  The only other problem
I've found is that any links to other topics have
trouble pulling the names out of the conrefs file.  So
for example, if there is a topic that is called
"Welcome to Derby", it pulls the word "Derby" from the
gsconrefs.dita file perfectly, but if another topic
tries to link to that topic, the link says "Welcome to
" with the word Derby missing.




Re: Derby documentation in XML DITA

Posted by scott hutinger <s-...@wiu.edu>.
Susan Cline wrote:

> Jeff Levitt wrote:
>
>> Ok, so I checked the dita zip and saw that there is a
>> license, but it seems to allow distribution.  So I am
>> going to create a zip of all the dtd's (as well as the
>> css files, if anyone wants to use them as well), and I
>> am just going to include that license file in the zip
>> as well.  I'll send the zip to Jean to post.  Let's
>> keep the getting started dita files in a separate zip,
>> so when we have all 6 books in dita, you will only
>> need to download the dtd's once.
>>
>>
>> --- Susan Cline <sl...@MeepZor.Com> wrote:
>>
>>> Either way is okay though as long as folks know they
>>> need the dtd files
>>> and how to get them.
>>>
>>> Thanks,
>>>
>>> Susan
>>
>
> That sounds like a good plan, thanks.
>
> Susan
>

So at this point, I think we should do a manual transforms -> html and 
see what the problems are.  Jeff has found the parent child problem, 
which is what forrest uses by default to create the website.  I'm 
certain he has found others.  Then focus on the pdf files.  I think Jeff 
has already done that.  I'm looking at the dita-dtd stuff currently.  
Jeff, were you using the XSLT Scripts referenced in the dita 
XSL-README.txt?  Also, we might want to see if any more information on 
the subject is publicly available.

A good case study that might get someone up a bit faster with a bit of 
good background information might be:

http://xml.coverpages.org/DITA-LeslieSIGDOC2001.pdf
"Transforming Documentation from the XML Doctypes used for the Apache 
Website to DITA: a Case Study" by Donald M Leslie.

I am sure a bunch more exist, as when I was looking around I found a lot 
of use and papers on the subject.
scott

Re: Derby documentation in XML DITA

Posted by Susan Cline <sl...@MeepZor.Com>.
Jeff Levitt wrote:

> Ok, so I checked the dita zip and saw that there is a
> license, but it seems to allow distribution.  So I am
> going to create a zip of all the dtd's (as well as the
> css files, if anyone wants to use them as well), and I
> am just going to include that license file in the zip
> as well.  I'll send the zip to Jean to post.  Let's
> keep the getting started dita files in a separate zip,
> so when we have all 6 books in dita, you will only
> need to download the dtd's once.
> 
> 
> --- Susan Cline <sl...@MeepZor.Com> wrote:
>>Either way is okay though as long as folks know they
>>need the dtd files
>>and how to get them.
>>
>>Thanks,
>>
>>Susan

That sounds like a good plan, thanks.

Susan

Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.
Ok, so I checked the dita zip and saw that there is a
license, but it seems to allow distribution.  So I am
going to create a zip of all the dtd's (as well as the
css files, if anyone wants to use them as well), and I
am just going to include that license file in the zip
as well.  I'll send the zip to Jean to post.  Let's
keep the getting started dita files in a separate zip,
so when we have all 6 books in dita, you will only
need to download the dtd's once.


--- Susan Cline <sl...@MeepZor.Com> wrote:

> Jean T. Anderson wrote:
> 
> > Jeff Levitt wrote:
> > 
> > 
> >>The dtd files are part of the dita package
> announced
> >>and linked here:
> >>
>
>>http://xml.coverpages.org/dita.html#dita131Announce
> >>
> >>or the more complete download site on
> developerWorks
> >>here:
> >>
>
>>http://www-128.ibm.com/developerworks/xml/library/x-dita6/x-dita_downloads.html
> >>
> >>I recommend dita131 or dita132.
> >>
> >>I didnt include the dtd's in these packages with
> the
> >>Getting Started dita zip files.  Do you think we
> >>should include them, or tell users downloading the
> >>getting started zip to get them from these
> downloads?
> >> 
> >>
> > 
> > I'll add the URLs you noted above to the DITA
> section in
> >
> http://incubator.apache.org/derby/manuals/index.html
> .
> > 
> >  -jean
> > 
> > 
> Jeff,
> 
> Even though Jean is adding the reference to the
> site, it might be nice 
> to include it in the zip file in the future.  I
> downloaded the 
> dita131.zip file and it's quite a wad.  The actual
> number of dtd files
> is very small compared to everything else you get
> with the zip.
> 
> Either way is okay though as long as folks know they
> need the dtd files
> and how to get them.
> 
> Thanks,
> 
> Susan
> 
> 
> 


Re: Derby documentation in XML DITA

Posted by Susan Cline <sl...@MeepZor.Com>.
Jean T. Anderson wrote:

> Jeff Levitt wrote:
> 
> 
>>The dtd files are part of the dita package announced
>>and linked here:
>>
>>http://xml.coverpages.org/dita.html#dita131Announce
>>
>>or the more complete download site on developerWorks
>>here:
>>
>>http://www-128.ibm.com/developerworks/xml/library/x-dita6/x-dita_downloads.html
>>
>>I recommend dita131 or dita132.
>>
>>I didnt include the dtd's in these packages with the
>>Getting Started dita zip files.  Do you think we
>>should include them, or tell users downloading the
>>getting started zip to get them from these downloads?
>> 
>>
> 
> I'll add the URLs you noted above to the DITA section in
> http://incubator.apache.org/derby/manuals/index.html .
> 
>  -jean
> 
> 
Jeff,

Even though Jean is adding the reference to the site, it might be nice 
to include it in the zip file in the future.  I downloaded the 
dita131.zip file and it's quite a wad.  The actual number of dtd files
is very small compared to everything else you get with the zip.

Either way is okay though as long as folks know they need the dtd files
and how to get them.

Thanks,

Susan

Re: Derby documentation in XML DITA

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jeff Levitt wrote:

>The dtd files are part of the dita package announced
>and linked here:
>
>http://xml.coverpages.org/dita.html#dita131Announce
>
>or the more complete download site on developerWorks
>here:
>
>http://www-128.ibm.com/developerworks/xml/library/x-dita6/x-dita_downloads.html
>
>I recommend dita131 or dita132.
>
>I didnt include the dtd's in these packages with the
>Getting Started dita zip files.  Do you think we
>should include them, or tell users downloading the
>getting started zip to get them from these downloads?
>  
>
I'll add the URLs you noted above to the DITA section in
http://incubator.apache.org/derby/manuals/index.html .

 -jean



Re: Derby documentation in XML DITA

Posted by Jeff Levitt <jl...@mutagen.net>.
Hi Susan,

The dtd files are part of the dita package announced
and linked here:

http://xml.coverpages.org/dita.html#dita131Announce

or the more complete download site on developerWorks
here:

http://www-128.ibm.com/developerworks/xml/library/x-dita6/x-dita_downloads.html

I recommend dita131 or dita132.

I didnt include the dtd's in these packages with the
Getting Started dita zip files.  Do you think we
should include them, or tell users downloading the
getting started zip to get them from these downloads?


--- Susan Cline <sl...@MeepZor.Com> wrote:

> Jeff Levitt wrote:
> > I've seen some posts (Thanks Rick) regarding my
> idea
> > to move the Derby documentation to DITA, and I
> wanted
> > to provide you all with an update on the
> progress...
> > 
> > As we discussed previously on this list, I
> proposed to
> > migrate the Derby documentation to XML DITA to
> help
> > make the output more flexible than html.  In
> testing
> > DITA, I started with the Getting Started guide
> since
> > it was the smallest, and I used it to refine the
> > process and explore the output options.  The files
> for
> > the Getting Started Guide are now in DITA in the
> > attached zip file (update: The derby-dev list wont
> let
> > me attach the zip so I will send to Jean so she
> can
> > make it available for download).  To create output
> > from the DITA files, you need to use the ditamap
> file
> > included in the zip. 
> > This file sets the order and hierarchy of all of
> the
> > DITA files, and basically organizes the separate
> DITA
> > "topics" into a book.  
> > 
> > I also created a "conrefs" file (gsconrefs.dita)
> that
> > is not a topic that is included in the actual
> book,
> > but instead simply includes terms and names that
> can
> > change from time to time or are used repetitively.
> 
> > For example, the name of the product is "Derby,"
> and I
> > placed that in the gsconrefs.dita file.  The rest
> of
> > the files don't actually use the word Derby when
> it is
> > needed; instead they point to the conrefs file. 
> That
> > way, if the name were to change for any reason, we
> > don't have to change it in 8 million places, we
> just
> > change it once in the conref file and it changes
> > everywhere.
> > 
> > As for creating html, xml, or pdf output, I have
> been
> > experimenting with Saxon and FOP.  I am going to
> try
> > Apache's Cocoon as well (and could really use a
> hand
> > from anyone who has time or inclination since
> Cocoon
> > is new to me).  So far, I have been able to use
> > Saxon's stylesheets to create individual html
> files as
> > well as one complete html file for the whole book.
>  I
> > have had some issues with linking between parent
> and
> > child topics, however, so if anyone is good with
> > XSL/XSLT, it might be a good idea to work together
> to
> > create some Derby-specific XSL stylesheets for our
> > purposes. 
> > 
> > As for PDF, I have also successfully used Saxon to
> > create a .fo file that can be transformed with
> Apache
> > FOP to create a PDF.  The PDF is complete, but has
> > formatting and linking problems.  Once again, if
> > anyone can help out here with the XSLT, I could
> use
> > it!
> > 
> > As for the rest of the documentation, I am already
> > almost finished with the Reference Manual.  The
> ref
> > manual is one of the larger books in the Derby
> > library, yet it took me much less time to convert
> to
> > DITA than the Getting Started Guide, since I spent
> so
> > much time refining the process on the first book.
> > 
> > Please post any comments on the DITA approach I
> used
> > for the Getting Started guide. And again if you
> have
> > any expertise with XSLT, I would appreciate the
> help!
> > 
> 
> Hi Jeff,
> 
> I just downloaded the Getting Started Guide in DITA
> format
> from the Derby web site.  I think the zip file is
> missing
> a whole directory called 'dtd' which contains the
> *.dtd
> files for the individual files.
> 
> When you attempt to view the XML through a browser
> the
> following appears:
> 
> <!DOCTYPE reference PUBLIC "-//IBM//DTD DITA
> Reference//EN" 
> "..\dtd\reference.dtd">
> 
> Can you provide a new zip file that contains the dtd
> dirctory?
> 
> If I missed something, please let me know!
> 
> Thanks,
> 
> Susan
> 
> 
> 


Re: Derby documentation in XML DITA

Posted by Susan Cline <sl...@MeepZor.Com>.
Jeff Levitt wrote:
> I've seen some posts (Thanks Rick) regarding my idea
> to move the Derby documentation to DITA, and I wanted
> to provide you all with an update on the progress...
> 
> As we discussed previously on this list, I proposed to
> migrate the Derby documentation to XML DITA to help
> make the output more flexible than html.  In testing
> DITA, I started with the Getting Started guide since
> it was the smallest, and I used it to refine the
> process and explore the output options.  The files for
> the Getting Started Guide are now in DITA in the
> attached zip file (update: The derby-dev list wont let
> me attach the zip so I will send to Jean so she can
> make it available for download).  To create output
> from the DITA files, you need to use the ditamap file
> included in the zip. 
> This file sets the order and hierarchy of all of the
> DITA files, and basically organizes the separate DITA
> "topics" into a book.  
> 
> I also created a "conrefs" file (gsconrefs.dita) that
> is not a topic that is included in the actual book,
> but instead simply includes terms and names that can
> change from time to time or are used repetitively. 
> For example, the name of the product is "Derby," and I
> placed that in the gsconrefs.dita file.  The rest of
> the files don't actually use the word Derby when it is
> needed; instead they point to the conrefs file.  That
> way, if the name were to change for any reason, we
> don't have to change it in 8 million places, we just
> change it once in the conref file and it changes
> everywhere.
> 
> As for creating html, xml, or pdf output, I have been
> experimenting with Saxon and FOP.  I am going to try
> Apache's Cocoon as well (and could really use a hand
> from anyone who has time or inclination since Cocoon
> is new to me).  So far, I have been able to use
> Saxon's stylesheets to create individual html files as
> well as one complete html file for the whole book.  I
> have had some issues with linking between parent and
> child topics, however, so if anyone is good with
> XSL/XSLT, it might be a good idea to work together to
> create some Derby-specific XSL stylesheets for our
> purposes. 
> 
> As for PDF, I have also successfully used Saxon to
> create a .fo file that can be transformed with Apache
> FOP to create a PDF.  The PDF is complete, but has
> formatting and linking problems.  Once again, if
> anyone can help out here with the XSLT, I could use
> it!
> 
> As for the rest of the documentation, I am already
> almost finished with the Reference Manual.  The ref
> manual is one of the larger books in the Derby
> library, yet it took me much less time to convert to
> DITA than the Getting Started Guide, since I spent so
> much time refining the process on the first book.
> 
> Please post any comments on the DITA approach I used
> for the Getting Started guide. And again if you have
> any expertise with XSLT, I would appreciate the help!
> 

Hi Jeff,

I just downloaded the Getting Started Guide in DITA format
from the Derby web site.  I think the zip file is missing
a whole directory called 'dtd' which contains the *.dtd
files for the individual files.

When you attempt to view the XML through a browser the
following appears:

<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN" 
"..\dtd\reference.dtd">

Can you provide a new zip file that contains the dtd dirctory?

If I missed something, please let me know!

Thanks,

Susan


Re: Derby documentation in XML DITA

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jeff Levitt wrote:

>...
>The files for
>the Getting Started Guide are now in DITA in the
>attached zip file (update: The derby-dev list wont let
>me attach the zip so I will send to Jean so she can
>make it available for download).
>
...

It's a mystery to me why some attachments are accepted and other
rejected. Anyhow, the getstartfiles.zip is available for download now from:

http://incubator.apache.org/derby/manuals

If anyone can't handle zip, let me know and I'll do up a tar.gz.

 -jean