This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 162252 - XSL Validation import loop
Summary: XSL Validation import loop
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Validation (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 19:55 UTC by swaldren
Modified: 2015-09-17 13:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description swaldren 2009-04-08 19:55:18 UTC
Two XSL files with import statements that import each other, cause the XML validation in the XML editor to enter a loop until the memory is consumed.  No 
way to validate those files or to cancel the validation.  Test files below:

=========  FILE: teststyle2.xsl ==================
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="./teststyle1.xsl"/>
    <xsl:template match="/">
        <xsl:text>Teststyle 2</xsl:text>
    </xsl:template>
</xsl:stylesheet>

=========  FILE: teststyle1.xsl ==================
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="./teststyle2.xsl"/>
    <xsl:template match="/">
       <xsl:text>Teststyle 1</xsl:text>
    </xsl:template>
</xsl:stylesheet>
Comment 1 Svata Dedic 2011-10-26 12:27:56 UTC
This seems as a bug in Xalan compiler; it tries to check relative URI of the imported stylesheet against systemIDs (resolved to absolute URLs) of already read styelsheets.
Comment 2 Martin Balin 2015-09-17 13:17:08 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.