cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 161321 - XSLT Service Validator Failed to catch Invalid Name-space
: XSLT Service Validator Failed to catch Invalid Name-space
Status: VERIFIED WORKSFORME
: soa
XSLT
: 6.5
: All All
: P2 (vote)
: S1S
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-03-26 23:43 by
Modified: 2009-04-24 00:36 (History)
Issue Type: DEFECT
:


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


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-03-26 23:43:21
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 From 2009-03-26 23:46:22 -------
Created an attachment (id=78950) [details]
Project zip file
------- Comment #2 From 2009-03-26 23:47:30 -------
Created an attachment (id=78951) [details]
description file
------- Comment #3 From 2009-04-09 17:00:42 -------
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 From 2009-04-24 00:27:44 -------
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 From 2009-04-24 00:36:40 -------
Forwarded this to Carol for relnotes.