由于想要的html中包含了中文 要在xsl中事先声明 做法如下
<?xml version="1.0" encoding="GBK"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:s="http://purl.oclc.org/dsdl/schematron"
xmlns:ax21="http://validation.hitsp.nist.gov/xsd">
<xsl:output method= "html" encoding= "GB2312" media-type= "text/html "/>
https://wap.sciencenet.cn/blog-615874-563898.html
上一篇:
已经初见端倪下一篇:
modified string-replace-all