processing-instruction

Handling <?xml-stylesheet> similar to <link rel=“stylesheet”>?

南楼画角 提交于 2019-11-28 04:59:19
问题 During investigation of advantages and disadvantages of attaching CSS with <?xml-stylesheet> processing instruction, I came upon some issues. Suppose we have a simple XHTML document (which is delivered with application/xhtml+xml MIME type and viewed in a Web browser): <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>A sample XHTML document</title> <script type="application/javascript" src="/script.js"></script> </head> <body> <h1>A heading</h1> </body> </html> Then we