Package: xmlto
Version: 0.0.20-5
Severity: normal

xmlto does not support external files.

Eg:
$ cat test.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"; >
<article>
  <section id="section_Description">
    <title>Description</title>
<mediaobject  id="MousePicture">
  <imageobject>
    <imagedata  format="SVG"  fileref="test.svg"/>
  </imageobject>
</mediaobject>
  </section>
</article>

with:
$ cat test.svg:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg"; width="12cm" height="12cm">
   <g style="fill-opacity:0.7; stroke:black; stroke-width:0.1cm;">
     <circle cx="6cm" cy="2cm" r="100" style="fill:red;"
                     transform="translate(0,50)" />
     <circle cx="6cm" cy="2cm" r="100" style="fill:blue;"
                     transform="translate(70,150)" />
     <circle cx="6cm" cy="2cm" r="100" style="fill:green;"
                     transform="translate(-70,150)"/>
   </g>
</svg>


Result in:

$  xmlto -vv --searchpath 
/home/mathieu/Projects/csm/Doc/Specifications/ModelLifeCycle/Sketches  
--with-fop --skip-validation pdf  test.xml      
Source format: docbook / root element: article 
Format script: /usr/share/xmlto/format/docbook/pdf
Convert to XSL-FO
Real stylesheet: 
http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl
Stylesheet: /tmp/xmlto-xsl.GlrnYY
xsltproc  --nonet --xinclude --path 
"/home/mathieu/Projects/csm/Doc/Specifications/ModelLifeCycle/Sketches"\
 -o "/tmp/xmlto.deBMqo/test.proc" \
 /tmp/xmlto-xsl.GlrnYY \
 
"/home/mathieu/Projects/csm/Doc/Specifications/ModelLifeCycle/Sketches/test.xml"
Making portrait pages on letter paper (215.9mmx279.4mm)
Convert to pdf
Post-process XSL-FO to PDF
[warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java
Feb 8, 2010 5:38:15 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: test.svg
Feb 8, 2010 5:38:15 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with 
'Symbol,normal,400'.
Feb 8, 2010 5:38:15 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 
'ZapfDingbats,normal,400'.
Feb 8, 2010 5:38:15 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en


Thanks

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xmlto depends on:
ii  debianutils         2.30                 Miscellaneous utilities specific t
ii  docbook-xml         4.5-6                standard XML documentation system,
ii  docbook-xsl         1.75.2+dfsg-3        stylesheets for processing DocBook
ii  libc6               2.10.2-2             GNU C Library: Shared libraries
ii  libxml2-utils       2.6.32.dfsg-5+lenny1 XML utilities
ii  sgml-base           1.26                 SGML infrastructure and SGML catal
ii  xsltproc            1.1.24-2             XSLT command line processor

Versions of packages xmlto recommends:
ii  libpaper-utils               1.1.23+nmu1 library for handling paper charact

Versions of packages xmlto suggests:
ii  fop                       1:0.95.dfsg-7  XML to PDF Translator
ii  links                     2.1pre37-1.1   Web browser running in text mode
ii  lynx                      2.8.7dev9-2.1  Text-mode WWW Browser (transitiona
ii  w3m                       0.5.2-2+b1     WWW browsable pager with excellent
ii  xmltex                    1.9.debian.1-1 TeX package for processing XML fil

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to