簡體   English   中英

可以使用 XSLT 將格式不正確的 HTML 轉換為 XML

[英]Possible to convert not well formed HTML to XML using XSLT

我有一個一般問題,可以在氧氣編輯器中使用 XSLT 轉換將格式不正確的 HTML 轉換為 XML 嗎?

There's no way to parse HTML in standard XSLT, but (as Martin Honnen mentions) Saxon has an extension function saxon:parse-html() , which returns a document node just as if you had parsed XML using the doc() function.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM