Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> W Pliku XSL dodaj odsyłacz do pliku CSS, W Pliku XSL dodaj odsyłacz do pliku CSS
Donatovsky
post 4.12.2016, 16:24:42
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 4.12.2016

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


Witam. Prosze was o pomoc, mianowicie mam takie zadanie.
"W Pliku XSL umieść odsyłacz do pliku CSS "

Jak to zrobić pomocy

Ten post edytował Donatovsky 4.12.2016, 18:34:10
Go to the top of the page
+Quote Post
Pyton_000
post 4.12.2016, 16:26:00
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


Pierwszy wynik z brzegu http://stackoverflow.com/questions/2560973...-in-an-xsl-file
Go to the top of the page
+Quote Post
Donatovsky
post 4.12.2016, 16:28:17
Post #3





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 4.12.2016

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


a wytłumaczy mi ktoś to łopatologicznie ?
Go to the top of the page
+Quote Post
Pyton_000
post 4.12.2016, 16:29:23
Post #4





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


Chyba żartujesz? Masz podane przykłady. Może łaskawie podaj kod który już masz i gdzie masz problem...
Go to the top of the page
+Quote Post
Donatovsky
post 4.12.2016, 16:30:26
Post #5





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 4.12.2016

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


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Moje Wybrane Ksiazki</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th style="text-align:left">Autor</th>
<th style="text-align:left">Tytul</th>
<th style="text-align:left">Rok Wydania</th>
<th style="text-align:left">Wydawca</th>
<th style="text-align:left">Miejsce wydania</th>
<th style="text-align:left">Ilosc stron</th>
<th style="text-align:left">ISBN</th>
<th style="text-align:left">Opis</th>
</tr>
<xsl:for-each select="Moje_Wybrane_Ksiazki/ksiazki">
<tr>
<td><xsl:value-of select="Autor"/></td>
<td><xsl:value-of select="Tytul"/></td>
<td><xsl:value-of select="Rok_wydania"/></td>
<td><xsl:value-of select="Wydawca"/></td>
<td><xsl:value-of select="Miejsce_wydania"/></td>
<td><xsl:value-of select="Ilosc_stron"/></td>
<td><xsl:value-of select="ISBN"/></td>
<td><xsl:value-of select="Opis"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>


Gdzie mam to dodać ? i jakie selektory ?
Go to the top of the page
+Quote Post
Pyton_000
post 4.12.2016, 16:49:25
Post #6





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


Zaglądałeś do linka który Ci podesłałem ? Przecież tam masz przykład....
Go to the top of the page
+Quote Post
Donatovsky
post 4.12.2016, 16:53:43
Post #7





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 4.12.2016

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


Tak ale mi to nie działa
Go to the top of the page
+Quote Post
Pyton_000
post 4.12.2016, 17:09:52
Post #8





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


No to pokaż jak robisz.
Go to the top of the page
+Quote Post
Donatovsky
post 4.12.2016, 17:12:15
Post #9





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 4.12.2016

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


Gdzie bym nie dodał <link , to mi wywala błąd ze head nie moze sie kończyć link itp
Go to the top of the page
+Quote Post
Pyton_000
post 4.12.2016, 17:27:53
Post #10





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


Zaczniesz czytać co do Ciebie piszę?
Go to the top of the page
+Quote Post
Donatovsky
post 4.12.2016, 17:29:35
Post #11





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 4.12.2016

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


Dobra dodane, ale teraz dodaj selektory użyte
o co chodzi bo nie mam pojęcia
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 28.03.2024 - 12:36