Results 1 to 2 of 2
  1. #1
    ketvaid1 is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default Convert xml to html using ant build

    Hi,

    i am trying to obtain html fil from xml files using ant build in eclipse.
    I am using docbook xml 1.74.0..
    When i try and build build.xml file it gives me error in xsl file present in docbook..
    The error is as follows,

    [xslt] : Error! Syntax error in '* or $generate.index != 0'.
    [xslt] : Error! file:/C:/Eclipse/eclipse-rcp-ganymede-SR1-win32/eclipse/New%20Folder/newfoldertrial/docbook-xsl-1.74.0/html/autotoc.xsl: line 373: Error parsing XPath expression '* or $generate.index != 0'.
    [xslt] : Error! file:/C:/Eclipse/eclipse-rcp-ganymede-SR1-win32/eclipse/New%20Folder/newfoldertrial/docbook-xsl-1.74.0/html/autotoc.xsl: line 373: Required attribute 'test' is missing.

    Can anyone resolve this?

  2. #2
    vogella is offline Member
    Join Date
    Aug 2009
    Location
    Heidelberg
    Posts
    47
    Rep Power
    0

    Default

    Hi,

    most likely the standard Java XSLT parser gives you the problem. Switch to xalan.

    I describe this here in my Docbook tutorial: Docbook with Eclipse.

    Cheers, Lars

Similar Threads

  1. ant build
    By sardare in forum New To Java
    Replies: 4
    Last Post: 04-02-2009, 11:02 PM
  2. How can I include a html file in html textarea?
    By surya_dks in forum New To Java
    Replies: 2
    Last Post: 10-04-2008, 08:20 AM
  3. convert html page to pdf
    By MarkWilson in forum Advanced Java
    Replies: 2
    Last Post: 09-03-2008, 12:14 AM
  4. convert html to text using java
    By praveen@asia-mail.com in forum New To Java
    Replies: 1
    Last Post: 11-14-2007, 03:08 PM
  5. convert html to plain text
    By vissu007 in forum New To Java
    Replies: 3
    Last Post: 07-07-2007, 03:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •