{"success":true,"data":{"ext":"xsl","name":"XSL","description":"Extensible Stylesheet Language (XSL) is a stylesheet language for XML documents, defined and maintained by the World Wide Web Consortium (W3C). It is used to transform, format, and present XML data, including generating HTML, PDF, and other structured documents in publishing and web workflows. XSL files are typically safe to open, though processors may access external resources or extensions, so untrusted stylesheets should be handled with standard caution.","mime":["application/xml"],"risk_level":"Safe","signatures":[{"hex":"3C 3F 78 6D 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 3F 58 4D 4C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"EF BB BF 3C 3F 78 6D 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"FF FE 3C 00 3F 00 78 00 6D 00 6C 00","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"FE FF 00 3C 00 3F 00 78 00 6D 00 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 21 2D 2D","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["xml","manifest","xhtml","xsd","cfg","htm"],"usage":{"python":"def is_xsl(file_path: str) -> bool:\n    \"\"\"Check if file is a valid XSL by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x3F, 0x78, 0x6D, 0x6C])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isXSL(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x3F, 0x78, 0x6D, 0x6C]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsXSL(data []byte) bool {\n    signature := []byte{0x3C, 0x3F, 0x78, 0x6D, 0x6C}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"},"category":"Web & Config"}}