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 - XSLT editor should have support for choosing xpath expressions with wildcards and axis options
Summary: XSLT editor should have support for choosing xpath expressions with wildcards...
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Lunegov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-27 23:23 UTC by pvarghese
Modified: 2007-08-27 23:27 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
wildcard usage example project (81.98 KB, application/octet-stream)
2007-08-27 23:25 UTC, pvarghese
Details
parent axis and template usage example project (81.25 KB, application/octet-stream)
2007-08-27 23:26 UTC, pvarghese
Details

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