OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Assigning Default Role Values to Elements


>> I understand that you want to propagate role values to class attributes in the HTML, but I'm not clear on what you mean by assigning default role values to elements.  That is usually a function of the DTD.  Can you give an example of what you mean? <<

 

 

Given the enterprise CSS class selectors:

--------------------------------------------------

.foo-section-header {

      padding: 3px;

      background-color: #6B1424;

      color: #FFFFFF;

      font-weight: bold;

      font-size: 115%;

}

.foo-paragraph-header {

      font-weight: bold;

      color: #6B1424;

} 

.foo-emphasis {

      font-style: italic;

}

.foo-bold {

      font-weight: bold;

}

------------------------------------------------

 

the following DocBook element roles would be applied:

 

----------------------------------------------------------------------------------------------

<chapter><phrase role=”foo-section-header”>Foo</phrase></chapter>

<sect1><phrase role=”foo-paragraph-header”>Foo</phrase></sect1>

<sect2><phrase role=”foo-paragraph-header”>Foo</phrase></sect2>

<sect3><phrase role=”foo-paragraph-header”>Foo</phrase></sect3>

<sect4><phrase role=”foo-paragraph-header”>Foo</phrase></sect4>

<sect5><phrase role=”foo-paragraph-header”>Foo</phrase></sect5>

<emphasis role=”foo-emphasis”>foo</emphasis>

<emphasis role=”foo-bold”>foo</emphasis>

----------------------------------------------------------------------------------------------

 

What I overlooked is that propagates.style is not supported in chapter or section titles.

 

So the question regarding default roles would apply to elements of which propagates.style is supported in the stylesheets.

 

Would chapter-title.propagates.style and section-title.propagates.style be considered a viable feature request in forthcoming stylesheet releases?

 

As most other common DocBook elements support propagates.style, the aforementioned request combined with default element role inclusions and values would result in integrated presentation-layer conformance; the holy grail of content publishing ‘round here.

 

Ray

 

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]