2012-11-28 2 views
0

11MB xml 파일에서 ID 변환을 실행하면 5.5MB 파일이 생성됩니다. Saxon 9.4.0.6을 사용하고 있습니다. 출력 요소에 인코딩 특성을 추가하면 결과 파일 크기가 11MB로 유지됩니다. 인코딩없이인코딩 속성 및 xml 파일 크기

<xsl:output method="xml" cdata-section-elements="Value" indent="no" encoding="utf-16"/> 

: 큰 차이가에서오고

<xsl:output method="xml" cdata-section-elements="Value" indent="no"/> 

인코딩

?

<?xml version="1.0" encoding="utf-16"?> 
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
<xsl:output method="xml" cdata-section-elements="Value" indent="no"/> 
<xsl:strip-space elements="*"/> 

<xsl:template match="/"> 
    <xsl:apply-templates select="*"/> 
</xsl:template> 

<xsl:template match="node()|@*"> 
    <xsl:copy> 
     <xsl:apply-templates select="node()|@*" mode="#current"/> 
    </xsl:copy> 
</xsl:template> 

답변