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 113919

Summary: XSLT editor should have support for choosing xpath expressions with wildcards and axis options
Product: soa Reporter: pvarghese <pvarghese>
Component: XSLTAssignee: Sergey Lunegov <slunegov>
Status: NEW ---    
Severity: blocker CC: gbadescu, jwaldorf
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: wildcard usage example project
parent axis and template usage example project

Description pvarghese 2007-08-27 23:23:18 UTC
Netbeans version used: netbeans-trunk-nightly-200708061200-full.zip

XSLT editor should have support for choosing xpath expressions with wildcards and axis options

1. wildcard support: "*"
In a schema like cdcatalog which has both <cd> and <dvd> elements belonging to artists then the use of wildcards to
select all the children of cdcatalog should be supported as shown .

            <xsl:for-each select="/ns1:cdcatalog/*[ ( ns1:artist = /ns1:cdcatalog/ns1:filterartist ) ]">

2. support for different axis in the xpath expression definition.
support for selecting all valid xpath axis when defining xpath expressions like parent, self, preceding, following,
preceding-sibling, following-sibling, descendant, ancestor, descendant-or-self, ancestor-or-self.

example of using a parent axis is shown below.

        <xsl:apply-templates select="ns1:cd[( ns1:artist = ../ns1:filterartist )]"/>
../ns1:filterartist indicates that go to the parent of the current node 'cd' and select its child 'filterartist'.

Projects attached: 
CatalogWildcard: for the wildcard example.
CatalogTemplate: for the parent axis, which also used templates.
Comment 1 pvarghese 2007-08-27 23:25:52 UTC
Created attachment 47538 [details]
wildcard usage example project
Comment 2 pvarghese 2007-08-27 23:26:41 UTC
Created attachment 47539 [details]
parent axis and template usage example project