Changeset 44

Show
Ignore:
Timestamp:
Mon Jun 27 07:51:37 2005
Author:
fredrikc
Message:

Added so xliff and skeleton has version attributes and documenttype decalrations.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/transolution/filters/sgml2xliff.py

    r42 r44  
    4 4 from tag_parser import TokenParser,Handler  
    5 5 from xliff_builders import *  
    6   from transolution.xmlutils import createNodeAttr,NodeCreator  
      6 from transolution.xmlutils import createNodeAttr,NodeCreator,createDocument  
    6 6 from misc import unescapeCharRefEnt,unescapeHtmlEnt,unescape  
    7 7 from transolution.path_mod import path  
     
    513 513         sklfile = file(skl_filename,'w')  
    514 514  
    515           xlfdoc = xliff_builders.dom_impl.createDocument(xliff_builders.EMPTY_NAMESPACE, "xliff", None)  
    516           skldoc = xliff_builders.dom_impl.createDocument(xliff_builders.EMPTY_NAMESPACE, "tt-xliff-skl", None)  
      515         xlfdoc = createDocument('xliff', publicId="-//XLIFF//DTD XLIFF//EN",systemId="http://www.oasis-open.org/committees/xliff/documents/xliff.dtd")  
      516         skldoc = createDocument('tt-xliff-skl', publicId="-//SUN-TRANSTECH//DTD XLIFF SKELETON//EN", systemId="http://www.ireland/~timf/tt-xliff-skl.dtd")  
      517         createNodeAttr(xlfdoc.documentElement ,'version','1.1')  
      518         createNodeAttr(skldoc.documentElement ,'version','1.0')  
    517 519  
    518 520