Bugs item #1110832, was opened at 2005-01-27 17:26 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1110832&group_id=31650
Category: Core Group: 0.85 >Status: Closed >Resolution: Later Priority: 5 Submitted By: Amir Kolsky (kolsky) >Assigned to: Gert Driesen (drieseng) Summary: Problem with project xml element. Initial Comment: The following is a sample build file with the scheme specification: <?xml version="1.0"?> <nant:project name="Bad Sample" default="A" xmlns:nant="http://nant.sf.net/release/0.85- rc1/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:schemaLocation="http://nant.sf.net/release/0.85- rc1/nant.xsd C:\PROGRA~1\Nant\schema\nant.xsd"> <target name="A"/> </nant:project> This snippet passes validation. However, when ran an error stating that there is no target A in the file is displayed. The following file which does not have the schema in it works. <?xml version="1.0"?> <project name="Bad Sample" default="A"> <target name="A"/> <project> This bug means that we can not use validating editors to generate the .build files as their output is not accepted by NAnt. ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2005-01-31 08:38 Message: Logged In: YES user_id=707851 NAnt currently does not support namespace prefixes. Remove the nant namespace prefix and your example will work fine and validators will be able to validate your build files : <?xml version="1.0"?> <project name="Bad Sample" default="A" xmlns="http://nant.sf.net/release/0.85-rc1/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:schemaLocation="http://nant.sf.net/release/0.85- rc1/nant.xsd C:\PROGRA~1\Nant\schema\nant.xsd"> <target name="A"/> </project> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1110832&group_id=31650 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers