![]() | |
| |||||||
| Home | Register | Blogs | FAQ | Members List | Calendar | Downloads | Arcade | Mark Forums Read |
| Web Development Java/PHP/Perl/ASP and more |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| горно-предгорной жизни =) | XSL question I have XSL file where: Code:
....
<xsl:variable name="PK" select="@primary-index" />
<xsl:variable name="TABLE-NAME" select="@name" />
<xsl:variable name="TITLE" select="@title" />
<xsl:variable name="ROWS" select="@rows-per-page" />
<div id="top-nav">
<div class="inner">
<ul>
<li id="hide-ie" class="drop-li"><a class="item3 drop" href="#nogo">
<xsl:value-of select="@title" />
</a>
<xsl:comment><![CDATA[[if lte IE 6]>
<li class="drop-li"><a class="item3 drop" href="#nogo">
<xsl:value-of select="@title" />
<TABLE>
<TBODY>
<TR>
<TD>
<![endif]]]></xsl:comment>
<ul>
<li onclick="List.init('{$TABLE-NAME}', {$ROWS},'{$TITLE}')"><a href="#nogo" class="item3a">List</a></li>
... For now It print/output the result of the first <xsl:value-of select="@title" />, but not second one. Is there any solution? |
| | |
| | #4 |
| горно-предгорной жизни =) | priv Lil jan, ne, vse tegi zakrivayutca, ya tolko postnul tot chast gde ispolzuyu etot <xsl:value-of select="@title" /> i testuyu v IE 6, sam eto pisal (dlya IE) ... i rabotaet, tolko vot vo vtoroi raz rezultat <xsl:value-of select="@title" /> ne pishet. Ya vot dumayu XSL smotrit, chto odin raz uje "pisal" znacheine <xsl:value-of select="@title" />, to vo vtoroi raz prosto ignariruet. Vot i xotelos uznat', est' li kakie to varianti? naprimer v PHP est include_once i include include_once - tolko odin raz include - skolko mojesh i xochesh ![]() |
| | |
| | #6 | |
| forever blowing winds | Gor Vardanyan Quote:
Может, дело в том, что как-то этот вызов у тебя попадает в xsl:comment. Попробуй закрыть xsl:comment вот так: Code: <xsl:comment><![CDATA[[if lte IE 6]></xsl:comment> (the rest of the code) <xsl:comment><![endif]]]></xsl:comment>
__________________ Каждому воздается по вере его. | |
| | |
| | #7 |
| forever blowing winds | Он же тестит в 6-ом? A lte вроде значит less than or equal.
__________________ Каждому воздается по вере его. |
| | |
| | #8 |
| горно-предгорной жизни =) | Yes, you are right FYI <!--[if lte IE 6]> According to the conditional comment this is Internet Explorer lower or equal to 6 <![endif]-->
__________________ ![]() "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." Albert Einstein Last edited by Gor Vardanyan : Apr 18, 2007 at 19:28. |
| | |
| | #10 | |||
| горно-предгорной жизни =) | Quote:
Quote:
so, the solution I find (of course with your help) is ![]() Quote:
| |||
| | |
| | #12 |
| горно-предгорной жизни =) | eto uje "hide" delayu s pomoshu CSS kokda ne IE browser |
| | |
| | #13 |
| forever blowing winds | Фактически, ты в трех местах проверяешь, ИЕ6 у тебя или нет ? Наверное, можно что-нибудь пооптимальнее придумать. Хотя у меня идей нет ![]()
__________________ Каждому воздается по вере его. |
| | |
| | #14 | |
| горно-предгорной жизни =) | Quote:
![]() | |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 3DS Max 7 Quick Question | Silver | Software | 1 | Jul 15, 2006 10:24 |
| question | Guess | Web sites | 2 | Mar 26, 2006 23:24 |
| A question of mind... | Red Stone | English Only | 4 | Oct 19, 2005 17:40 |