Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> xsl edytor?
DreeD
post
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... (IMG:http://forum.php.pl/style_emoticons/default/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
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 (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
DreeD
post
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 (IMG:http://forum.php.pl/style_emoticons/default/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
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
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 (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
DreeD
post
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 (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif)
Go to the top of the page
+Quote Post
Seth
post
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
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 (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) teraz juz napewno (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
wielkie dzieki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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: 23.08.2025 - 22:57