Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

XSLT transformation doesn't run right

$
0
0

Hi,

 

IntelliJ IDEA doesn't run XSLT transformation right. For example when I run following xsl code:

 

<?xml version="1.0" encoding="utf-8" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:param name="newRncId" />

    <xsl:template match="@*">
        <xsl:copy />
    </xsl:template>

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

    <xsl:template match="baseId">
        <xsl:copy>
            <xsl:value-of select="$newRncId" />
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>

the "baseId" tamplate doesn't applied. The same result could be reproduced in Java if instead of DOMSource you use StreamSource in Transformer#transform() method. So it looks like a bug in IDEA.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>