List Info

Thread: db5: 1] Admon graphics in fo output : FAILED + 2] Validation + 3] MathML




db5: 1] Admon graphics in fo output : FAILED + 2] Validation + 3] MathML
user name
2006-11-22 06:27:55
Hello Bob,

1] Admon graphics in fo output : FAILED
Directory structure :
-----------------------
fo] ll
total 240
-rw-r--r-- 1 bruno bruno 239581 2006-11-22 10:06 C-howto.fo
lrwxrwxrwx 1 bruno bruno      9 2006-11-22 10:06 images
-> ../admon/
[mer nov 22 brunodebian
~/Travail/DocBook5.0/_out/C-howto/fo] ll ../admon/
total 40
-rw-r--r-- 1 bruno bruno 1039 2006-09-11 19:26 caution.gif
-rwxr-xr-x 1 bruno bruno 1099 2006-09-11 19:26 caution.png
-rw-r--r-- 1 bruno bruno 1081 2006-09-11 19:26 important.gif
-rwxr-xr-x 1 bruno bruno 1142 2006-09-11 19:26 important.png
-rw-r--r-- 1 bruno bruno 1070 2006-09-11 19:26 note.gif
-rw-r--r-- 1 bruno bruno  338 2006-09-11 19:26 note.png
-rw-r--r-- 1 bruno bruno 1029 2006-09-11 19:26 tip.gif
-rw-r--r-- 1 bruno bruno  297 2006-09-11 19:26 tip.png
-rw-r--r-- 1 bruno bruno 1052 2006-09-11 19:26 warning.gif
-rwxr-xr-x 1 bruno bruno 1090 2006-09-11 19:26 warning.png
[mer nov 22 brunodebian
~/Travail/DocBook5.0/_out/C-howto/fo] 
-----------------------

stylesheet (docbook5ns-xsl-1.71.0 other failed ... no
output) :
----------------------
<?xml version="1.0"
encoding="iso-8859-15"?>
<xsl:stylesheet xmlns:mml="http://www.w
3.org/1998/Math/MathML" 
                xmlnsi=&qu
ot;http://www.w3.o
rg/2001/XInclude" 
                xmlnslink=
"http://www.w3.org/
1999/xlink" 
                xmlnssl=&q
uot;http://www
.w3.org/1999/XSL/Transform" 
                xmlns:exsl="http://exslt.org/common
" 
                xmlns:fo="http://www.w3
.org/1999/XSL/Format" 
                xmlns:ng="http://docbook.or
g/docbook-ng" 
                xmlns:db="http://docbook.or
g/ns/docbook" 
                xmlns:d="http://docbook.or
g/ns/docbook" 
exclude-result-prefixes="db ng exsl d"
version="1.0">

<xsl:include 
href="/home/bruno/Travail/DocBook5.0/libs/docbook5ns-xs
l-1.71.0/fo/profile-docbook.xsl"/>

<xsl:param name="d:fop.extensions"
select="'1'"/>

<!-- Papier A4, portrait, style livre, fr, mode non
brouillon, les admon 
graphiques -->
<xsl:param name="d:paper.type"
select="'A4'"/>
<xsl:param name="d:page.orientation"
select="'portrait'"/>
<xsl:param name="d:double.sided"
select="'1'"/>
<xsl:param
name="d:l10n.gentext.default.language"
select="'fr'"/>
<!-- <xsl:param name="d:draft.mode"
select="no"/> -->
<xsl:param name="d:admon.graphics"
select="'1'"/>
<xsl:param
name="d:admon.graphics.extension">png</xsl:p
aram>
<xsl:param
name="d:generated.graphics.path">images/</xs
l:param>
<xsl:param name="d:admon.graphics.path"
select="$d:generated.graphics.path"/>

<xsl:template match="*"
mode="d:admon.graphic.width">
  <xsl:text>24pt</xsl:text>
</xsl:template>

<xsl:template
match="equation|informalequation|inlineequation"&g
t;
                <xsl:choose>
                        <xsl:when 
xmlns:mml="http://www.w
3.org/1998/Math/MathML" test="mml">
                               
<fo:instream-foreign-object>
                                       
<xsl:apply-templates/>
                               
</fo:instream-foreign-object>
                        </xsl:when>
                        <xsl:otherwise>
                                <xsl:apply-imports/>
                        </xsl:otherwise>
                </xsl:choose>
</xsl:template>
<xsl:param name="d:highlight.source"
select="'1'"/>

<!-- programmlisting extension : text insert +
linenumbering : BAD AVEC 
XSLTPROC ! -->
<xsl:param name="d:use.extensions"
select="'1'"></xsl:param>
<xsl:param name="d:linenumbering.extension"
select="'1'"></xsl:param>
<xsl:param name="d:linenumbering.width"
select="'3'"></xsl:param>
<xsl:param name="d:linenumbering.everyNth"
select="'1'"></xsl:param>

<!-- BODY FONT SIZE : OK -->
<xsl:param
name="d:body.font.master">9</xsl:param>
<xsl:param
name="d:body.font.size">9pt</xsl:param>

<!-- FOOTNOTE FONT SIZE : OK -->
<xsl:param
name="d:footnote.font.size">7pt</xsl:param&g
t;

<!-- MONOSPACE FONT SIZE : OK -->
<xsl:attribute-set
name="d:monospace.verbatim.properties" 
use-attribute-sets="verbatim.properties
monospace.properties">
  <xsl:attribute
name="d:text-align">start</xsl:attribute>
  <xsl:attribute
name="d:font-size">7pt</xsl:attribute>
</xsl:attribute-set>

  <!-- Shade Verbatim Sections such as programlisting and
screen -->
  <xsl:param name="d:shade.verbatim"
select="1"/>

<xsl:attribute-set
name="d:monospace.verbatim.properties">
    <xsl:attribute
name="d:wrap-option">wrap</xsl:attribute>
    <xsl:attribute
name="d:hyphenation-character"></xsl:attrib
ute>
</xsl:attribute-set>

<xsl:param name="d:section.autolabel"
select="1"/>
<xsl:param name="d:hyphenate"
select="'false'"/>

</xsl:stylesheet>
-----------------------

RESULTs :
-----------------------
There : <fo:external-graphic
src="url(images/emacs.png)" width="100%"

height="auto"
content-width="scale-to-fit" 
content-height="scale-to-fit"/></fo:block>
;

BUT : no for ADMON graphics ! If i put 
<xsl:param
name="d:generated.graphics.path">../admon/</
xsl:param> it's 
failed ...

NO Lines numbered, no colors syntaxe in pdf output ...


2] Validation 
/usr/lib/j2sdk1.5-sun/bin/java -Xss512K -jar
../libs/relames-20060319/relames.jar
../libs/docbook-5.0b9/custom_rng.rng 
C-howto.xml

relmes verifier   Copyright(C) Sun Microsystems, Inc. 2001
parsing    ../libs/docbook-5.0b9/custom_rng.rng
/home/bruno/Travail/DocBook5.0/libs/docbook-5.0b9/relaxng.dt
d (No such file or 
directory)
java.io.FileNotFoundException:
/home/bruno/Travail/DocBook5.0/libs/docbook-5.0b9/relaxng.dt
d 
(No such file or directory)
  
10:43file:///home/bruno/Travail/DocBook5.0/libs/docbook-5.
0b9/custom_rng.rng

Does it good ?


3] MathML
I make fop0.92 with : [echo] JAI Support PRESENT ! And I
thought that it was 
good like that!


Best regards,
Bruno


-- 
Celui qui trouve sans chercher est celui qui a longtemps
cherché sans trouver.
Gaston Bachelard

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )