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 - XSLT Service Validator Failed to catch Invalid Name-space
Summary: XSLT Service Validator Failed to catch Invalid Name-space
Status: VERIFIED WORKSFORME
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitaly Bychkov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 23:43 UTC by rpoon
Modified: 2009-04-24 00:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project zip file (15.85 KB, application/octet-stream)
2009-03-26 23:46 UTC, rpoon
Details
description file (30.55 KB, application/octet-stream)
2009-03-26 23:47 UTC, rpoon
Details

Note You need to log in before you can comment on or make changes to this bug.
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.