1 回答

TA貢獻1744條經驗 獲得超4個贊
我是這樣做的:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
? xmlns:b64="https://github.com/ilyakharlamov/xslt_base64"
? version="1.0">
<xsl:import href="xml-to-string.xsl"/>
? <xsl:output method="text" encoding="utf-8" />
? <xsl:strip-space elements="*"/>
? <xsl:include href="base64.xsl"/>
??
??
? <xsl:template match="/">
? <xsl:call-template name="b64:encode" >
? ? ? ? ? ? <xsl:with-param name="asciiString">
? ? ? ? ? ? ? <xsl:apply-templates select="." mode="xml-to-string" />
? ? ? ? ? ? </xsl:with-param>
? ? ? ? </xsl:call-template>
? ?</xsl:template>
</xsl:stylesheet>
使用這個: http: //lenzconsulting.com/xml-to-string/
添加回答
舉報