[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] [QUESTION] Generating XHTML 1.1 from docbook-xsl
Hi Bob > You can copy the template named 'language.attribute' from common/l10n.xsl > to your customization layer and change this line [snip] That worked fine thanks. > For the width attribute in the admonition td, you'll have to copy the > template named 'graphical.admonition' from xhtml/admon.xsl to your > customization layer and remove the width attribute. That did not go so well. The mere copying of the graphical.admonition section into my customisation layer changed the behaviour: the image disappeared and I got two extra XHTML validation errors. The relevant snippet of XHTML code is: ============================================================================== <div xmlns="http://www.w3.org/TR/xhtml" class="important" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Important"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Important]" src="/images/docbook/important.png"/> </td> <th align="left"/> </tr> <tr> <td align="left" valign="top"> <p xmlns="http://www.w3.org/1999/xhtml"> Throughout this website, the navigation bar will remain fixed in position when you scroll down the page <span class="emphasis"><em>if</em></span> you use a browser with good support for Cascading Style Sheets, such as Firefox or Internet Explorer v7. </p> </td> </tr> </table> </div> ============================================================================== ============================================================================== The new errors are: Error /Line 47 column 42/: value of fixed attribute "xmlns" not equal to default.| ...div xmlns="http://www.w3.org/TR/xhtml*"* class="important"|| style="margin-left: |Error /Line 47 column 110/: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag.| ...in-left: 0.5in; margin-right: 0.5in;"*> *<table border="0" summary="Important"> |============================================================================== I do not see how copying some of the XSL unchanged into my customisation layer could change the behaviour and am worried I am missing something obvious :-) > I think setting a parameter for XHTML 1.1 might be a good thing, > and would make a fine feature request. But feature requests made on this > mailing list get forgotten, so I would suggest you request it in the > SourceForge project for DocBook. Done. http://sourceforge.net/tracker/index.php?func=detail&aid=1619359&group_id=21935&atid=373750 Regards Kevin
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]