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

2009-05-27 Thread Johan Persson
I'm trying to understand jpw to include some greek characters in a docbook v5 
article but I fail to  understand how to enable the Greek Letters Character 
Entities. 

The docbook guide says to specify the Greek Letters Character Entities 
(%isogrk1;) 

Q1: Where/how should this parameter be specified so I can reference the Greek 
character as entities in the text? 

If I read the XSL guide it says - and I quote:

The DocBook DTD defines the character entities that make it easy to add
special characters to your XML files. To enter a copyright symbol, for 
example, it is easier to remember a name like copy; than the equivalent
#x00A9; Unicode entity. 

Depending on the source for your DTD download, the files that
define the character entity names may not be included. They are on the OASIS
website under http://www.oasis-open.org/docbook/xmlcharent/index.shtml. Create
a directory named ent in the directory where the DocBook DTD files are, and
extract the entity files into ent. The DTD will find them in that location
because it has references that look like ent/iso-amsa.ent.

But I still fail to understand how I can instruct (for example) xsltproc to 
recognize these additional entities. Even using the raw unicode fails since
xsltporc interprets that as an entity (i.e. #0903;) Since ENTITY is not really 
cosher in db5 the above explanation does not seem to apply anyway.

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

/Johan


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


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

2009-05-27 Thread Johan Persson
Thanks !!

Adding a 

!DOCTYPE book [
!ENTITY % isogrk1 SYSTEM http://www.w3.org/2003/entities/iso8879/isogrk1.ent;
%isogrk1;
]

Made it possible to reference the basic Greek characters without having to look 
up (and remembering) all unicode entities.

/Johan

On the 2009-05-27 you wrote:
 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
 --
 
 


[docbook-apps] Missing Text in Nested Lists

2009-05-27 Thread Youliang Cheong
Hi,

I have been using DocBook XSL stylesheets in conjunction with AsciiDoc to 
create html files.  AsciiDoc might produce something like the attached XML file 
(error.xml), which contains a nested list.  However, when I apply stylesheets 
to it, some text disappears as indicated below.

1. List Item #1.
2. List Item #2. -- THIS ITEM DISAPPEARS
   a. Nested List Item #1.
   b. Nested List Item #2.
   c. Nested List Item #3.
3. List Item #3.

I have been using the following command:
 xsltproc -o error.html DOCBOOK_DIR/xhtml/docbook.xsl error.xml
where DOCBOOK_DIR is the DocBook installation directory for docbook-xsl-1.75.0.

Can someone explain what's wrong?


Mitchell
?xml version=1.0 encoding=UTF-8?
!DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;

article lang=en
articleinfo
titleNested Lists Error/title
/articleinfo

orderedlist numeration=arabic
listitem
simpara
List item #1.
/simpara
/listitem

listitem
simpara
List item #2 (this text disappears).
/simpara
orderedlist numeration=loweralpha
listitem
simpara
Nested list item #1.
/simpara
/listitem
listitem
simpara
Nested list item #2.
/simpara
/listitem
listitem
simpara
Nested list item #3.
/simpara
/listitem
/orderedlist
/listitem

listitem
simpara
List item #3
/simpara
/listitem
/orderedlist

/article

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Re: [docbook-apps] Missing Text in Nested Lists

2009-05-27 Thread Keith Fahlgren
On Wed, May 27, 2009 at 2:30 PM, Youliang Cheong
tc...@interchange.ubc.ca wrote:
 I have been using the following command:
 xsltproc -o error.html DOCBOOK_DIR/xhtml/docbook.xsl error.xml
 where DOCBOOK_DIR is the DocBook installation directory for 
 docbook-xsl-1.75.0.

 Can someone explain what's wrong?

I'm not able to reproduce this. What XHTML output _are_ you seeing?

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Missing Text in Nested Lists

2009-05-27 Thread Keith Fahlgren
On Wed, May 27, 2009 at 3:20 PM, Youliang Cheong
tc...@interchange.ubc.ca wrote:
 I've attached the HTML output.

Sure enough...

I don't know who resolved this bug, but it seems fixed in the SVN
trunk and should be resolved in 1.75.1 (out soon).


Keith

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] ANNOUNCE: DocBook XSL XSL-NS Stylesheets 1.75.1 released

2009-05-27 Thread Keith Fahlgren
Version 1.75.1 of the DocBook XSL  XSL-NS Stylesheets, for processing
DocBook 4 and namespaced (DocBook 5) documents, is now available:

 http://docbook.sf.net/files/xsl/latest

The release notes are included below, and also available online.
The reference docs are available as a separate package, and online.

 http://docbook.sf.net/files/xsl-doc/latest

The following is a list of changes that have been made since the 1.75.0
release.

FO

The following changes have been made to the fo code since the 1.75.0 release.

  ● Keith Fahlgren: block.xsl

Switching to em dash for character before attribution in epigraph;
resolves Bug #2793878

  ● Robert Stayton: lists.xsl

Fixed bug 2789947, id attribute missing on simplelist fo output.

HTML

The following changes have been made to the html code since the 1.75.0 release.

  ● Keith Fahlgren: block.xsl

Switching to em dash for character before attribution in epigraph;
resolves Bug #2793878

  ● Robert Stayton: lists.xsl

Fixed bug 2789678: apply-templates line accidentally deleted.

Epub

The following changes have been made to the epub code since the 1.75.0 release.

  ● Keith Fahlgren: bin/spec/epub_regressions_spec.rb; docbook.xsl

Added regression and fix to correct bug with namespace-prefixed
container elements in META-INF/container.xml ; resolves Issue #2790017

  ● Keith Fahlgren: bin/spec/epub_regressions_spec.rb; bin/spec/files/
onegraphic.xinclude.xml;⋯

Another attempt at flexible named entity and XInclude processing

  ● Keith Fahlgren: bin/lib/docbook.rb

Tweaking solution to Bug #2750442 following regression reported by
Michael Wiedmann.

Params

The following changes have been made to the params code since the 1.75.0
release.

  ● Mauritz Jeanson: highlight.source.xml

Updated documentation to reflect changes made in r8419.

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org