Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364531

Summary: [docbook] table class is not passed through
Product: z_Archived Reporter: Miles Parker <milesparker>
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED FIXED QA Contact: David Green <greensopinion>
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 1.6.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
test output
none
test input
none
mylyn/context/zip none

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