Bugs item #1044900, was opened at 2004-10-11 23:56
Message generated for change (Settings changed) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1044900&group_id=31650

Category: Core
Group: 0.85
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Craig Boland (cboland)
>Assigned to: Gert Driesen (drieseng)
Summary: Project help incorrect when build file uses namespace

Initial Comment:
I've discovered what I think is a bug with rendering
project help when the NAnt namespace is used: 

xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.1.xsd";

I really like the -projecthelp option and make sure
that my build files have adequate project help text.
Recently, I started using Visual Studio to edit my
build files, integrating the NAnt schema with Visual
Studio for the IntelliSense feature. This caused the
project help to render incorrectly. The problem is that
specifying the namespace causes the ProjectHelp.xslt to
select incorrectly (as it naturally should).

The attached file contains a description of the fix,
the changed files, and diffs.

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2004-11-26 12:42

Message:
Logged In: YES 
user_id=707851

This is now fixed in cvs. Patch provided by Rutger Dijkstra 
(Thanks !!).

----------------------------------------------------------------------

Comment By: Craig Boland (cboland)
Date: 2004-10-14 05:57

Message:
Logged In: YES 
user_id=490571

I understand the problem better now. It's not that a
particular namespace is causing the problem, _any_ namespace
will have the same effect. The idea I have now is to inspect
the input XmlDocument to see if it has a namespace. If so,
NAnt will remove the namespace before processing the project
help. What if there are multiple namespaces? Is this even a
scenario we need to handle? I'll work on the single
namespace for now, since that is my current problem, and
submit the result for review.

----------------------------------------------------------------------

Comment By: Ian MacLean (ianm74)
Date: 2004-10-12 12:48

Message:
Logged In: YES 
user_id=321872

Thanks for the patches. However the problem with it is that
its hardcoded to use the string "nant-0.85.win32.net-1.1"
which obviously won't work across different versions. 
I wonder if its possible to fix up the namespace definitions
in the stylesheet after its loaded based on whats in the
project file ? 
I'll do some digging into that later - unless you'd like to
have a crack at it/

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1044900&group_id=31650


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to