http://blog.eisele.net/2011/10/heroes-of-java-cay-horstmann.html
Actually, what I find annoying for DocBook is editing. I'm using XmlEditor
from XmlMind (http://www.xmlmind.com/xmleditor/) which explicitly supports
DocBook XML, but it's not the most agile editing I've experienced so far.
Until a few weeks ago I was not satisfied with HTML editors as well, so it
made little difference. But now I've found Bluegriffon and I work wery
well with it. That's why I'm evaluating whether moving definitely to HTML5
is a good idea. More in detail, as I'm moving all my sites to a compact
CMS I've written, the idea for publishing DocBook stuff was to integrate
into my CMS the XSLT transformation from DocBook XML to HTML. The HTML5
approach could make this integration unneeded.
And, BTW, I'm a bit confused about the relationship between HTML5 and
XHTML5, and whether the latter will be really adopted or not.
Thanks for any suggestion.
--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
fabrizio...@tidalwave.it
http://tidalwave.it - http://fabriziogiudici.it
And, BTW, I'm a bit confused about the relationship between HTML5 and XHTML5, and whether the latter will be really adopted or not.
Good points, but it depends on the context. For instance, for my sites I
do some postprocessing on (X)HTML files (e.g. with XSLT) and XML can be
manipulated in a better way (e.g. you don't need JTidy). On the other
side, the idea of integrating elements from other namespaces is good, but
it fails if you want to use a WYSIWYG editor. In my experience, most HTML
editors won't properly manage extra-HTML elements in an efficient visual
way. What I'm trying is a different approach, that is to stay with the
XHTML scheme and using divs with special classes. For instance, I have the
problem of representing photos in a compact way such as:
<myns:photo>
<id>20050817-0092</id>
<caption>The lower Albegna valley and Isola del Giglio on the
horizon.</caption>
</myns:photo>
The idea is that this compact information can be converted in something
more complex, including JQuery support for pop ups, slideshows, etc...
when rendered in a browser. This approach for me failed for visual
editing. What seems to work better is to use <div>s with classes having a
semantic meaning:
<div class="nwXsltMacro_Photo">
<p class="nwXsltMacro_Photo_photoId">20050817-0092</p>
<p class="nwXsltMacro_Photo_caption">The lower Albegna
valley and Isola del Giglio on the horizon.</p>
</div>
Those classes don't match a CSS, but are used for a XSLT transformation.
Actually, with XHTML5 I could do the same thing staying in HTML:
<figure>
<legend>The lower Albegna valley and Isola del Giglio on the
horizon.</legend>
<img src="20050817-0092" alt="" />
</figure>
which seems to be supported by editors such as Bluegriffon, unfortunately
that 20050817-0092 is not a full image path, just an id that is later
manipulated. With the 2nd approach I can see it while editing because it's
a <p>, <img> in this case is rendered as blank.
> Have you considered LaTeX? I haven't used DocBook so I don't know how
> that compares.
I did LaTeX in my youth. Now I'm too old :-)
DocBook is good for "real" books where you want to/have to produce a
PDF, thanks to the DocBook-XSL stylesheet package. How do you produce
PDF from HTML5 source?
Hi Alex
On Saturday, February 4, 2012 1:08:41 AM UTC, Alex Buckley wrote:DocBook is good for "real" books where you want to/have to produce a
PDF, thanks to the DocBook-XSL stylesheet package. How do you produce
PDF from HTML5 source?
I have been experimenting with using DocBook / DITA and XML-safe HTML5 and my requirements are:
- Produce PDF output with both clickable TOC pages with outline/bookmarks- Produce vanilla HTML5 output files that can be assembled by some very basic PHP scripts- Produce JSON TOC that can be used by the very basic PHP scripts for context sensitive sidebar
--
You received this message because you are subscribed to the Google Groups "Java Posse" group.To post to this group, send email to java...@googlegroups.com.
To unsubscribe from this group, send email to javaposse+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
> To unsubscribe from this group, send email to javaposse+...@googlegroups.com.