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 112816 - Collection of XSLT Editor issues encountered when designing PurchaseOrder to CustomerHistory Transform using XSL Templates
Summary: Collection of XSLT Editor issues encountered when designing PurchaseOrder to ...
Status: RESOLVED WONTFIX
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexey Yarmolenko
URL:
Keywords:
Depends on:
Blocks: 113521 113524
  Show dependency tree
 
Reported: 2007-08-15 00:31 UTC by pvarghese
Modified: 2007-08-22 16:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
description document for the project scenario (22.81 KB, application/octet-stream)
2007-08-15 00:33 UTC, pvarghese
Details
The project zip file (100.07 KB, application/octet-stream)
2007-08-15 00:35 UTC, pvarghese
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pvarghese 2007-08-15 00:31:20 UTC
Collection of XSLT Editor issues encountered when designing PurchaseOrder to CustomerHistory Transform using XSL Templates

Netbeans version used: netbeans-trunk-nightly-200708061200-full.zip
Project file attached: PurchaseOrder.zip

Issues:
1. The editor mandates that the newly created .xsl file should always have a default template.

The 'orderToCustTransform.xsl' when created has a default root template defined.

	<xsl:template match="/">
	</xsl:template>

Since the editor does not yet support template creation, manually changing this to have default templates as shown

    <xsl:template match="ns:Orders">
        <CustomerHistoryEntries xmlns="http://xml.netbeans.org/schema/custhistory"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://xml.netbeans.org/schema/custhistory custhistory.xsd">
            <xsl:apply-templates/>
        </CustomerHistoryEntries>
    </xsl:template>

leads to error message in the design view 
"The XSLT file does not contain a root template element"

It is not mandatory that a .xsl file should contain a root template element.

2. Creation of another XSLT service updates the transformmap.xml file in a incorrect manner.

The original entry in the transformmap.xml corresponding to the 'orderToCustTransform.xsl' is as follows

    <service partnerLinkType="ns1:orderServicePLT" roleName="orderServicePortTypeRole">
        <operation opName="orderServiceOperation" inputVariable="inOpVar1" 		outputVariable="outOpVar1">
            <transform file="orderToCustTransform.xsl" source="inOpVar1.orderPart" 			   result="outOpVar1.custHistPart"/>
        </operation>
    </service>

Creating a duplicate service ex: 'TestXSL' in the same XSLT project, updates the transformmap.xml in the following manner.

    <service partnerLinkType="ns1:orderServicePLT" roleName="orderServicePortTypeRole">
        <operation opName="orderServiceOperation" inputVariable="inOpVar1" 	outputVariable="outOpVar1">
            <transform file="orderToCustTransform.xsl" source="inOpVar1.orderPart" 		   result="outOpVar1.custHistPart"/>
            <transform file="TestXSL.xsl" source="inOpVar1.orderPart" 		   result="outOpVar1.custHistPart"/>
        </operation>
    </service>

There should not be another <transform> element in the same operation but it should either be a new 
separate <service> element or under the same <service> element a separate <operation> element.
Comment 1 pvarghese 2007-08-15 00:33:50 UTC
Created attachment 46627 [details]
description document for the project scenario
Comment 2 pvarghese 2007-08-15 00:35:26 UTC
Created attachment 46628 [details]
The project zip file
Comment 3 Alexey Yarmolenko 2007-08-15 15:46:41 UTC
1. Supporting templates for non-root elements is not planned for this Nb 6.0 release. I suggest turning this into
feature request for sierra 6.0 release.

2. Wizard adds transform element based on user selection. If you want another <operation> element to be created, please
select different operation on 2nd step of the wizard.