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 162175 - XSLT Parser Failed to validate Stylesheet with 2.0 Features
Summary: XSLT Parser Failed to validate Stylesheet with 2.0 Features
Status: NEW
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-04-07 22:47 UTC by rpoon
Modified: 2009-04-09 15:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
project and description files (32.09 KB, application/octet-stream)
2009-04-07 22:48 UTC, rpoon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rpoon 2009-04-07 22:47:37 UTC
Build: \\thumper\50builds\gfesb\v2.1\main\nightly\20090406-0724

With the attached project when using some of the new features (i.e. Schema components).  In the stylesheet that 
uses ‘schema-element’, the validator failed to validate with the following error:

     ERROR: XSLT Pattern syntax error at char 43 on line 14 in {...schema-element

To reproduce the issue:

1)open the attached XSLT project.
2)Open the ‘printitems1.xsl’ style sheet.
3)Validate and the error will appear.

(see attached project and description file for more details)
Comment 1 rpoon 2009-04-07 22:48:53 UTC
Created attachment 79688 [details]
project and description files
Comment 2 Vitaly Bychkov 2009-04-09 15:28:43 UTC
In the attached project you are using schema-aware processing which is not supported by XSLT SE.

Xslt 2.0 features support is limited by saxon-B XSLT processor used by runtime (see  http://wiki.open-esb.java.net
/Wiki.jsp?page=XSLTSE).
The same XSLT processor is used in design side to be in consistence with runtime.

You can try with another xslt 2.0 features, for example: for-each-group
 <xsl:for-each-group select="persons/messages" group-by="@priority">
 </xsl:for-each-group>

Adding unsupported schema-aware-processing is mostly enhancement, that is why I change defect-> Enhancement.