[ nant-Bugs-3058913 ] xml schema for description is invalid
SourceForge.net <[email protected]> Fri, 09 Dec 2011 08:11:47 -0800
| Newsgroups | gmane.comp.windows.dotnet.nant.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3058913, was opened at 2010-09-03 09:51
Message generated for change (Comment added) made by rmboggs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3058913&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Framework support
Group: 0.91-alpha2
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: owl128 (owl128)
Assigned to: Ryan Boggs (rmboggs)
Summary: xml schema for description is invalid
Initial Comment:
example for a build file:
<project xmlns="http://nant.sf.net/release/0.91-alpha2/nant.xsd" name="a">
<description>my description</description>
</project>
This will note the text between the description tags as invalid.
I suggest to fix the content of nant.xsd file by one of the followings:
Replace: <xs:complexType name="NAnt.Core.Tasks.DescriptionTask">
by <xs:complexType name="NAnt.Core.Tasks.DescriptionTask" mixed="true">
or
replace the occurrences of <xs:element name="description" type="nant:NAnt.Core.Tasks.DescriptionTask" />
by <xs:element name="description" type="xs:string" />
----------------------------------------------------------------------
>Comment By: Ryan Boggs (rmboggs)
Date: 2011-12-09 08:11
Message:
Forgot to close this.
----------------------------------------------------------------------
Comment By: Ryan Boggs (rmboggs)
Date: 2011-07-07 21:59
Message:
Fix committed.
----------------------------------------------------------------------
Comment By: Ryan Boggs (rmboggs)
Date: 2011-07-07 21:31
Message:
Nevermind, I set it up so setting more tasks with the mixed attribute is
very easy. Will commit fix shortly.
----------------------------------------------------------------------
Comment By: Ryan Boggs (rmboggs)
Date: 2011-07-07 19:18
Message:
It's been awhile...
I took a look in the source and I think I got it. It looks like an easy
fix. One question, is there any other complex types that need this
modification?
----------------------------------------------------------------------
Comment By: Sojourner ()
Date: 2011-07-07 14:27
Message:
rmboggs:
That would indeed shut it up - mixed=true is what you want to get a
complextype to accept text content. However as pointed out by dogu, the
schema is autogenerated. What is really needed is a change to the schema
task to get it to apply a mixed content model when it generates xsd types
for tasks, based on some criterion. Having only just viewed Nant source for
the first time today, I don't have a clear idea how that might be
accomplished.
The Description task doesn't appear to do anything; maybe it would be as
simple as adding a 'text' property to the description task, which should
appear as a 'text' attribute in the build file? NAnt by convention seems
not to use element content to express very much at all.
----------------------------------------------------------------------
Comment By: Ryan Boggs (rmboggs)
Date: 2010-09-12 21:39
Message:
I'm trying to get familiar with xsd in general. From what I can see, the
closest I can get to the mixed is with this:
<xs:complexType name="Target" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:complexType name="NAnt.Core.Tasks.DescriptionTask">
however, I don't know if that will resolve this issue.
Thanks,
Ryan
----------------------------------------------------------------------
Comment By: Dominik Guder (dogu)
Date: 2010-09-05 13:58
Message:
Hi,
I stubled about this long time ago. There are some more tasks like the echo
task if I remember correctly.
Changing this in xsd file itself would be easy. But this xsd file is
created automatically by nantschema task. So we need to find a way to
resolve this there. But this was to much effort for me and I stopped in
validating my build files with other tools than nant itself.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3058913&group_id=31650
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/