Jsf 使用条件时如何声明XML命名空间<;html>;标签

Jsf 使用条件时如何声明XML命名空间<;html>;标签,jsf,facelets,conditional-comments,omnifaces,Jsf,Facelets,Conditional Comments,Omnifaces,我试图使用JSF实现这一点: <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js

我试图使用JSF实现这一点:

<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->

我发现了使用omnifaces o:conditionalComment标记的示例,但我的问题是omnifaces的声明是html声明的一部分

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:o="http://omnifaces.org/ui"
    xmlns:of="http://omnifaces.org/functions" >

您可以在
中声明整个XML名称空间

<f:view xmlns...>
    <html>...</html>
</f:view>

...
看一看