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 161321

Summary: XSLT Service Validator Failed to catch Invalid Name-space
Product: soa Reporter: rpoon <rpoon>
Component: XSLTAssignee: Vitaly Bychkov <lativ>
Status: VERIFIED WORKSFORME    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Project zip file
description file

Description rpoon 2009-03-26 23:43:21 UTC
Build: \\thumper\50builds\gfesb\v2.1\main\nightly\20090325-0724

In the XSL editor, if user makes changes in the XSL source code to use an invalid name space, when press ‘Validate XML’ 
(to compile), the XSL validator failed to catch this error.

To see this problem:

1)Use the attached XSLT project.
2)Open the XSL editor by double clicking on the XSL file (i.e. rpXSLfile).
3)Click on the ‘Validate XML’ button to make sure that this XSL has no error. 
4)Now make change to the code to use an invalid name-space (that should fail the validator) – i.e.

Change the line:
     <xsl:value-of select="concat(&apos;Hello &apos;, /ns1:name)"/>
To:
     <xsl:value-of select="concat(&apos;Hello &apos;, /ns9999:name)"/>

5)Now press the ‘Validate XML’ button again – and it will still report as ‘0 Error(s), 0 Warning(s)’.
Comment 1 rpoon 2009-03-26 23:46:22 UTC
Created attachment 78950 [details]
Project zip file
Comment 2 rpoon 2009-03-26 23:47:30 UTC
Created attachment 78951 [details]
description file
Comment 3 Vitaly Bychkov 2009-04-09 17:00:42 UTC
Tried with the latest GF_ESB 2.1 nightly build 20090408-2320

All worksforme - 
ERROR: XPath syntax error at char 11 on line 7 in {concat

What jdk, OS did you use?
Could you please try with the latest nightly build?
Is there are any errors in netbeans log file? <inst_dir>.netbeans/glassfishesb/var/log/messages.log 
Comment 4 rpoon 2009-04-24 00:27:44 UTC
Verified with build: \\thumper\50builds\gfesb\v2.1\main\nightly\20090423-0722

The problem does not seem to be occur with the latest build (above).
Notice alos that once the code is changed, pressing the 'validate' does not automatically save first and then compile.
User needs to press SAVE-ALL to save the changed code(s), otherwise, the validator will try to compile the previous 
version of the code.

I will forward this to doc to 
Comment 5 rpoon 2009-04-24 00:36:40 UTC
Forwarded this to Carol for relnotes.