Using DITA-OT 1.3.1
ePublisher 9.3 is shipped with DITA-OT 1.2.2.
NOTE: |
Complete support for all features of DITA-OT 1.3.1 is not included in this article. |
Master Project Setup
As with any ePublisher modification, start with a working Master Project.
- Install the new "dita-ot" in the project "Helpers" folder.
Download DITA-OT1.3.1_bin.zip.
- Create a "Formats" folder in the project directory.
- Create a "Helpers" folder inside the newly created "Formats" folder.
Extract DITA-OT1.3.1_bin.zip into the "Helpers" folder.
- Rename "DITA-OT1.3.1" to "dita-ot".
Delete DITA-OT1.3.1_bin.zip.
- Create an Adapter override to enable DITA-OT 1.3.1 operation.
- Inside the "Formats" folder of the project directory, create the following hierarchy:
<project directory>
Adapters
xml
scripts
dita
xsl- NOTE: This hierarchy matches the hierarchy found in the ePublisher 9.3 application installation directory.
Download batch-files.zip to the "xsl" directory.
Extract batch-files.zip to get "batch-files.xsl".
Delete batch-files.zip.
Test Master Project
At this point, you should be able to add DITA content to your project and it will be processed with DITA-OT 1.3.1 instead of the default DITA-OT 1.2.2.
Create Stationery
To distribute your changes for use by Express and AutoMap users, perform the following actions:
- Update ePublisher Stationery normally.
In your Master Project, select File --> Save as Stationery.
- Specify a location and name for your new stationery.
- Insert your "Adapters" and "Helpers" overrides manually.
- Locate and open your newly created Stationery.
- Open the "Formats" folder.
- Copy your "Adapters" and "Helpers" folders from your Master Project into your Stationery's "Formats" folder. NOTE: This step must be performed manually as we do not wish to include all possible helper programs.
Use It
All Express and AutoMap projects tied to this new version of the Stationery will be processed with DITA-OT 1.3.1 following project synchronization.
Target Overrides
Following the instructions above, it is also possible to override DITA-OT versions on a target by target basis. Simply replace reference to the "Formats" folder in the above instructions with a specific target folder name, such as "Targets\DITA-OT_1.3.1".
Such a configuration would allow a single project to generate the same source content using different versions of the DITA-OT.
--> -->
ValueError
list.remove(x): x not in list
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0x5e02310>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function do_show at 0x117a370>
- self = <MoinMoin.request.request_wsgi.Request object at 0x5e02310>
- self.page = <MoinMoin.Page.Page object at 0x5e02fd0>
- self.page.page_name = u'HelpCenter/Tips/DITA/Release Specific/ePublisher 9.3/Using_DITA-OT_1.3.1'
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'HelpCenter/Tips/DITA/Release Specific/ePublisher 9.3/Using_DITA-OT_1.3.1', request=<MoinMoin.request.request_wsgi.Request object at 0x5e02310>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x5e02c10>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1199 format_args=pi['formatargs'],
- 1200 do_cache=do_cache,
- 1201 start_line=pi['lines'])
- 1202
- 1203 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x5f7a918>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 1}
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x5e02c10>, request=<MoinMoin.request.request_wsgi.Request object at 0x5e02310>, body=u'= Using DITA-OT 1.3.1 =\n\nePublisher 9.3 is shipp...s=80, articleview=1, tablewidth=500, notify=1)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 1})
- 1283
- 1284 if not (do_cache and self.canUseCache(Parser)):
- 1285 self.format(parser)
- 1286 else:
- 1287 try:
- self = <MoinMoin.Page.Page object at 0x5e02c10>
- self.format = <bound method Page.format of <MoinMoin.Page.Page object at 0x5e02c10>>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object at 0x5e02c10>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>)
- 1304 def format(self, parser):
- 1305 """ Format and write page content without caching """
- 1306 parser.format(self.formatter)
- 1307
- 1308 def execute(self, request, parser, code):
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>
- parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>>
- self = <MoinMoin.Page.Page object at 0x5e02c10>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x5f83710>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>, formatter=<MoinMoin.formatter.text_html.Formatter instance at 0x5f83710>, inhibit_p=False)
- 1544
- 1545 # Scan line, format and write
- 1546 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1547 self.request.write(formatted_line)
- 1548
- formatted_line = u'<p class="line867"><hr /><p class="line874"> '
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>
- self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>>
- line = u'<<PageComment2(markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1)>> '
- inhibit_p = False
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>, line=u'<<PageComment2(markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1)>> ', inhibit_p=False)
- 1358 self.in_table or self.in_list):
- 1359 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1360 result.append(self.replace(match, inhibit_p))
- 1361 end = match.end()
- 1362 lastpos = end
- result = ['<p class="line867">']
- result.append = <built-in method append of list object at 0x5f83b98>
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>
- self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>>
- match = <_sre.SRE_Match object at 0x74d4e00>
- inhibit_p = False
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>, match=<_sre.SRE_Match object at 0x74d4e00>, inhibit_p=False)
- 1402 # Get replace method and replace hit
- 1403 replace_func = getattr(self, '_%s_repl' % type)
- 1404 result.append(replace_func(hit, match.groupdict()))
- 1405 return ''.join(result)
- 1406 else:
- result = []
- result.append = <built-in method append of list object at 0x5f834b8>
- replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>>
- hit = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
- match = <_sre.SRE_Match object at 0x74d4e00>
- match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0x74d4e00>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>, word=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})
- 1325 if self.macro is None:
- 1326 self.macro = macro.Macro(self)
- 1327 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
- 1328 _macro_name_repl = _macro_repl
- 1329 _macro_args_repl = _macro_repl
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f9b350>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x5f83710>
- self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_html.Formatter instance at 0x5f83710>>
- self.macro = <MoinMoin.macro.Macro instance at 0x5f839e0>
- macro_name = u'PageComment2'
- macro_args = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
- markup undefined
- groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
- groups.get = <built-in method get of dict object at 0x5db0a50>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x5f83710>, macro_obj=<MoinMoin.macro.Macro instance at 0x5f839e0>, name=u'PageComment2', args=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1', markup=u'<<PageComment2(markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1)>>')
- 308 # call the macro
- 309 try:
- 310 return macro_obj.execute(name, args)
- 311 except ImportError, err:
- 312 errmsg = unicode(err)
- macro_obj = <MoinMoin.macro.Macro instance at 0x5f839e0>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x5f839e0>>
- name = u'PageComment2'
- args = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x5f839e0>, macro_name=u'PageComment2', args=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1')
- 126 else:
- 127 raise ImportError("Cannot load macro %s" % macro_name)
- 128 return execute(self, args)
- 129
- 130 def _m_lang(self, text):
- execute = <function execute at 0x4777ab0>
- self = <MoinMoin.macro.Macro instance at 0x5f839e0>
- args = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
/Volumes/Projects-Wiki/wiki.wiki/data/plugin/macro/PageComment2.py in execute (macro=<MoinMoin.macro.Macro instance at 0x5f839e0>, args=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1')
/Volumes/Projects-Wiki/wiki.wiki/data/plugin/macro/PageComment2.py in setglobalvalues (macro=<MoinMoin.macro.Macro instance at 0x5f839e0>)
ValueError
list.remove(x): x not in list
- args = ('list.remove(x): x not in list',)
- message = 'list.remove(x): x not in list'
System Details
- Date: Wed, 23 May 2012 17:48:18 +0000
- Platform: Darwin hulahut 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
- Python: Python 2.5.4 (/webworks/wiki/bin/python)
- MoinMoin: Release 1.8.4 (release)
