开发者

XSLT nowrap and XHTML 1.0 Strict

开发者 https://www.devze.com 2022-12-25 12:49 出处:网络
we have XSLT to transform XML into HTML in XHTML 1.0 Strict in 开发者_StackOverflow中文版XSLT <td colspan=\"3\" nowrap=\"nowrap\">

we have XSLT to transform XML into HTML in XHTML 1.0 Strict

in 开发者_StackOverflow中文版XSLT

<td colspan="3" nowrap="nowrap">

HTML output will be

<td colspan="3" nowrap="nowrap">

however it will failure in XHTML 1.0 Strict check. how XSLT can I generate into

<td colspan="3" nowrap>


nowrap without ="nowrap" would be even more wrong in XHTML. XHTML 1.0 Strict does not have the nowrap attribute at all. Use CSS for layout instead.


<td colspan="3" style="white-space:nowrap;">
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号