làm cách nào để triển khai css trong tệp xsl? tôi đã cố gắng này:css trong tài liệu xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<link rel="stylesheet" type="text/css" href="dxsl.css"/>
<xsl:output method="html" />
nhưng nó ném lỗi:
XSLTProcessor::importStylesheet(): Found a top-level element link with null namespace URI
và
Warning: XSLTProcessor::transformToXml(): No stylesheet associated to this object
Tôi nghĩ đây không phải là câu hỏi XSLT mà là câu hỏi HTML. Nếu bạn chạy một phép biến đổi từ XML thành HTML thì ¿Bạn xuất phần tử 'link' ở đâu? –