Hi all,

As discussed some time ago, before processing a DocBook document, one
should first download the stylesheet with the <get> task:


<target name="build-html">
  <get
    src="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl";
    dest="chunk.xsl">
    <proxy host="proxy.domain.com" port="8080">
      <credentials username="user" password="password" />
    </proxy>
  </get>
  <style style="chunk.xsl" in="myDocument.xml" />
</target>


Well, assuming we have a proxy server, the target above works just
partially... The <get> task isn't a problem at all since we can
specify the proxy settings, but the <style> task fails because
there is no way to specify them... Do you remember? DocBook documents
have to be validated against the DocBook DTD:


<?xml version="1.0" encoding="utf-8"?>

<!ENTITY % docbook PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; [
  <!ENTITY introduction SYSTEM "introduction.xml">
  ...
  <!ENTITY glossary SYSTEM "glossary.xml">
]>

<book id="myBook" lang="&language;">
  ...
</book>


To solve this problem we should be also able to set proxy
settings in the <style> task. Furthermore, doing so we don't
need anymore to first download the stylesheet with the <get>
task.

Another interesting feature world be the ability to
specify a XML catalog in the <style> task in order to
provide a mapping from generic addresses to specific
local directories on a given machine...

j3d.

----------------------------------------
Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:    www.agamura.com
----------------------------------------


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to