Hello! Ha az XSL fajlom elejen igy definialom az outputot:
<xsl:output method="html" encoding="ISO-8859-2" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> akkor a generalt html valoban html lesz, nem xhtml; azaz megengedettek a lezaratlan tag-ek. (pl. meta, br, hr) Csak tudnam akkor minek adom meg a doctype-ot?! Ha a fenti helyett ezt irom: <xsl:output method="xml" encoding="ISO-8859-2" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> akkor nem lesznek lezaratlan tag-ek (xml ugye nem engedi), am szamomra rejtelyes modon nehany div kap egy xmlns="" attributumot. Nem mind, de nem talaltam me'g meg a kivalasztas hogyanjat. S mindez miert is baj? Mert a W3C szabvany szerint a div-nek nincs ilyen attributuma, ezert kapasbol invalid az oldal. (Ne kezdjunk flamebe, hogy 'huuu validsagfetista'. :)) http://www.w3.org/TR/html4/struct/global.html#h-7.5.4 $ xsltproc --version Using libxml 20628, libxslt 10120 and libexslt 813 xsltproc was compiled against libxml 20627, libxslt 10120 and libexslt 813 libxslt 10120 was compiled against libxml 20627 libexslt 813 was compiled against libxml 20627 A temaban mar kicsit szetneztem, latni, hogy mas is belefutott mar ebbe, de *valoban mukodo* megoldast sehol nem talaltam. Par URL: http://www.perlmonks.org/?node_id=475895 http://mail.gnome.org/archives/xslt/2005-November/msg00005.html (probaltam) http://mail.gnome.org/archives/xml/2003-December/msg00201.html Workaroundkent mar csak azt tudom elkepzelni, hogy a legeneralt oldalon utolag vegig kell futtatni valamilyen postprocess scriptet, ami kiirtja az xhtml-ben nem megengedett dolgokat, de hat ez milyen mar?! Koszi! -- LiRul http://www.hixsplit.hu/ Un*x + HIX = hixsplit Lehet, de nem erdemes nelkule... _________________________________________________ linux lista - [email protected] http://mlf2.linux.rulez.org/mailman/listinfo/linux
