Re: [docbook-apps] XSLT Highlighter: Cannot read xslthl-config.xml, no custom highlighters will be available.

2010-02-24 Thread Jirka Kosek
Mathieu Malaterre wrote:

 Silly me. The proper solution was simply:
 
 xsl:param 
 name=highlight.xslthl.configfile:home/mathieu/Software/xslthl/highlighters/xslthl-config.xml/xsl:param

I have updated reference page for parameter to suggest using URL instead
of local path.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: [docbook] DocBook and Google Summer of Code ?

2010-01-28 Thread Jirka Kosek
Skopik Pavel wrote:

 the application you mention already exists - see 
 http://sourceforge.net/projects/db-xsl-cfg/. But it does not cover all 
 aspects described bellow.

There is also:

http://sourceforge.net/projects/docbook/files/fo-editor/

-- 
--
  Jirka Kosek e-mail: ji...@kosek.cz http://www.kosek.cz
--
  Profesionální školení a poradenství v oblasti technologií XML.
   Podrobný přehled školení http://xmlguru.cz/skoleni/
--
   Nejbližší termíny školení
  *** XML pro vývojáře 16.-18.2. ** XML schémata 30.3.-1.4. ***
   *** XSLT 19.-22.4. ** XSL-FO 18.-19.5. ** XSLT 2.0 9.6. ***
  *** Office Open XML 10.6. ***
--
  http://docbook.czStránky o dokumentačním formátu DocBook
  http://xmlguru.czBlog mostly about XML for English readers
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] improve DocBook's HTML output

2009-11-30 Thread Jirka Kosek
Chris Maloney wrote:
 Well, if that's the goal, then I'd like to add another option for
 consideration: maybe called 'generate.header.css', or something, that would
 cause the generated css to appear in the HTML header rather than in a
 separate file.

Why do you think that this has advantage over separate CSS file,
especially for chunked output?

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] improve DocBook's HTML output

2009-11-29 Thread Jirka Kosek
Chris Maloney wrote:

 2.  A new param named 'generate.css', which when set to 1
 
 Why would this be necessary?  Presumably one, or possibly a set of static
 CSS files could be supplied that provide all the basic styling based on
 classes used in the generated output.  Or, are you suggesting that the XSL
 generate a per-output CSS with just the subset of the master CSS styles?

Generating CSS file on the fly simplifies deployment -- user doesn't
have to copy CSS into target directory. This is easy, but for newcomers
it is much more handy if there are no additional steps required to
generate working output.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Can I make XSL template for i18n

2009-11-22 Thread Jirka Kosek
Akihiro Moriguchi wrote:


 I think it means I need a template for the its namespace, but I'm
 quite not for sure because of my lack of DocBook XML and XSL knowledge.
 
 I'm now reading DocBook XSL: The Complete Guide.
 Is it possible to write the template for the feature or need further
 reference?

Yes, you must add custom templates for handling your Ruby markup into
your customization layer, something like:

xsl:template match=its:ruby xmlns:its=http://www.w3.org/2005/11/its;
  ... code for handling ruby markup ...
/xsl:template

Probably you will have to map Ruby markup to layout tables as support
for Ruby in web browsers and FO engines is very poor.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Building UTF-8 pdfs.

2009-11-16 Thread Jirka Kosek
Chris Jones wrote:
 I created a bare-bones DocBook xml file that contains:

This problem is too TeX spefic -- probably you can expect more help on
specialized XeTeX and TeX lists.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Adding a DateTime stamp to a PDF titlepage

2009-09-24 Thread Jirka Kosek
Laurie Burley wrote:

 We have been asked to include a date and time stamp on each pdf title page in 
 addition to the graphic file.

Just add something like

pubdate?dbtimestamp?/pubdate inside your info element and then
make sure that titlepage customization place this info in the right place.

See
http://docbook.sourceforge.net/release/xsl/current/doc/pi/dbtimestamp.html

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Troubles using Sun's internal Xerces and Xalan Parsers

2009-09-11 Thread Jirka Kosek
Marco Soldati wrote:

 In order to reduce the amount of external dependencies in one of my
 projects I'd like to replace xercesImpl.jar, xalan.jar and related
 dependencies by using the internal tools of Java 1.6 (Sun).

Sun JDK since version 1.5 uses XSLTC as XSLT processor. This compiler is
not able to cope with complex transformations like DocBook one. So you
should stick with Saxon (or alternatively normal Xalan) as your XSLT
processor of choice.

There are also some quirks in Xerces bundled in JDK, but I'm not sure
whether this affects your scenario.

Anyway if you use Java toolchain for processing DocBook the best is to
use Apache Xerces parser and Saxon XSLT processor.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] xml catalogs

2009-08-10 Thread Jirka Kosek
Dave Pawson wrote:

 IF that statement is still true,
 that explains why it isn't working.

But you should still be able to use systemSuffix in this case?

http://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html#s.suffix

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Graphs in docbook?

2009-07-22 Thread Jirka Kosek
DeanNelson wrote:

 I wonder if this could be translated into SVG

http://code.google.com/p/graph2svg/

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Graphs in docbook?

2009-07-22 Thread Jirka Kosek
Dave Pawson wrote:

 grin/ Jiri isn't it Jirka?

Yes. Jiří is official form, but I tend to use more informal Jirka
which doesn't use those funny characters. It was problem to transmit
those characters 15 years ego.

 Lots of examples, various types of graphs
 Just that we need Jirka and friends to translate the
 documentation into English!

Sorry, it is bachelor thesis of my former student. Try to look at
samples and if you have problem e-mail author of package and put me on copy.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Graphs in docbook?

2009-07-22 Thread Jirka Kosek
Dave Pawson wrote:

 Jirka, how does this idea fit with 'extending' docbook, vs incorporation
 via a namespace vs incorporating into docbook processing?

There are many possibilities, depends on your usage scenario, for example.

1) Incorporate graph2svg markup directly into DocBook

2) Keep graph2svg markup in separate files, turn them into SVG by
external process and then include them as figures on DocBook level

3) Do some more advanced things, like have a DocBook table with special
role assigned and then tweak stylesheets to generate graph2svg markup
from DocBook table, then use graph2svg stylesheet to get SVG from this
and include this resulting SVG into FO/XHTML generated by DocBook
stylesheets, everything in single transformation

But be careful when integrating graph2svg into DocBook stylesheets.
Library requires XSLT 2.0, so you have to use Saxon9 and some things are
still not working in Saxon9 (for example chunking, but there is partial
patch for this scheduled for 1.76.0 sitting on my filesystem).

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Graphs in docbook?

2009-07-22 Thread Jirka Kosek
Dave Pawson wrote:

 btw Jirka, the namespace isn't declared in the DTD,
 on the root element?

That's bug. graph2svg was added into namespace in the last stage and
Jakub probably forgot to update DTDs. But you don't need to reference
DTDs from your graph2svg files.

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] How to enable (for example) Greek character entities in db5?

2009-05-27 Thread Jirka Kosek
Johan Persson wrote:

 Can someone shine some light on the errors of my way here ?

Sure, see

http://www.docbook.org/docs/howto/#faq-authoring-general-entities

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] Re: [docbook] Running DocBook XSLT stylesheets with Windows MSXML XSLT?

2009-05-21 Thread Jirka Kosek
[Moving to docbook-apps ...]

DuCharme, Bob wrote:

   msxml3.dll: Reference to variable or parameter 'l10n.xml' must
 evaluate to a node list.

You might try newer MSXML version, ideally 6.0. MSXML 3.0 has known
conformance problems and also it is not very performant for some more
complex XPath expressions. But no promise, I actually never tried to run
DocBook XSL stylesheets against MSXML 6.0.

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] DocBook Customization

2009-05-20 Thread Jirka Kosek
Jeff Hooker wrote:

 Talk about complex transforms: I've been using DITA recently, and the OT 
 stylesheets look pretty intimidating to me - and no 'DITA XSL The 
 Complete Guide' to help sort them out!

In one project customer for no valid reason insisted on DITA, but wanted
several high quality outputs. The easiest way to tackle it was to create
DocBook content from DITA and then use DocBook stylesheets to generate
various output formats. But this was 3 years ago, might be that DITA-OT
is more mature now.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] xslthl support in XSL 1.75.0 ?

2009-05-16 Thread Jirka Kosek
Ian Moor wrote:
 Do DocBook XSL and XSL-NS 1.75.0 support version 2 of xslthl ?

Yes,

however in order to overcome some compatibility problem between
different XSLT processors is now necessary to import additional file
into your customization layer if you want to use this feature. See
README file in highlighting directory:

To use the syntax higlighting extension with DocBook-XSL 1.74.3+, you must:
1. Use a processor that works with the extension: Saxon 6 or Xalan-J.
2. Add the latest version of xslthl-2.X.X.jar to your classpath.
3. Set the highlight.source parameter to 1.
4. Import into your customization one of the following stylesheet module:
  * html/highlight.xsl
  * xhtml/highlight.xsl
  * xhtml-1_1/highlight.xsl
  * fo/highlight.xsl
5. Use that customiztion layer.


Note: Saxon 8.5 or later is also supported, but since it is an XSLT 2.0
processor it is not guaranteed to work with DocBook-XSL in all
circumstances.


-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] xlstproc questions (was: CSS begging)

2009-05-16 Thread Jirka Kosek
Karen Schneider wrote:

 C:\XMLTOOLSxsltproc --stringparam base.dir c:\XMLTOOLS\test7-
 --stringparam html.stylesheet boetest.css
 c:\xmltools\docbook-xsl\xhtml\chunk.xsl
 h:\docsrepo\TechRef\JSONGrammar.xml

base.dir must have trailing slash (or backslash)

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] XEP support hyphenate.verbatim?

2009-04-08 Thread Jirka Kosek
Dennison, Cheri wrote:
 Does anyone know if XEP supports the hyphenate.verbatim feature described in 
 Bob's book here:
 http://www.sagehill.net/docbookxsl/FittingText.html#BreakLongLines

Yes, XEP supports it (actually I have been using XEP when I was
developing this functionality).

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] lost in namespaces (and invalid Atom feed)

2009-04-07 Thread Jirka Kosek
Matej Cepl wrote:

 How come
 
 div xmlns=http://www.w3.org/1999/xhtml;
 
 is undefined content element, when it is in well defined
 namespace?

I think that for XHTML content inside Atom you have to change

atom:content type=html xml:lang=en

to

atom:content type=xhtml xml:lang=en

IIRC, type=html expects escaped HTML.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Adding lang= to html

2009-03-20 Thread Jirka Kosek
honyk wrote:
 Actually, I am doing some work in this area to support lang 
 better, in 
 particular to support lang on non-root element outputs, so that mixed 
 language documents can be supported. 
 
 I look forward this nice enhancement. In my PDF output a special font-family
 must be used with different version for Latin, CE and Cyrilic charsets. At
 present I can't mix these languages in single document, what is annoying
 limitation. It wouldn't be problem with any more complete font of course
 (i.e. Arial), but this is not my case.

Does your FO processor supports
font-selection-strategy=character-by-character? With this property set
font-switching is automatic.

Jirka

-- 
--
  Jirka Kosek e-mail: ji...@kosek.cz http://www.kosek.cz
--
  Profesionální školení a poradenství v oblasti technologií XML.
   Podrobný přehled školení http://xmlguru.cz/skoleni/
--
  http://docbook.czStránky o dokumentačním formátu DocBook
  http://xmlguru.czBlog mostly about XML for English readers
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] slides: how to balance presentation and content

2009-01-21 Thread Jirka Kosek
justus-b...@piater.name wrote:

 Of course, this is a brutal departure from the XML principle of
 separation of content from presentation, but as I argued in an earlier
 posting, to me the advantages of (ab)using DocBook for presentations
 weigh far heavier than purity of principle.

Sorry for stepping-in, but to me it seems that you might try to have a
look ODF and OOXML and see how they describe presentation slides. It
seems that your requirements are so presentational and layout driven
that it simply doesn't nicely fit into DocBook principles.

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Disabling hyphenation on selected string

2009-01-21 Thread Jirka Kosek
Bob Stayton wrote:

 The 'hyphenate' property does not apply to fo:inline elements, only
 block level elements. That's what the XSL-FO 1.0 and 1.1 standards say,
 and I'm not sure why that is.

Maybe because many typesetting engines are not able to control this
property on word level, but also only on paragraph level.

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] DocBook-xsl and 'fo:character'

2009-01-16 Thread Jirka Kosek
Dongsheng Song wrote:
 Since FOP only implementes word-by-word font selection stragey,
 therefore, for Chinese xml, I have been encounter missing glyph
 many times.
 
 How can I specify use 'fo:character' for every Chinese character
 in the xsl ?

Well, you can override template for text() and use string functions to
lookup Chinese characters and wrap them in fo:character.

But I think that easier (and more performant) will be just to
postprocess resulting XSL-FO.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] I'm want to indent only 'section/para', not 'section/para/programlisting'

2009-01-06 Thread Jirka Kosek
Dongsheng Song wrote:
 RenderXp(xe) no such problem, but the output pdf files very large than fop.
 I use fop trunk 2008-12-19(r728025), xep-4.14-20081212-personal:
 
  defguide5  defguide5-zh  defguide  defguide-zh  svnbook  svnbook-zh
 fop   4563  5096  5825 6513 1985 2270
 xep  14188 14544 1214112635 3776 3874
 diff  211%  185%  108%  94%  90%  71%
 
 PS: Chinese font name at sixes and sevens in the pdf file by xep.

Are you sure that FOP is also embedding fonts inside PDF? Without such
embedding your Chinese PDFs will be unusable on systems which do not
have Chinese fonts preinstalled.

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Experiences of relative performance of different xsl engines w/ docbook xsl?

2008-12-08 Thread Jirka Kosek
Antti Karanta wrote:

   Has anyone done any performance comparisons of how different xsl
 engines perform when using docbook xsl (saxon, xalan, xsltproc etc)? Are
 there significant differences?

From those three, on more complex transformation Saxon is usually the
fastest. I think that we (as stylesheet developers) should try make
stylesheets working also under Saxon 9 in XSLT 1.0 backward compatibile
mode. This shouldn't be big efort, I think that non-chunking stylesheets
are working this way already. Saxon 9 is more performant then Saxon
6.5.5 and more and more optimiztations are added into it thanks to its
excellent developer.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Syntax Highlighting in synopsis elements

2008-11-25 Thread Jirka Kosek
Mathias Schindler wrote:

 In Bob Stayton's DocBook XSL: The Complete Guide it says that
 Highlighting works with programlisting, screen, and synopsis elements
 that have a language attribute..

But in your source there is no synopsis element, only classsynopsis etc.
 Generally syntax highlighting is working in verbatim elements. I
suppose that in classsynopsis you can quite easily add highlighting by
overriding templates for nested elements like ooclass, modifier, ...

In theory syntax highlighting could be combined with the current
classsynopsis code, but I'm not sure how well will highlighting fit into
templates for nested elements. You can file new RFE at SourceForge site,
so once developers have free time (;-)) they might try to implement this
feature.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] frutiger font in XEP

2008-11-18 Thread Jirka Kosek
Dick Hamilton wrote:

 You will find a bunch of fonts in C:\WINDOWS\Fonts. I found
 several varieties of Frutiger in that directory on my machine.
 I would suggest you start there. I don't know exactly where
 MSReader puts its fonts, but the odds are that it uses this
 directory.

Yep, MS Reader will install fonts into standard Windows fonts directory.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] frutiger font in XEP

2008-11-14 Thread Jirka Kosek
Lily Galle wrote:

 If it is the case, I will buy the “frutiger” font. Then I will add it in XEP.

Sure, XEP can be easily configured to use user provided fonts.
Microsoft Reader is bundled with Frutiger Linotype so depending on your
usage, you might use this font for free.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] gentext problem

2008-11-13 Thread Jirka Kosek
Skopik Pavel wrote:

 I want to use gentext for generating localized name strings for navigation 
 tabs in our web help. For now it applies only to index tab. 
 In my stylesheet I use this template call to generate approriate language 
 string for index. 
 xsl:if test=$generate.webhelp.index != 0
   td
 a href=# rel=tab3 id=t3
   img src=images/iview.gif/
   xsl:call-template name=gentext
 xsl:with-param name=key select='index' /
   /xsl:call-template
 /a
   /td
 /xsl:if
  
 Nevertheless I do not get string for index in Czech but rather in English. 

What is the current node for this piece of XSLT? gentext template
computes language for the current node, when there is no current node or
it is wrong you will get default language (en). You can try something
like:

xsl:call-template name=gentext
  xsl:with-param name=key select=.../
  xsl:with-param name=lang
xsl:call-template name=l10n.language
   xsl:with-param name=target select=// !-- or any other
expression which will return node which has proper language set or
inherited --
/xsl:call-template
  /xsl:with-param
/xsl:call-template


-- 
--
  Jirka Kosek e-mail: [EMAIL PROTECTED] http://www.kosek.cz
--
  Profesionální školení a poradenství v oblasti technologií XML.
   Podrobný přehled školení http://xmlguru.cz/skoleni/
--
   Nejbližší termíny školení:
   ** XSLT 16.-19.9.2008 ** XML schémata 21.-23.10. **
** XSL-FO 18.-19.11.2008 ** XML pro vývojáře 16.-18.12. **
--
  http://docbook.czStránky o dokumentačním formátu DocBook
  http://xmlguru.czBlog mostly about XML for English readers
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: Docbook with Math ML/Latex = PDF

2008-10-28 Thread Jirka Kosek
Dave Pawson wrote:

 Any suggestions for a process Jirka?
 
 Mathml to \tex, then jsMath to display? How would that integrate
 with the browser showing mshelp?
 
 Do you know of any Mathml to \tex tools? I thought they
 were alternatives!

I haven't tested it myself but there is XSLT library for converting
MathML to TeX http://sourceforge.net/projects/xsltml/
It should be possible to integrate it directly into stylesheets so by
setting one parameter MathML will be turned into TeX on output.

Integrating jsMath is very easy, you just include one script in head
of generated HTML file (you can use user.head.content template for this).

It would be nice feature to have support for jsMath and translation from
MathML to TeX in DocBook. Could you please make new RFE?

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: Docbook with Math ML/Latex = PDF

2008-10-27 Thread Jirka Kosek
Dave Pawson wrote:
 [EMAIL PROTECTED] wrote:
 An other thing that I have to deal with is multiple outputs: PDF,
 html, MSHelp.
  
 With PDF jeuclid works fine. With html FFor IE7 can be dictated.
 However, MSHelp is uninteligent and doesn't handle MathML.
  
 Does anyone have a solution for that? I don't really want to create a
 process that converts the MathML to image. That would be my last resort.
 
 
 Guess, but for mshelp that may be the 'final' option.

The best cross-platform solution for *displaying* math is to my
knowledge jsMath (http://www.math.union.edu/~dpvc/jsMath/). It works in
any browser with CSS and Javascript support and it relies on TeX syntax.
In principle it should work also in HTML Help.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Ripping out [EMAIL PROTECTED] generating code from the stylesheets [was: link linkend in XHTML output]

2008-10-02 Thread Jirka Kosek
Michael(tm) Smith wrote:

 That reminds me: Wasn't there some discussion a while back about
 the DocBook Project revising the stylesheets so that they never
 output [EMAIL PROTECTED] at all? I think all browsers in wide use today
 understand @id just fine and don't need [EMAIL PROTECTED] Or is there some
 other reason for keeping the [EMAIL PROTECTED] stuff that I'm missing?

If you are delivering your HTML generated from DocBook to QNX operating
system @id is of no use ;-)

Not very common case, but I few months ago I did very extensive
customization of stylesheet to output very small HTML subset supported
on that operating system.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Ripping out [EMAIL PROTECTED] generating code from the stylesheets [was: link linkend in XHTML output]

2008-10-02 Thread Jirka Kosek
Michael(tm) Smith wrote:

 To me, that would suggest we make the [EMAIL PROTECTED] output a user option,
 but change the default to be to not to output it anymore.

In principle I have nothing against going from [EMAIL PROTECTED] to @id. But is
this effort worth it (there are many places where IDs are generated)?
What are the benefits of using @id instead [EMAIL PROTECTED] except fractionally
shorter HTML code?

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] DocBook chunking starting with second subsection

2008-09-16 Thread Jirka Kosek
Sorin Ristache wrote:

 I am generating chunked HTML output from a DocBook 5 XML document but
 the start points of the chunks seem inconsistent: sometimes a new chunk
 starts at the second subsection of a second, sometimes it includes all
 the subsections of a section. For the attached file I set the
 chunk.section.depth parameter to 5 and the whole Section 1 (with
 subsections 1.1 and 1.2) is included in one chunk but Section 2 is split
 in two chunks: Section 2.1 and Section 2.2. Is Section 1.2 not supposed
 to go to a separate chunk too? Does anyone know how I can make the
 splitting consistent?

What is your setting of chunk.first.sections parameter?
Default setting produces output which might seems inconsistent, but it
has some logic behind. Setting it to 1 could produce more consistent
chunks.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] Re: examples and toc

2008-06-04 Thread Jirka Kosek

Sam Steingold wrote:


However, I find the generate.toc setting a little bit unsettling.
I hate to reset a global parameter when in fact what I want is a small
augmentation.
I wonder if it is possible to do something like
xsl:param name=generate.toc
section   toc,example
xsl.xsl:value-of select=generate.toc/
/xsl:param


Unfortunatelly this is not possible in XSLT.

Stylesheets reimplementation in XSLT 2.0 will improve this as it is 
storing configuration not as a single string, but as an XML fragment.


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: examples and toc

2008-06-02 Thread Jirka Kosek

Sam Steingold wrote:


when I replace
xsl:param name=toc.params select='toc example'/
with 
xsl:with-param name=toc.params select='toc example'/

the errors are gone, but the loe is still not there:


Sorry, I really should test code, not just write it from the top of my 
head. The following works for me:


?xml version=1.0 encoding=windows-1250?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0

xsl:import 
href=http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl/


xsl:param name=generate.section.toc.level select=5/

xsl:param name=generate.toc
appendix  toc,title
article/appendix  nop
article   toc,title
book  toc,title,figure,table,example,equation
chapter   toc,title
part  toc,title
preface   toc,title
qandadiv  toc
qandaset  toc
reference toc,title
sect1 toc
sect2 toc
sect3 toc
sect4 toc
sect5 toc
section   toc,example
set   toc,title
/xsl:param

xsl:template name=section.toc
  xsl:param name=toc-context select=./
  xsl:param name=toc.title.p select=true()/

  xsl:call-template name=make.lots
xsl:with-param name=toc.params select='toc,title,example'/
xsl:with-param name=toc
  xsl:call-template name=make.toc
xsl:with-param name=toc-context select=$toc-context/
xsl:with-param name=toc.title.p select=$toc.title.p/
xsl:with-param name=toc.params select='toc,title,example'/
xsl:with-param name=nodes
select=section|sect1|sect2|sect3|sect4|sect5|refentry
|bridgehead[$bridgehead.in.toc != 0]/

  /xsl:call-template
/xsl:with-param
  /xsl:call-template
/xsl:template

/xsl:stylesheet

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: examples and toc

2008-06-01 Thread Jirka Kosek

Sam Steingold wrote:


still no loe:
http://clisp.podval.org/impnotes/dffi.html


Sorry, I forgot that section ToCs are handled differently then book/set 
ToCs. Try the following hack:


xsl:template name=section.toc
  xsl:param name=toc-context select=./
  xsl:param name=toc.title.p select=true()/

  xsl:call-template name=make.toc
xsl:with-param name=toc-context select=$toc-context/
xsl:with-param name=toc.title.p select=$toc.title.p/
xsl:param name=toc.params select='toc example'/
xsl:with-param name=nodes
select=section|sect1|sect2|sect3|sect4|sect5|refentry
   |bridgehead[$bridgehead.in.toc != 0]/

  /xsl:call-template
/xsl:template




--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] examples and toc

2008-05-31 Thread Jirka Kosek

Sam Steingold wrote:

I have an examples section which contains a dozen examples.
they are listed on the front page in the LOE, but not on the section
TOC. is there a way to list examples in the toc too? (other than
wrapping each example in a section)
thanks.


Try the following setting of parameter

http://docbook.sourceforge.net/release/xsl/current/doc/html/generate.toc.html

xsl:param name=generate.toc
appendix  toc,title
article/appendix  nop
article   toc,title
book  toc,title,figure,table,example,equation
chapter   toc,title
part  toc,title
preface   toc,title
qandadiv  toc
qandaset  toc
reference toc,title
sect1 toc
sect2 toc
sect3 toc
sect4 toc
sect5 toc
section   toc,example
set   toc,title
/xsl:param

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Error in chunk-common.xsl ?

2008-05-23 Thread Jirka Kosek

Julian Hidalgo wrote:


Is anyone experiencing this problem? Is it an issue with .NET's
implementation or in the stylesheet? Any clue about what could be
wrong or how to fix it?


Yes, this is known bug and divergence from XSLT recommendation in .NET 
XSLT processor. Ask Microsoft for fix. If they have enough request then 
they might to decide to really fix it.


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Jirka Kosek

Keith Fahlgren wrote:


  report test='[EMAIL PROTECTED]web]/[EMAIL PROTECTED](.=PNG)
and not(.=JPG) and
not(.=GIF)]]'[EMAIL PROTECTED]web]/imagedata must be
@format=PNG|GIF|JPG/report


Just quick note, in XPath 2.0 there are sequences as a new datatype and 
you can write:


not(. = ('PNG', 'JPG', 'GIF'))

But sorry for OT on DocBook list ;-)

Jirka

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: How to validate DocBook 5 with XInclude?

2008-05-19 Thread Jirka Kosek

Boris wrote:

Thanks for the link! Out of interest: Is this a DocBoook speciality or 
you always have to include documents first when you want to validate?


It depends on what you want. Of course it possible to validate XML 
document without resolving XIncludes but then you can't be sure that 
after resolving document will be also valid. If you will include chapter 
inside chapter you will not see error until you resolve includes as 
standalone included chapter is valid, and it is possible to have 
XInclude element inside chapter.


If you want to validate without resolving XIncludes, you should use 
DocBook schema which allows xi:include elements -- docbookxi.rng or 
docbookxi.rnc from http://www.docbook.org/xml/5.0/rng/


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] How to validate DocBook 5 with XInclude?

2008-05-18 Thread Jirka Kosek

Boris wrote:
Is it possible to validate a DocBook 5 document which uses XInclude? I 


Yes, see:

http://www.docbook.org/docs/howto/#faq-authoring-validating-xincludes

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] Re: [docbook] RE: [docbook-apps] RE: [docbook] RE: [docbook-apps] db 5 and Dita anyone?

2008-05-09 Thread Jirka Kosek

Barton Wright wrote:


Another +1 for a non-xinclude conref feature.


Well, conref also has its own issues.


No one talks about the hidden cost of xincludes, which is that they
are expensive in terms of the time they take in a large Java-based
doc build process. The more xincludes our doc set accrues, the longer
the doc build takes.


There is no reason why XInclude should be slower then conref, actually I 
would expect that conref will be little bit slower as it has to be 
implemented during XSLT processing, not just during XML parsing. But you 
have to parse included file anyway, so there should not be big 
difference. If XInclude processing is slow for you then there is 
probably something broken in your toolchain.


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: [docbook] RE: [docbook-apps] RE: [docbook] RE: [docbook-apps] db 5 and Dita anyone?

2008-05-09 Thread Jirka Kosek

Keith Fahlgren wrote:


That said, we've experienced slowness with deep XIncludes on all of
our systems (lots of architectures, OSs, tools). I do not believe
their is anything broken in our toolchains.


Do you reference DTDs from XIncluded files? If so, are DTDs fetched from 
catalog? This could be cause of slowness. But those problems are not 
present in DocBook V5 which doesn't rely on DTDs.


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: DocBook 5.x - the difference between mediaobject and inlinemediaobject

2008-04-29 Thread Jirka Kosek

Bob Stayton wrote:

tables, admonitions, lists, etc. (but not para).   I'm sure there were 
good arguments at the time for such a design, but I have never liked 
it.  The simpara element (simple para) was created for those who don't 
want such a structure.  The simpara element does not allow other block 
elements, only inline elements.


For my customers, I usually redefine para to have the same content model 
as simpara to remove complexity of nested block elements:


# model para after simpara (no nested blocks, no info)
db.para =
  element para
  {
 db.simpara.attlist,
 db.all.inlines*
  }

But some people prefer to use nested blocks, for example if you have let 
say enumeration presented as list inside one logical piece of text, you 
it is more precise to markup it as:


para
  ...
  itemizedlist
...
  /itemizedlist
  ...
/para

then as

para
  ...
/para
itemizedlist
  ...
/itemizedlist
para
  ...
/para

But personally I'm usually using the later variant too.

Jirka

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Make better use of IDs in the HTML stylesheets?

2008-04-17 Thread Jirka Kosek

Jean Jordaan wrote:


Consider putting the id in a place that actually identifies the entire
named section?


The problem is that some older HTML browsers do not suppot ID attributes 
and it is thus necessary to emit a name=.../. You can't have ID 
attribute with the same value on different element.


But to accommodate your needs you can easily put ID into class 
attribute. Just add the following into your customization layer:


xsl:template match=* mode=class.value
  xsl:param name=class select=local-name(.)/
  !-- permit customization of class value only --
  !-- Use element name by default --
  xsl:value-of select=$class/
  xsl:if test=@id | @xml:id
xsl:text _/xsl:text
xsl:value-of select=@id | @xml:id/
  /xsl:if
/xsl:template

Now, for

appendix id=foo

you will get

div class=appendix _foo

which you can easily access in CSS by

.appendix._foo

or by

._foo.appendix

HTH,

Jirka

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Make better use of IDs in the HTML stylesheets?

2008-04-17 Thread Jirka Kosek

Jirka Kosek wrote:


which you can easily access in CSS by

.appendix._foo


I forgot about CSS escaping rules, so you should write this down as

.appendix.\_foo

You might try to use different character then underscore to prefix ID 
values.


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Request For Clarification: Indexterm processing in auto-index generation.

2008-03-11 Thread Jirka Kosek

Stefan Seefeld wrote:

I still find these two texts to contradict each other. I do find the 
suggested processing expectation from TDG much more intuitive than the 
one explained in DocBook XSL: The Complete Guide.


At least, I'd appreciate if those two texts could be made to agree on 
what the expected processing should be like. :-)


There is no contradiction. Your document will be read by humans. In many 
cases (I'm not saying in all, so might be your indexing needs are really 
different) human can't start reading in the middle of paragraph after 
he/she followed link from index. Instead you usually need to be aware of 
context. If the link from index leads to whole enclosing section you can 
easily get context and then get better understanding of particular place 
of text where indexterm originally occured. Of course this works well, 
if your sections are small. If your sections are 50 pages long, this 
approach is not very useful.


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] DocBook 5 support for OmegaT

2008-03-10 Thread Jirka Kosek

Ned Horning wrote:

There is a small group working to add DocBook 5 support to OmegaT an 
open source multi-platform language translation program 
(http://www.omegat.org/). OmegaT currently supports DocBook 4.  I was 
hoping someone on this list could shed some light on a question asked by 
one of the developers. In the DocBook filter it is only necessary to 
define some of the DocBook tags and the developer wants to know if new 
elements need to be added to the list of tags used in the DocBook 4 
filter. I pasted the tag list from the DocBook 4 filter below. Any 
comments would be appreciated.


You can find list of translatable/nontranslatable elements/attributes as 
well segmentation hints for DocBook V5.0 at


http://www.w3.org/TR/2008/NOTE-xml-i18n-bp-20080213/#relating-docbook-plus-its

HTH,

Jirka


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Adding new elements to DocBook...

2008-03-10 Thread Jirka Kosek

Anagha Tongaonkar wrote:

Question 3.  One can define elements with types such as xs:string, 
xs:short, etc. in an XML Schema document (xsd) .What are the equivalent 
types available in DocBook?


You can use W3C XML Schema datatypes in RELAX NG, just prefix them with 
xsd: (in compact syntax). However I doubt that such strict type checking 
is useful for more then very few DocBook elements.


--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Suppressing toc entries based on role attribute

2008-03-10 Thread Jirka Kosek

elizabethw wrote:

I wish to generate two slightly different sets of documentation from the same
DocBook XML. I thought I'd achieved this by setting the role attribute on
affected elements, eg:

sect2 role=not_doc_a id=something
...content...
/sect2

and having two local stylesheets, one which ignores elements with the role
not_doc_a and one which ignores elements with the role not_doc_b.


Why you are not using profiling?

http://www.sagehill.net/docbookxsl/Profiling.html

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] xmllint, xinclude, xpointer, and DocBook 5.0

2008-02-19 Thread Jirka Kosek

Dick Hamilton wrote:


But, xmllint fails if I use an xpointer expression like this:

xi:include xmlns:xi=http://www.w3.org/2001/XInclude;
href=chap1.xml
xpointer=xpointer(//chapter/title/node())/


Your expression //chapter/title is asking for elements which are in no 
namespace. You have to declare prefix for DocBook namespace for XPointer 
query. In theory you can use something like:


xpointer=xmlns(db=http://docbook.org/ns/docbook)xpointer(//db:chapter/db:title/node())

Can you confirm whether xmllint supports this syntax?

Jirka

--
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] ANNOUNCE: Celebrate New Year by Easy Editing of Your XSL FO Customizations

2007-12-31 Thread Jirka Kosek
Hi folks,

I'm pleased to announce that you can download FO Parameter Editor from

http://sourceforge.net/project/showfiles.php?group_id=21935package_id=254816release_id=565027

FO Parameter Editor lets you easily set various FO parameters
(http://docbook.sourceforge.net/release/xsl/current/doc/fo/index.html)
using visual interface and then save this configuration as XSL
customization layer. You can use FO Parameter Editor also for editing
already existing customization layers.

All parameters are logically grouped, list of possible values is offered
where appropriate, easy access for parameter definition is provided, ...
simply check it out.

FO Parameter Editor is written in Java and requires Java 1.5+.

FO Parameter Editor was developed by Marta Václavíková. All kudos should
go to her.

If you will find bug in application, please report it using the
following DocBook tracker:

http://sourceforge.net/tracker/?atid=1024848group_id=21935func=browse

Happy New Year,

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Re: SVG how to

2007-12-29 Thread Jirka Kosek
Roger Blum wrote:

 Is version 5 already used for production applications although there is
 no official release yet?

Yes. I have successfully deployed it on several customer sites during
past two years. Changes made during past year to schema were so minor
that it was very improbable that document validating against beta or
candidate release version of schema will become invalid against newer
version of schema.

In November DocBook V5.0 was finalized
(http://www.oasis-open.org/archives/docbook-tc/200711/msg7.html) and
final schema will be identical to 5.0CR7. Some paperwork has to be done
with OASIS to get final stamped 5.0 schemas out.

 Is there a packaged tool similar to docbook-utils for version 5 which
 allows to convert XML to PDF/HTML/.. with a single command or do I have
 to install and configure everything myself (I only have very limited
 access to the servers).

Standard XSL stylesheet can be used to process DocBook V5.0 documents.
So as long as your prepackaged tool uses XSL stylesheets you should be
able to use it also for V5.0 documents. For more info see:
http://www.docbook.org/docs/howto/#processing

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Table Row Counting

2007-12-20 Thread Jirka Kosek
Dave Cushman wrote:

 Instead of manually entering the item number in the first column, I'd
 like to be able to have that generated during conversion so that it
 stays accurate as I add and remove items.  What is a good method to
 accomplish this?

It's kind of a hack but you can attach this autonumbering functionality
to profiling code in stylesheets. Simply create stylesheet customization
based on profiling stylesheet (like fo/profile-docbook.xsl or
html/profile-chunk.xsl) and then add special role to tables that should
have this functionality, like:

table role=autonumbered

and in your customized stylesheet use the following template:

xsl:template
match=[EMAIL PROTECTED]'autonumbered']/tgroup/tbody/row/entry[1]
mode=profile
  xsl:copy
xsl:copy-of select=@*/
xsl:number count=row level=single from=tbody/
  /xsl:copy
/xsl:template


Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Glossary sorting in Japanese

2007-12-19 Thread Jirka Kosek
David Cramer wrote:

 This line appears more than once, so change them all. This is a bug in
 the xsls, so please log it at sourceforge if it's not there already. I
 would love to see the kosek and kimber approaches applied to the
 glossary too for grouping glossterms into glossdivs in the same way
 indexterms are automatically grouped into indexdivs.

So please file it as a new RFE at sourceforge.

 Also, I'm surprised by the need to translate all the characters to the
 same case. Is that really required?

Definition of lowercase; and uppercase; is such it converts accented
letters to unaccented ones -- this might be useful when you have foreign
terms in English, but for majority of languages you will need something
completely different like kosek or kimber method used for indexing.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] HTMLHelp - profiling and chunking problem with alias.h

2007-12-04 Thread Jirka Kosek
Joe Hines wrote:

 Using the two-pass profiling method seems to fix this problem, but
 why doesn't it work with the one pass profiling method? The output
 for the CHM works fine, so only part of the output for the one pass
 method is not working. Is it possibly a bug?

It is for sure bug ;-)

It should be fixed now, try with the latest snapshot from:

http://docbook.sourceforge.net/snapshots/

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] A question about docbook stylesheet licensing

2007-12-04 Thread Jirka Kosek
Antti Karanta wrote:

   Reading the docbook FAQ entry on stylesheet licensing
 (http://www.dpawson.co.uk/docbook/reference.html#d17e1969) it is not
 entirely clear to me whether the license on the stylesheets is viral,
 i.e. can I distribute them with a commercial application without having
 to publish the sources for the said application? 

Yes. There are plenty of application which already does this -- e.g.
oXygen, XMLMind XML Editor, Epic, ...

 I tried reading the
 license (http://docbook.sourceforge.net/release/xsl/current/COPYING) but
 as IANAL, I’m not completely certain about whether this is a viral
 license or not.

Fortunatelly it is not viral licence, it's BSD-like license which is
probably the most liberal one.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Ant XSLT task error

2007-11-29 Thread Jirka Kosek
Eric Johnson wrote:

 '[EMAIL PROTECTED]'.
  [xslt] : Fatal Error! Could not compile stylesheet

It seems that you are using XSLTC as your XSLT engine (XSLTC is default
in Java 1.5+). The easiest workaround is to use different XSLT engine,
ideally Saxon 6.5.x. I'm not ant expert, so try to consult ant
documentation or Google on how to change XSLT engine used.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Referencing a glossary entry?

2007-11-20 Thread Jirka Kosek
Jean Jordaan wrote:

 What's the correct markup to use if I want to reference a glossary
 entry from my text, so that the reader knows that they can look up
 this term in the glossary?

glossterm/firstterm

http://www.docbook.org/tdg5/en/html/glossterm.html

You can use the following stylesheets parameter to turn references to
links automatically:

http://docbook.sourceforge.net/release/xsl/current/doc/html/glossterm.auto.link.html

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] Re: [docbook] RTF compiled with FOP 0.93

2007-11-11 Thread Jirka Kosek
[Moving to docbook-apps which is appropriate forum for tools specific
questions...]

Roman Banks wrote:
 I  attempt to improve the output documents (compiled with xsltproc and FOP 
 0.93), and I wonder whether it is possible
 to improve the layout of RTFs. They look terrible: list numbering
 problem (restarting numbering, graphics is numbered as a list item);
 graphics size is non-proportional, moved to the right, tables are smashed. Is 
 there any way to improve this layout via stylesheet
 customization? I was also advised by someone to use OpenJade to compile RTF. 
 Is it really better than FOP?

RTF backend in FOP is really lacking many features. Instead you can use
XFC (http://www.xmlmind.com/foconverter/) -- it works more or less well
with standard output from DocBook stylesheets.

Regarding OpenJade -- while it can give you satisfactory RTF output I
think that whole DSSSL technology is falling down and as it is used by
less and less people it will be harder to get help from other users.
(And I'm saying this even if I have to admit that in some aspects DSSSL
is much elegant then XSLT+XSL-FO).

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] API reference manual generation ?

2007-10-31 Thread Jirka Kosek
Stefan Seefeld wrote:

 2. There are two output styles for funcsynopses, KR (default) and ANSI.
 Maybe you'll like the ANSI one better.
 
 Definitely. (Isn't it about time to switch to ANSI by default ? ;-) )

No. Stylesheet developers try to maintain backwards compatibility
between stylesheet releases -- this means that if you transfer your
document with a new stylesheet release you should get visually more or
less same result. Changing default synopsis style from KR to ANSI would
break this rule.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] profiling and entities -

2007-10-18 Thread Jirka Kosek
Samuel Wright wrote:

 Is there someway to control entities with profiling
 
 I could use
 
 section
 para sfdfssdf sdfsfsdf sdfdsfdsf  MYOS; /para
 /section

Yes, you can define MYOS as

!ENTITY MYOS phrase os=linlinux content/phrasephrase
os=winwindows content/phrase

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] DocBook - Wiki

2007-10-15 Thread Jirka Kosek
Geraint North wrote:

 I'd also appreciate some guidance as to how I should start - should I
 take an existing (e.g. HTML) set of stylesheets, or just write my own
 from scratch?  I've done a lot of customisation of the HTML and XSL-FO
 stylesheets, so I have a pretty good idea what's involved either way.

There are already several DocBook - WiKi stylesheets available. None of
them supports full DocBook and they support various WiKi syntaxes. I can
recall only one from the top of my head:

http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/contrib/xsl/db2wiki/


-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Omit page break before chapter?

2007-10-09 Thread Jirka Kosek
Schramm, Martin wrote:


 Do you know, how to adjust the properties or parameters, so the page
 break before an chapter title is omitted?

It will not be so easy as chapter generates new page sequence which
always starts on a new page.

The easiest solution would be to rename chapters to sections and book to
article during your filtering. There are no page breaks before sections
in article.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Docbook article

2007-09-12 Thread Jirka Kosek
Ron Catterall wrote:
 Interesting article

  http://www.devx.com/Java/Article/35301
 
 On the first page I found:
 
 Chapters are hierarchical; a chapter can contain other chapters, and they 
 can 
 be nested indefinitely.
 
 Oh well, any publicity is better than none.

They are also using obsolete (2003) XInclude namespace :-(

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Table not breaking across page

2007-08-03 Thread Jirka Kosek
Dishaa wrote:

 Another problem I saw was, when the table does neatly break across,
 the heading row does not repeat. 

Do you have thead element in your DocBook table? Only table header is
repeated on the new page.

 In addition, the first row in the
 new page does not have the top-border - looks like its cut off!

It's default FO behaviour, you can change it by using the following code
in your customization layer:

xsl:attribute-set name=table.table.properties
  xsl:attribute
name=border-before-width.conditionalityretain/xsl:attribute
/xsl:attribute-set


-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Table not breaking across page

2007-08-03 Thread Jirka Kosek
Dishaa wrote:

 But it still appears without a top-border. It still appears cut off!
 Here;s a small excerpt from the stylesheet:

Give it a try in XEP to see whether problem is in your FO file or in FOP
implementation. It should work unless I have missed something.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] FO processors and box stacking (Z-axis layering)

2007-07-28 Thread Jirka Kosek
Colin Shapiro wrote:

 I am wondering why XEP does not layer boxes based on the order in which they
 are written, as FOP does (and presumably XF as well, given the examples
 posted on Ecrion's site).  Of course, with XEP, you can use z-index to fix
 this, but sometimes that is not ideal as you will then break FOP
 compatibility.

If you look at the definition of z-index property
(http://www.w3.org/TR/xsl/#z-index) you will see that specification
doesn't define how to stack objects that have the same stack level. So
it is application dependent and if you want to control it you have to
use z-index.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Docbook 5.0 test documents

2007-07-19 Thread Jirka Kosek
Ellyn Larson wrote:

 I am looking for some DocBook 5.0 test documents. I would welcome any
 that people are able to send me or point me to on the web. They would be
 used for application testing purposes only.

http://docbook.org/docs/howto/howto.xml

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Problem with Unicode strings using docbook2pdf and docbook2html under Linux

2007-07-09 Thread Jirka Kosek
Ali Majdzadeh wrote:

 I am creating a book using XML DocBook. I use docbook2pdf and docbook2html
 tools under Linux (Fedora Core 6). 

You can try to use XSL toolchain instead of DSSSL one. There is no new
development in DSSSL stylesheets.

 When dealing with English text,
 everything is fine, but when I want to enter text in my own language
 (Persian), these two tools, complain about Unicode strings. My main XML
 file
 looks like this:
 
 ?xml version=1.0 standalone=no encoding=utf-8?
...
 I can not figure out the problem. By the way, the errors were reported as
 follows:
...
 jade:/opt/slm/doc/sgmlSources/manual.xml:19:12:E: non SGML character number
 132

Try to set environment variable SP_ENCODING to value XML. It should help.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] External code files (using Xalan)

2007-06-26 Thread Jirka Kosek
Mike M wrote:

 My commandline is this (Windows):
 
  C:\Program Files\Java\jre1.6.0_01\bin\java -cp 
 C:\DocBook\fop-0.93\build\fop.jar;C:\DocBook\fop-0.93\lib\xalan-2.7.0.jar;C:\DocBook
 \fop-0.93\lib\xml-apis-1.3.02.jar;C:\DocBook\fop-0.93\lib\xercesImpl-2.7.1.jar;C:\DocBook\docbook-xsl-1.72.0\extensions\xalan27.jar
  -Djava.
 endorsed.dirs=C:\DocBook\fop-0.93\lib org.apache.xalan.xslt.Process -in 
 D:\_1\Personal_Projects\Groovy\doc\test.xml -out test.html -xs
 l C:\DocBook\docbook-xsl-1.72.0\html\docbook.xsl  -param use.extensions 1 
 -param textinsert.extension 1
 
 The output says: Cannot read codesample.txt
 This file is in the same directory as the docbook file.
 
  How do I get the command to locate the file? Where is it actually looking?

It is very likely that file is expected in the current working
directory. It is usually better to invoke transformation in directory
with your files and then specify DocBook source by relative path, in
your particular case by using -in test.xml parameter.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Validating DocBook V5.0

2007-06-14 Thread Jirka Kosek
Ken Morse wrote:

 As an alternative, I thought I might use xmllint -- anyone know if it
 is able to validate both against a RELAX NG schema and Schematron
 rules?

Not in a single step. But it is possible to convert Schematron schema
into XSLT stylesheet and then use this stylesheet together with xsltproc
for validation.

See:

http://xml.ascc.net/schematron/1.5/

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Processing DocBook XSL with PHP

2007-06-14 Thread Jirka Kosek
Larry Garfield wrote:

 The main things I need are:
 
 - XInclude support.
 - Multi-file output.  Right now I'm using the ?dbhtml ? directive to 
 control 
 that, but I am willing to change that if it makes it easier/possible.

PHP uses libxslt for XSLT processing, and DocBook stylesheets works with
xsltproc, so there shouldn't be problems.

 - Something that involves fewer than 15 components that break every time it 
 rains. :-)

Well, I wouldn't say that XML support in PHP is without problems, but
majority of problems was solved in PHP5.1. Once there will be Unicode
support in PHP, we can consider PHP enough mature to seriously process
XML content. ;-)

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] rendering expectations of biblioentry-author-orgname

2007-05-31 Thread Jirka Kosek
Chris Chiasson wrote:

 What are the rendering expectations of a biblioentry containing an
 author containing an orgname?

You shouldn't expect very much from biblioentry as there are too many
different bibliography styles around. You can use bibliomixed or if you
like ISO 690 bibliography style, then set the following parameter:

xsl:param name=bibliography.styleiso690/xsl:param

and see what markup is expected at
http://wiki.docbook.org/topic/ISO690Bibliography?action=AttachFiledo=gettarget=doc.html

ISO690 can handle corpauthor element (DocBook V4). It probably doesn't
handle orgname yet. You can file it as RFE.

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


[docbook-apps] ANN: XML Prague 2007

2007-05-24 Thread Jirka Kosek
Hi folks,

I will use this opportunity to invite everyone to attend XML
Prague 2007 (http://www.xmlprague.cz/). You will see and hear excellent
speakers talking about up-to-date topics (and yes, Norm will have
DocBook session during the conference). As the conference is quite
small (around 120-130 people) it has very cosy atmosphere. Moreover we
made this conference for fun, not for money, so conference rate is
ridiculously low. And if you have spare time you can spend few more days
in Prague, which is very attractive touristic location (btw, conference
itself is located in former monastery from 17th century).

Jirka



XML Prague June 16th  17th 2007


XML Prague is a regular conference on XML for developers, markup
geeks, information managers, and students, focusing this year on
Alternative Approaches to XML Processing, Open XML Documents and
XML Pipelines. A full day of experts speaking has been extended with an
additional day dedicated for participants to hold related BoF sessions
and workshops.

Details on how to register can be found here
http://www.xmlprague.cz/register.html

We can now confirm most of the speakers and sessions for XML Prague 2007.

View now at http://www.xmlprague.cz/sessions.html

Speakers confirmed so far (in alphabetical order):

- Geert Bormans
- Erik Bruchez
- Uche Ogbuji
- Lars Oppermann
- Oleg Paraschenko
- Bryan Rasmussen
- Eric van der Vlist
- Norman Walsh
- Mohamed Zergaoui

Conference Sessions

 * Processing XML With Fun , Eric van der Vlist

 * XProc: An XML Pipeline Language , Norman Walsh

 * Python and XML , Uche Ogbuji

 * Applications of XML pipelines to web applications with XPL , Erik Bruchez

 * DocBook , Norman Walsh

 * Leapfrogging microformats with XML, linking, and more , Uche Ogbuji

 * XML Processing by Streaming , Mohamed Zergaoui

 * Processing OpenDocument , Lars Oppermann

 * Generative XPath , Oleg Paraschenko

 * Beyond the simple pipeline: managing processes over time , Geert Bormans

 * A Generic Transformation Architecture , Bryan Rasmussen

Hope to see you there.

Jirka Kosek
organizing committee

XML Prague Gold Sponsors: Microsoft and Sun Microsystems

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Docbook v5.0 documents - best practices ?

2007-05-21 Thread Jirka Kosek
Fredrik Svensson wrote:

 while the TDG5[2] disuses :

TDG5 is not completely up-to-date except element reference part.

 There are also unexplained examples (The Document (or Root) Element)
 book xmlns=http://docbook.org/ns/docbook;…/book
 
 Still is the version=5.0 needed ? recommended ?

It is required (by schema) and recommended. Current processing tools
ignore version information, but this might change in future. Version
attribute is also hook which can be used to differentiate between
various customized versions of schema.

 book.xml
 
 ?xml version=1.0 encoding=utf-8?
 book xmlns=http://docbook.org/ns/docbook; version=5.0 xml:lang=en
   xmlns:xi=http://www.w3.org/2001/XInclude;
 titleMy First Book/title
 xi:include href=chap1.xml/
 xi:include href=appa.xml/
 /book
 
 chap1.xml
 =
 ?xml version=1.0 encoding=utf-8?
 chapter xmlns=http://docbook.org/ns/docbook; version=5.0 xml:lang=en
 titleMy First Chapter/title
 paraMy first paragraph./para
 …

This looks good to me, but you should also let XML parser validate your
document.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


[docbook-apps] DocBook dinner update

2007-05-14 Thread Jirka Kosek
Hello,

just a short reminder that DocBook dinner
(http://xmlguru.cz/2007/04/docbook-dinner) is approaching.

I will be waiting in lobby of Novotel Paris Tour Eiffel hotel from 19:00
(local Paris time), May 17th, 2007. We can collect there and around
19:20 we can continue to chosen restaurant.

UPDATE: Jacques Foucry kindly made reservation in Pouchla, 10 rue
Mandar. The nearest metro station is Etienne Marcel on the line 4. The
nearest metro station form the novotel is Charles Michels on line 10.
You have to take line 10 direction Gare d'Austerlitz, get off at
Odéon then take line 4 direction Porte de Clignancourt and get off
at Etienne Marcel.

So if you can't join us in hotel lobby, you can join us later directly
in pub.

If you are interested in dinner please indicate so by posting comment at
the page above by responding off-list to this email. I have several
spare DocBook buttons which I will give away during the dinner, so don't
miss this opportunity.

Looking forward to see many of you at Thursday,

Jirka

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] XSL and tex equations

2007-05-09 Thread Jirka Kosek
Stefano Sabatini wrote:

 I think this should be possible, but the only relevant reference I
 found googling around is this quite old post:
 http://www.oasis-open.org/archives/docbook-apps/200112/msg00035.html
 
 dating December 2001, while the DBTex method seems only to work with
 DSSSL.

I'm quoting page to which you linked above:

I just commit few changes to XSL stylesheets to CVS. XSL stylesheets
now directly support TeX equations in documents. It is XSL based
implementation of DBTeXMath by Allin Cottrell

So from this statement it seems apparent that this method is supported
also by XSL stylesheets. For more information you can see:

http://www.sagehill.net/docbookxsl/TexMath.html

 I would like to avoid to use MathML, due to its need for a graphical
 editor,

You can easily paste MathML code into DocBook for example from
OpenOffice equation editor.

 so using the compact tex notation plus the possibility to
 exploit the same beatiful equation rendering engine of tex seems the
 ideal solution.

If you want to render TeX math in browser you should consider using
excellent jsMath package:

http://www.math.union.edu/~dpvc/jsMath/

It gives much more better results then equations stored as bitmap images.

It is not directly supported by DocBook XSL stylesheets, but if there
are request for this feature, I can extend TeX math support in DocBook
stylesheets to emit markup required by jsMath.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Glossary sorting in Japanese

2007-04-25 Thread Jirka Kosek
Akagi Kobayashi wrote:

 I'm told that I should be able to use the primary tag and sortas attribute,
 in combination with glossterm. What do you think?

primary element is used for creating back-of-the-book index, not for
glossaries.

 If an entry should be sorted in a different way than it is displayed, then
 we can use the sortas attribute. During index grouping and sorting, the text
 of the entry is ignored and the sortas attribute is then used instead. This
 can be useful in situations when an index entry contains special symbols
 that should sort differently; for example, based on their phonetic
 representation. The following example creates an index entry that will
 result in the Kanji $BBgOB(B displayed in the index, but this letter will 
 be put
 in the place of word $B$d$^$H(B
 
 indexterm
 primary sortas=$B$d$^$H(B$BBgOB(B/primary
 /indexterm

It seems that your Japanese characters haven't survived email transfer.

 At the moment the ja.xml's l:letters lang= is set to en.  Should this be
 set to ja, as well as assigning the various Japanese syllabary characters?

Yes. But please note that this table is used by Kosek indexing method.
This method is suitable for sorting and grouping for latin based
languages, when the sort order is defined by order of characters.

My knowledge of CJKV languages is very limited. My understanding is that
in Kanji sort order is based on radical, and Kosek indexing method
doesn't support this. I do not know enough about sorting of Hiragana and
Katakana written text, so I can't confirm that it is possible to create
l:letters for those scripts.

For Japanese you can be more successful using Kimber indexing method.
It is little but complicated to setup, but has much better support for
CJKV languages.

For more information about setup see:

http://docbook.sourceforge.net/release/xsl/current/doc/html/index.method.html

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Glossary sorting in Japanese

2007-04-13 Thread Jirka Kosek
Akagi K wrote:

 I'm looking for advice on how to sort Japanese words using the ja.xml file. 
 Is it possible to set a glossary term and hide it from view but still be
 picked up for sorting?
 Then it may be possible to set the glossterm in hiragana or katakana
 invisibly when the actual term uses kanji.

You can use baseform attribute on glossterm for this purpose. The
problem is that stylesheets currently ignore this attribute. Please
submit new RFE at Sourceforge site.

Moreover it would be better to provide another attribute called sortas
to provide different form of term for sorting purposes. I will add RFE
for adding this attribute to DocBook V5.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: AW: [docbook-apps] translation of docbook documents

2007-04-05 Thread Jirka Kosek
Hinrich Aue wrote:
 Thanks, Okapi seems to be the right product.
 I'm tied to windows, so all the nice command line tools for linux are
 out.

You can get most of them working by using Cygwin (http://cygwin.com/).

 But Okapi works fine, and there are lots of xliff editors out there

Yes, OKAPIs is one of the few toolkits which is tracking the latest
developments in l10n.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] translation of docbook documents

2007-04-04 Thread Jirka Kosek
Sean Wheller wrote:
 On Wednesday 04 April 2007 15:44, Hinrich Aue wrote:
 Does anyone have experience in translating docbook documents?
 Are there any tools out there to assist? What is the best approach?
 
 Hello Hinrich,
 
 The best solution at the best price (free) is the POT/PO (gnu getext) chain. 
 It's used extensively on most Open Source projects. Leaders obviously the 
 GNOME and KDE l18n projects and documentation projects. You can find more 
 info on http://www.kde.org and http://www.gnome.org.

GNU Gettext is very good utility. There are also other tools build on
top of open XML based formats, like OKAPI:

http://okapi.sourceforge.net/

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Converting from DocBook XML 4.4 to 5.0

2007-04-03 Thread Jirka Kosek
Mykone Saunders wrote:

 Is there a tool to convert DocBook 4.4 document to 5.0? 

See

http://www.docbook.org/docs/howto/#convert4to5

 Also, is there
 any advantage to convert to 5.0?

DocBook V4.5 is considered to be feature frozen. Any new developments
(e.g. adding new elements supporting new constructs used in
documentation) will be done only on 5.0 version.

Moreover, it is much easier to create customized version of DocBook
schema if you are basing it on DocBook V5.0 rather then on V4.x.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] DocBook dinner at XTech 2007

2007-04-02 Thread Jirka Kosek
Jirka Kosek wrote:

 is anyone planning to go to XTech 2007 conference
 (http://2007.xtech.org)? We can arrange favourite DocBook dinner there.

OK, it seems that this idea was well accepted. ;-)

I propose that we go for dinner on Thursday evening, more details
at http://xmlguru.cz/2007/04/docbook-dinner

Jacques, are your local to Paris? Do you have any restaurant
recommendations? Please contact me off-list. Thanks.

Jirka

-- 
--
  Jirka Kosek e-mail: [EMAIL PROTECTED] http://www.kosek.cz
--
  Profesionální školení a poradenství v oblasti technologií XML.
 Podívejte se na náš nově spuštěný web http://DocBook.cz
   Podrobný přehled školení http://xmlguru.cz/skoleni/
--
   Nejbližší termíny školení:
** XML schémata 16.-18.4.2007 ** DocBook 26.-28.6.2007 **
--
  http://xmlguru.czBlog mostly about XML for English readers
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] MathML and fo:instream-foreign-object

2007-03-31 Thread Jirka Kosek
Chris Chiasson wrote:

 Would the old docbook stylesheets template (the one that did the
 namespace stripping) match on this example? 

Are you asking whether MathML embeded in DocBook V5.0 will be processed
by stock DocBook XSL stylesheets?

If so, then answer is yes. Namespace stripping which is done on DocBook
V5.0 files affects only elements in DocBook namespace
(http://docbook.org/ns/docbook). Other elemens (including MathML
elements) are left untouched during namespace stripping.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] MathML and fo:instream-foreign-object

2007-03-30 Thread Jirka Kosek
Mads Ipsen wrote:

 In order to get MathML rendered with Antenna House's XSLFormatter, you
 need to wrap all MathML blocks inside a fo:instream-foreign-object
 element. If I (very naively) do

Get the latest snapshot from http://docbook.sf.net/snapshots/
I have fixed exactly this week or two ago.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] MathML and fo:instream-foreign-object

2007-03-30 Thread Jirka Kosek
Chris Chiasson wrote:
 Did you fix this:
 
 http://sourceforge.net/tracker/index.php?func=detailaid=1574016group_id=21935atid=373749
 
 
 [ 1574016 ] docbook 5 imagedata svg and mml support
 
 ?

No, I will look into this issue later, hopefully during the weekend.

 Also, in the namespaced version of the xsl 1 stylesheets, is it now
 possible to create a version that doesn't require MathML elements to
 have a prefix?

XSLT is not prefix aware, so you can use any prefix for your MathML
elements, including using no prefix and relying on default namespace, like:

article
  titleMathML test/title

  paraFraction inlineequationmath
xmlns=http://www.w3.org/1998/Math/MathML;mfracmn1/mnmin/mi/mfrac/math/inlineequation/para
/article

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] MathML and fo:instream-foreign-object

2007-03-30 Thread Jirka Kosek
Chris Chiasson wrote:

 Does this work with the current stylesheets,

Yes, but at this time you have to download snapshot release.

 or is it still looking
 for elements with the mml: (or svg: ) prefix? I think the reason the
 old stylesheets needed the prefixes was that they did not use
 namespaces. Is that true?

No, stylesheet can use completely different prefixes then instance.
Matching is done on namespace name (URI). I'm probably misunderstanding
your problem here.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] ERROR: Too many nested apply-templates calls

2007-03-29 Thread Jirka Kosek
Nelson, Dean wrote:

 At first I thought that this was a memory issue so I increased the Java
 stack (-Xms512m) and heap  (-Xmx512m) settings because my Docbook set is
 rather large. But this did not seem to help.
  
 Anyone have any idea or thoughts about this?

See

http://www.nabble.com/forum/ViewPost.jtp?post=9579448framed=y

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Error in XHTML stylesheets

2007-03-25 Thread Jirka Kosek
M.Canales.es wrote:

 I just noticed in the current docbook-xsl-snapshot (Vsnapshot_6759) that 
 xhtml/profile-chunk.xsl is including chunk-code.xsl instead of 
 profile-chunk-code.xsl like is supossed to be.

It seems that I have fixed it locally. Please try a new snapshot after
it appears on docbook.sf.net/snapshots/

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Setting different levels of chunking within one document

2007-03-11 Thread Jirka Kosek
Jana Volencová wrote:

 1.Default chunking.

 Chunking controlled by just the parameter chunk.section.depth does
 not work the way I would expect: sections on the same level do not
 get chunked the same.

 That illustrates the comparison between Section A1.2.2.2 and Section
 A2.2.2.2 and in my Sample.chm. The attached Issue1.zip file contains
 also my customization files and the source XML file. The output was
 generated using the commands:

You have to use chunk.first.sections=1 parameter to get consistent
chunking. Please note that this could generate a lot of pages with title
only -- each nested section will be placed to separate file even if this
is first section of its parent.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] HTML Indexes

2007-03-08 Thread Jirka Kosek
Simon Kennedy wrote:
 Can anybody with knowledge of the HTML autoidx.xsl code give me a quick
 overview of the steps the stylesheet goes through to produce the index.
 I'm trying to get my head around the code and I feel like the answers
 within reach but at the same time a long way away.

First part of the following article describes some parts of autoidx.xsl
code:

http://www.idealliance.org/proceedings/xml04/papers/77/xslindex.html

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] wrap-option question

2007-03-06 Thread Jirka Kosek
Kari Bourgeois wrote:
 I am generating a PDF using XEP and 1.69 of the stylesheet and have
 added the following to my customization layer:
 
  xsl:attribute-set name=monospace.verbatim.properties
use-attribute-sets=verbatim.properties monospace.properties
xsl:attribute name=wrap-optionwrap/xsl:attribute
xsl:attribute name=hyphenation-character\/xsl:attribute
/xsl:attribute-set
 
 However, in some cases, rather than wrapping the text, it tends to
 shrink the text or tighten it up rather than wrapping...any ideas
 what's causing this?

Do you have hyphenate.verbatim enabled?

http://docbook.sourceforge.net/release/xsl/current/doc/fo/hyphenate.verbatim.html

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] Better-looking DocBook XSL-FO stylesheets?

2007-03-05 Thread Jirka Kosek
Hendy Irawan wrote:

 I've been searching for better-looking XSL stylesheets (like those
 used by
 commercial publishers), but haven't found any.

But each publisher has different style because each graphic designer has
different opinion about good book design. You can hardly create
something what will satisfy anyone. Stylesheets thus generate quite
plain output which is easy to customize.

 I wonder if there is already work on producing [open-source] customized
 stylesheets from the official DocBook XSL so that people will have more fun
 writing their books. :-)

I suppose that almost each project which is using DocBook and FO for
generating printed output uses more or less customized stylesheets.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature


Re: DOCBOOK-APPS: Re: use.id.as.filename may produce invalid file names

2003-03-17 Thread Jirka Kosek
Gisbert Amm wrote:

 One idea would be a pre-process which would extract all relevant IDs and
 build a mapping of the IDs and the filenames (to avoid clashes among the
 latter, at least). The chunker would get the filenames from this mapping.

This works in stylesheets if you use custom chunking mechanism, which
uses maketoc.xsl. See XSL stylesheets documentation on how to use this
feature.

Jirka

-- 
-
  Jirka Kosek
  e-mail: [EMAIL PROTECTED]
  http://www.kosek.cz


Re: DOCBOOK-APPS: Re: use.id.as.filename may produce invalid filenames

2003-03-17 Thread Jirka Kosek
Gisbert Amm wrote:

   One idea would be a pre-process which would extract all
  relevant IDs and
   build a mapping of the IDs and the filenames (to avoid
  clashes among the
   latter, at least). The chunker would get the filenames from
  this mapping.
...
 Editing some file by hand every time I add some chapter is no option for me.
 
 As far as I understand, maketoc.xsl uses the same template to process the
 filenames as chunk-common.xsl (xsl:template match=*
 mode=recursive-chunk-filename), so it would just get the IDs as they are
 and not *really* be the intended preprocessing. But I may get it wrong.

You can use ?dbhtml filename=yourfilename.html? PI in ToC file to
manually assign filenames to each chunk. This works as mapping from IDs
to filenames which you were talking about in one of previous post.

Jirka

-- 
-
  Jirka Kosek
  e-mail: [EMAIL PROTECTED]
  http://www.kosek.cz


Re: DOCBOOK-APPS: bibliography entry for web-resources

2003-03-16 Thread Jirka Kosek
Jens Skripczynski wrote:

 How would you list a web-ressource in the bibliography ?
 (On most pages it is hard to find out the usual data like
 copyright, holder, author...).
 
   
   biblioentry id=gurps-athas
 authorsurname[EMAIL PROTECTED]/surname/author
 title id=gurps-athas.title
ulink
 url=http://www.secretmasters.net/wrathchild/darksun/;GURPS Athas
   (GURPS Dark Sun)/ulink/title
   /biblioentry
   
 
 Does not look too good.

I'm adding URL as part of releaseinfo inside biblioentry:

biblioentry
  ...
  releaseinfoURL: ulink
url=http://...;http://.../ulink/releaseinfo
/biblioentry

Jirka

-- 
-
  Jirka Kosek
  e-mail: [EMAIL PROTECTED]
  http://www.kosek.cz


Re: DOCBOOK-APPS: how-to make an index using xsl 1.60

2003-03-10 Thread Jirka Kosek
Jens Skripczynski wrote:

 How can i automatically construct an index using 'indexterm'  with xalan ?

Put empty index/ element in a place where index should occur.

-- 
-
  Jirka Kosek
  e-mail: [EMAIL PROTECTED]
  http://www.kosek.cz


<    1   2   3   4   5   6   7   >