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 92051

Summary: XSLT Project should support Cross-project XML References
Product: soa Reporter: Nam Nguyen <nnguyen>
Component: XSLTAssignee: Vitaly Bychkov <lativ>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 92964, 89562    

Description Nam Nguyen 2007-01-08 21:10:46 UTC
(1) Needs to use common project customizer UI defined in xml/projectcatalogsupport.
(2) Needs to add to 'pre-dist' target, ant calls to subproject dist target and
extract relevant referenced xml files to current project build area.  Also take
care of clean target to call subprojects 'clean'.

For details see section "Adding Support for Cross-Project References" in 
http://xdesign-tools.czech.sun.com:8080/JSPWiki/Wiki.jsp?page=XmlFileRefsOnepager
Comment 1 Vladimir Yaroslavskiy 2007-01-24 09:19:17 UTC
It is xslt project feature.
Comment 2 Vitaly Bychkov 2007-01-25 13:06:09 UTC
Fixed.
Comment 3 Nam Nguyen 2007-01-30 23:12:24 UTC
Task completed.
Comment 4 Nam Nguyen 2007-01-31 01:52:07 UTC
Sorry I have to reopen this.
There is additional needed changes to fully support cross-project referencing:

(1)
Since the SEDeployment.jar is a JAR, XSLT project need to define
*additional* artifact like:

  helper.createSimpleAntArtifact(IcanproConstants.ARTIFACT_TYPE_JAR,...)

This is needed so referencing project (e.g. BPEL or XSLT project types), to
generate correct ant target parts for copying the XML reference closure.

(2)
For BPEL project to reference XSD, WSDL files belong to IEP project, there IEP
project have to also declare its source root as of XML source type:
  sourcesHelper.addTypedSourceRoot(..., ProjectConstants.SOURCES_TYPE_XML,...);

Where ProjectConstants.SOURCE_TYPE_XML is defined in xml/catalogsupport module.

Comment 5 Nam Nguyen 2007-01-31 20:33:41 UTC
(3) Also please change build-impl.xsl to support referencing files in web
project.  For example change, please refer to similar change in bpel project type:
http://www.netbeans.org/source/browse/enterprise/bpel/project/src/org/netbeans/modules/bpel/project/resources/build-impl.xsl?r1=1.1.2.12.4.2&r2=1.1.2.12.4.3&only_with_tag=release551
Thanks.
Comment 6 Vitaly Bychkov 2007-02-04 22:24:09 UTC
Fixed.