Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> xsl edytor?
DreeD
post 16.02.2004, 17:07:43
Post #1





Grupa: Przyjaciele php.pl
Postów: 120
Pomógł: 0
Dołączył: 29.11.2003
Skąd: Tarnów

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


Czy zna ktos (czy wogule jest taki) jakis program do "robienia" styli do xml'a?
Mam XMLMind XML Editor, wszystko piknie tyle ze styli w nim nie zrobie... rolleyes.gif uczenie sie pisania tego recznie idzie mi dosc opornie a potrzebuje to na szybko...
help? 8-[
Go to the top of the page
+Quote Post
Seth
post 16.02.2004, 17:25:29
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

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


Sciagnij sobie ze strony: http://docbook.sourceforge.net/projects/xsl/
zestaw XSLi.

Nastepnie uzyj tego kodu:
  1. <?php
  2.  $xsltProc = xslt_create();
  3.  
  4.  $xhtml = xslt_process($xsltProc, '<link do zrodla xml>', '<...>/xhtml/docbook.xsl');
  5.  
  6.  if ( !$xhtml ) die( xslt_error( $xsltProc ) );
  7.  
  8.  xslt_free( $xsltProc );
  9.  
  10.  print $xhtml;
  11. ?>


Oczywiscie jezeli chcesz zparsowac DocBooka smile.gif
Go to the top of the page
+Quote Post
DreeD
post 16.02.2004, 18:19:56
Post #3





Grupa: Przyjaciele php.pl
Postów: 120
Pomógł: 0
Dołączył: 29.11.2003
Skąd: Tarnów

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


Jak zawsze Seth wie wszystko =D>
wielkie dzieki po raz kolejny biggrin.gif/

edit: jedna uwaga...:
Cytat
Fatal error: Call to undefined function: xslt_create()
:?:
w manualu taka funkcja jest... za stara wersja php? :?
Go to the top of the page
+Quote Post
raf2001
post 16.02.2004, 18:55:16
Post #4





Grupa: Zarejestrowani
Postów: 116
Pomógł: 0
Dołączył: 14.06.2002
Skąd: Żyrardów

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


polecam także http://www2.morphon.com/xmleditor/ oparty on jest o javie


--------------------
Go to the top of the page
+Quote Post
Seth
post 16.02.2004, 20:57:08
Post #5





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

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


Cytat
edit: jedna uwaga...:
Cytat
Fatal error: Call to undefined function: xslt_create()
:?:
w manualu taka funkcja jest... za stara wersja php? :?

Zapomnialem dodac, ze wymaga ono sablotrona - xslt support = enabled.
Tutaj masz informacje jak doinstalwoac to http://www.sitepoint.com/article/602 smile.gif
Go to the top of the page
+Quote Post
DreeD
post 17.02.2004, 18:04:52
Post #6





Grupa: Przyjaciele php.pl
Postów: 120
Pomógł: 0
Dołączył: 29.11.2003
Skąd: Tarnów

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


dobra... zainstalowalem, jest enabled i teraz wyrzuca inny blad...:
Cytat
Warning: Sablotron error on line 20: cannot open file 'c:/apache/VERSION' in c:apachehtdocsxmlindex.php on line 4
cannot open file 'c:/apache/VERSION'


Powoli zaczynam tracic ndzieje laugh.gif
Go to the top of the page
+Quote Post
Seth
post 17.02.2004, 18:08:51
Post #7





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

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


Bo to dziala tak: rozpakowujesz te xsle do jednego katalogu - nic z nich nie wyzucasz.
W xslt_process podajesz sciezke bez wzgledna do obu pozycji - zrodla XMLa i XSLa.
Wtedy powinno dzialac.

Ja mam u siebie w ten sposob podane sciezki:
[php:1:a9d8dba247]<?php
...
$xhtml = xslt_process($xsltProc, './php/test/xslt/art.xml', './php/test/xslt/docbook-xsl/xhtml/docbook.xsl');
...
?>[/php:1:a9d8dba247]
i wsio dziala.
Go to the top of the page
+Quote Post
DreeD
post 17.02.2004, 18:21:24
Post #8





Grupa: Przyjaciele php.pl
Postów: 120
Pomógł: 0
Dołączył: 29.11.2003
Skąd: Tarnów

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


Dziala tongue.gif teraz juz napewno smile.gif
wielkie dzieki smile.gif
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: 22.06.2025 - 16:20