Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364531 - [docbook] table class is not passed through
Summary: [docbook] table class is not passed through
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.6.0   Edit
Assignee: David Green CLA
QA Contact: David Green CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 21:59 EST by Miles Parker CLA
Modified: 2011-11-23 18:09 EST (History)
0 users

See Also:


Attachments
test output (358 bytes, text/html)
2011-11-22 22:11 EST, David Green CLA
no flags Details
test input (28 bytes, text/plain)
2011-11-22 22:12 EST, David Green CLA
no flags Details
mylyn/context/zip (13.52 KB, application/octet-stream)
2011-11-23 18:09 EST, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Parker CLA 2011-11-22 21:59:07 EST
In my reading of mediawiki docs, the following should work:

{|class="foo"
|Some text
|}

Producing something like:

<table class="foo">
..

But that doesn't appear to be happening.
Comment 1 David Green CLA 2011-11-22 22:11:49 EST
Created attachment 207395 [details]
test output
Comment 2 David Green CLA 2011-11-22 22:12:12 EST
Created attachment 207396 [details]
test input
Comment 3 David Green CLA 2011-11-22 22:13:12 EST
this works for me with the attached input. (see atttached output)

Please reopen if you find a way to reproduce.
Comment 4 Miles Parker CLA 2011-11-22 23:25:34 EST
OK, it's actually a docbook fail. I'm doing mediawiki2docbook and docbook2eclipsehelp and I only looked at the eclipsehelp. Should have checked that first. This is what I get in docbook:

		<informaltable>
			<tr>
				<td>Some text</td>
			</tr>
		</informaltable>
Comment 5 David Green CLA 2011-11-23 18:09:25 EST
According to the "DocBook reference":http://www.docbook.org/tdg5/en/html/ref-elements.html#common.attributes and "DocBook XSL: The Complete Guide":http://www.sagehill.net/docbookxsl/UsingCSS.html#CustomClass the right attribute to use is @role@.

I've pushed a change which will now result in the following docbook:

bc. 
<informaltable role="foo">
<tr>
<td>Some text</td>
</tr>
</informaltable>

Depending on how the DocBook is used to generate HTML, you may need to configure your document processing chain.  If using DocBook XSL, the following reference should help: http://www.sagehill.net/docbookxsl/UsingCSS.html#CustomClass
Comment 6 David Green CLA 2011-11-23 18:09:28 EST
Created attachment 207451 [details]
mylyn/context/zip