Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [xsl i xml] linki
nieraczek
post
Post #1





Grupa: Zarejestrowani
Postów: 405
Pomógł: 6
Dołączył: 12.01.2007

Ostrzeżenie: (0%)
-----


Mam takie wyświetlanie menu w dokumencie XSL:

  1.  
  2. <div class="menu">
  3.  
  4. <xsl:for-each select="klub1/menu/pozycja">
  5. <br/>
  6. <xsl:value-of select="current()"/>
  7. </xsl:for-each>
  8.  
  9.  
  10. </div>


Menu będzie wyglądać tak:

link1

link2

link3


Tylko jak mogę zrobić te linki w dokumencie XSL? Bo teraz to wyświetla mi po prostu napisy.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
SHARKI
post
Post #2





Grupa: Zarejestrowani
Postów: 42
Pomógł: 1
Dołączył: 29.04.2007

Ostrzeżenie: (0%)
-----


albo tak

  1.  
  2. XSL :
  3.  
  4.  
  5.  
  6.       <div id="menu">
  7.  
  8.            <table>
  9.              <tbody>
  10.                                  
  11.                     <tr>
  12.                     <td width="90" align="center"  class="gor">
  13.      
  14.    
  15.  
  16.                  <xsl:element name="a">
  17.                    <a href='xml3.xml'>
  18.                      <xsl:value-of select="servis/strona1/menu/przyciskan"/>
  19.                    </a>
  20.                  </xsl:element>
  21.                
  22.                
  23.      
  24.    </td>
  25.    </tr>
  26.                  
  27.                     <tr>
  28.                     <td width="90" align="center"  class="gor">
  29.      
  30.    
  31.  
  32.                  <xsl:element name="a">
  33.                    <a href='xml2.xml'>
  34.                      <xsl:value-of select="servis/strona1/menu/przyciskgi"/>
  35.                    </a>
  36.                  </xsl:element>
  37.                
  38.                
  39.      
  40.    </td>
  41.    </tr>
  42.    
  43.                         <tr>
  44.                     <td width="90" align="center"  class="gor">
  45.      
  46.    
  47.  
  48.                  <xsl:element name="a">
  49.                    <a href=' '>
  50.                      <xsl:value-of select="servis/strona1/menu/przyciskko"/>
  51.                    </a>
  52.                  </xsl:element>
  53.                
  54.                
  55.      
  56.    </td>
  57.    </tr>
  58.                  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                
  65.              </tbody>
  66.            </table>
  67.          </div>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.09.2025 - 14:14