1
원래 질문은 here이며, 이제는 색소폰으로 약간 수정되었습니다. 나는 XSL 어트 변환을 다음과 같은 한 : 나는 색슨 8 변압기와 함께이 프로그램을 실행할 때입력하지 않고 XSLT 변환 saxon 구문을 사용하여 XML
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/">
<xsl:output method="xml" indent="yes" />
<xsl:param name="products">
<products author="Jesper">
<product id="p1">
<name>Delta</name>
<price>800</price>
<stock>4</stock>
<country>Denmark</country>
</product>
<product id="p2">
<name>Golf</name>
<price>1000</price>
<stock>5</stock>
<country>Germany</country>
</product>
<product id="p3">
<name>Alfa</name>
<price>1200</price>
<stock>19</stock>
<country>Germany</country>
</product>
<product id="p4">
<name>Foxtrot</name>
<price>1500</price>
<stock>5</stock>
<country>Australia</country>
</product>
<!-- p5 is a brand new product -->
<product id="p5">
<name>Tango</name>
<price>1225</price>
<stock>3</stock>
<country>Japan</country>
</product>
</products>
</xsl:param>
<xsl:param name="XMLproducts" select="saxon:parse($products)"></xsl:param>
<xsl:template match="@*|node()" >
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="products">
<xsl:copy>
<xsl:attribute name="dateUpdated">
<xsl:value-of select="current-dateTime()" />
</xsl:attribute>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="/" name="initial">
<xsl:apply-templates select="$XMLproducts"/>
</xsl:template>
</xsl:stylesheet>
, 나는 java.lang.StackOverflowError의를 얻을. 왜 이런 일이 일어나고 있으며 어떻게 해결할 수 있을지 생각해보십시오.
실제로 해결되었습니다. 고맙습니다! –