Portál AbcLinuxu, 11. května 2025 10:47
<?xml-stylesheet href="soubor_s.xsl" type="text/xsl"?>
8.17 Application/xslt+xml Content-type: application/xslt+xml Extensible Stylesheet Language (XSLT) documents are XML documents whose content describes stylesheets for other XML documents, as defined by [XSLT]. As a format based on XML, XSLT documents SHOULD use the '+xml' suffix convention in their MIME content-type identifier. However, no content type has yet been registered for XSLT and so this media type should not be used until such registration has been completed.Takze je jasne, ze do /etc/mime.types si musis pripsat
application/xslt+xml xsl xslt # nebo jakou mas priponu pro ten XSLT souborAle uplne by melo stacit application/xml, protoze FF se pak rozhoduje podle jmenneho prostoru. A uplne nakonec, se ten mime-type da specifikovat v odkazu pomoci atributu type. Myslim, ze uplne nejlepsi bude, kdyz nekam ty dva soubory nahrajes a nekdo se na ne podiva, jestli jsou v poradku.
strace -f -eopen firefox styl.xsl 2>&1 | grep mime
A samozrejme by mel brat v uvahu ten konfigurak je v pripade, ze tahas soubory z disku.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.