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 127243 - Xslt transform defect
Summary: Xslt transform defect
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: XSL (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Lunegov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 23:13 UTC by tdamir
Modified: 2008-02-19 00:49 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Sample files for reproducing issue (1.07 KB, application/x-compressed)
2008-02-12 23:15 UTC, tdamir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdamir 2008-02-12 23:13:03 UTC
Hi!

I have two xsl (one including other) and one xml. When I try to transform xml I have following error:
Starting file:/home/xxx/sample.xml by file:/home/xxx/sample.xslt transformation...
Could not compile stylesheet
Transformation finished.

IDE log says that there is no attribute set defined but it is defined in included xsl. I'm able to transform this file
with Altova or Xalan from command prompt. 

IDE log shows following:
java.lang.NullPointerException
        at org.netbeans.modules.xml.catalog.user.UserXMLCatalog.resolveURI(UserXMLCatalog.java:80)
        at org.netbeans.modules.xml.catalog.CatalogEntityResolver.resolve(CatalogEntityResolver.java:185)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.loadSource(TransformerFactoryImpl.java:1063)
        at com.sun.org.apache.xalan.internal.xsltc.compiler.Import.parseContents(Import.java:71)
        at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
        at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
        at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:381)
        at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
        at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:791)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:613)
        at org.netbeans.spi.xml.cookies.TransformableSupport.newTransformer(TransformableSupport.java:213)
        at org.netbeans.spi.xml.cookies.TransformableSupport.transform(TransformableSupport.java:109)
        at org.netbeans.modules.xsl.utils.TransformUtil.transform(TransformUtil.java:258)
        at org.netbeans.modules.xsl.transform.TransformPerformer$AbstractPerformer.fileOutput(TransformPerformer.java:399)
        at org.netbeans.modules.xsl.transform.TransformPerformer$AbstractPerformer.access$400(TransformPerformer.java:221)
        at org.netbeans.modules.xsl.transform.TransformPerformer$AbstractPerformer$1.run(TransformPerformer.java:493)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
ERROR:  'Attempting to use non-existing attribute set 'sample_style'.'
FATAL ERROR:  'Could not compile stylesheet'
Comment 1 tdamir 2008-02-12 23:15:29 UTC
Created attachment 56561 [details]
Sample files for reproducing issue
Comment 2 Sergey Lunegov 2008-02-18 16:29:54 UTC
XSL import is not supported now. Will be implemented in next release.
Comment 3 tdamir 2008-02-19 00:49:21 UTC
Ok. I didn't know that. I thought that it uses xalan for transformation. But now the question is if it isn't supported
why it's working sometime?