xsl 이 ie 는 정상인데 firefox 에
Posted: 2004 11 29 11:31 47
안녕하세요
xsl 이 ie 에서는 정상으로 보이는데 firefox 에서는 이상하게 보입니다
어떤게 잘못 된건지 봐주시면 감사하겠습니다
----------------------------------------------------------------------------
list.xml
----------------------------------------------------------------------------
<?xml version="1.0" encoding="euc-kr"?>
<?xml-stylesheet type='text/xsl' href='./list.xsl'?>
<praise>
<item caption="aaa?" title="aaaaa"/>
<item caption="bbb " title="bbbbb"/>
<item caption="ccc ccc" title="ccccc" />
<item caption="ddddd" title="ddddd" />
<item caption="eeeee" title="eeeeeee" />
<item caption="fffffff~" title="ggggg" />
<item caption="hhhhhh" title="hhhhhhh" />
<item caption="iiiii" title="jjjjjjj" />
<item caption="aaa?" title="aaaaa"/>
<item caption="bbb " title="bbbbb"/>
<item caption="ccc ccc" title="ccccc" />
<item caption="ddddd" title="ddddd" />
<item caption="eeeee" title="eeeeeee" />
<item caption="fffffff~" title="ggggg" />
<item caption="hhhhhh" title="hhhhhhh" />
<item caption="iiiii" title="jjjjjjj" />
</praise>
----------------------------------------------------------------------------
list.xsl
----------------------------------------------------------------------------
<?xml version="1.0" encoding="euc-kr"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="euc-kr"/>
<xsl:template match="/praise">
<table cellpadding="2" cellspacing="1" border="1" width="100%">
<xsl:for-each select="//item">
<xsl:if test="position() mod 3 = 1">
<xsl:text disable-output-escaping="yes"><tr></xsl:text>
</xsl:if>
<td valign="bottom" class="td18" align="center"><br/>
<xsl:value-of select="@caption" disable-output-escaping="yes"/>
</td>
<xsl:if test="position() mod 3 = 0 or position()=last()">
<xsl:text disable-output-escaping="yes"></tr></xsl:text>
</xsl:if>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
----------------------------------------------------------------------------
소스는 위에 꺼 파일로 저장 하셔서 보시면 되고요
ie 에서는 tr 값이 잘 되는데
firefox 에서는 tr 값이 text 로 나옵니다
그래서 tr 적용도 안 되고요
답변 부탁드립니다
xsl 이 ie 에서는 정상으로 보이는데 firefox 에서는 이상하게 보입니다
어떤게 잘못 된건지 봐주시면 감사하겠습니다
----------------------------------------------------------------------------
list.xml
----------------------------------------------------------------------------
<?xml version="1.0" encoding="euc-kr"?>
<?xml-stylesheet type='text/xsl' href='./list.xsl'?>
<praise>
<item caption="aaa?" title="aaaaa"/>
<item caption="bbb " title="bbbbb"/>
<item caption="ccc ccc" title="ccccc" />
<item caption="ddddd" title="ddddd" />
<item caption="eeeee" title="eeeeeee" />
<item caption="fffffff~" title="ggggg" />
<item caption="hhhhhh" title="hhhhhhh" />
<item caption="iiiii" title="jjjjjjj" />
<item caption="aaa?" title="aaaaa"/>
<item caption="bbb " title="bbbbb"/>
<item caption="ccc ccc" title="ccccc" />
<item caption="ddddd" title="ddddd" />
<item caption="eeeee" title="eeeeeee" />
<item caption="fffffff~" title="ggggg" />
<item caption="hhhhhh" title="hhhhhhh" />
<item caption="iiiii" title="jjjjjjj" />
</praise>
----------------------------------------------------------------------------
list.xsl
----------------------------------------------------------------------------
<?xml version="1.0" encoding="euc-kr"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="euc-kr"/>
<xsl:template match="/praise">
<table cellpadding="2" cellspacing="1" border="1" width="100%">
<xsl:for-each select="//item">
<xsl:if test="position() mod 3 = 1">
<xsl:text disable-output-escaping="yes"><tr></xsl:text>
</xsl:if>
<td valign="bottom" class="td18" align="center"><br/>
<xsl:value-of select="@caption" disable-output-escaping="yes"/>
</td>
<xsl:if test="position() mod 3 = 0 or position()=last()">
<xsl:text disable-output-escaping="yes"></tr></xsl:text>
</xsl:if>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
----------------------------------------------------------------------------
소스는 위에 꺼 파일로 저장 하셔서 보시면 되고요
ie 에서는 tr 값이 잘 되는데
firefox 에서는 tr 값이 text 로 나옵니다
그래서 tr 적용도 안 되고요
답변 부탁드립니다