Results 1 to 2 of 2
  1. #1
    nehap8 is offline Member
    Join Date
    Oct 2011
    Posts
    1
    Rep Power
    0

    Default Transformer.transform() method with SGML files

    I have a SGML file which I am trying to convert to a Html using an XSLT. I tried to do the conversion using the Transformer.transform() method of java, but I get parser errors.

    My understanding is transform method doesn't work with SGML files hence I am getting parser errors, please correct me if I am wrong.

    Also is there something else in java for applying XSLT on SGML files.

    Thanks,
    Neha

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,656
    Blog Entries
    7
    Rep Power
    21

    Default Re: Transformer.transform() method with SGML files

    As far as I remember, SGML isn't XML, it's far more complicated and I can imagine that an XML parser chokes on it ... I don't know of any SGML parsers for Java (but Google might prove me wrong).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. transformer skipping file
    By twfurst in forum XML
    Replies: 0
    Last Post: 04-07-2011, 04:41 PM
  2. How to read SGML files using Java
    By priyanka588 in forum New To Java
    Replies: 3
    Last Post: 02-23-2011, 05:39 PM
  3. How to read SGML files using Java
    By priyanka588 in forum NetBeans
    Replies: 0
    Last Post: 02-23-2011, 01:59 PM
  4. How to read SGML files using Java
    By priyanka588 in forum Advanced Java
    Replies: 0
    Last Post: 02-23-2011, 01:54 PM
  5. how to solve transformer exception
    By java_arc in forum Advanced Java
    Replies: 1
    Last Post: 04-19-2008, 12:46 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
  •