[ 
http://issues.apache.org/jira/browse/IBATISNET-36?page=comments#action_64463 ]
     
Ron Grabowski commented on IBATISNET-36:
----------------------------------------

Its spelled correctly on line 28 but its not spelled right on line 55. I think 
line 41 may need changed too.

I cleared out all the files in my directory just now and re-downloaded 
everything:

 svn co http://svn.apache.org/repos/asf/incubator/ibatis/trunk/cs/mapper/ 
IBatisNet-svn

Checked out revision 168116.

<xs:element name="properties">
        <xs:complexType>
                <xs:attribute name="resource" type="xs:string"/>
                <xs:attribute name="url" type="xs:string"/>
                <xs:attribute name="embedded" type="xs:string"/> <--------- OK
        </xs:complexType>
</xs:element>

<xs:element name="sqlMap">
        <xs:complexType>
                <xs:attribute name="resource" type="xs:string"/>
                <xs:attribute name="url" type="xs:string"/>
                <xs:attribute name="embeded" type="xs:string"/> <--------- WRONG
        </xs:complexType>
</xs:element>

<xs:element name="setting">
        <xs:complexType>
                <xs:attribute name="useStatementNamespaces" type="xs:boolean"/>
                <xs:attribute name="cacheModelsEnabled" type="xs:boolean"/>
                <xs:attribute name="validateSqlMap" default="false" 
type="xs:boolean"/>
                <xs:attribute name="useEmbedStatementParams" 
type="xs:boolean"/> <-- ???
        </xs:complexType>
</xs:element>

> "embedded" spelled wrong in SqlMapConfig.xsd in SVN
> ---------------------------------------------------
>
>          Key: IBATISNET-36
>          URL: http://issues.apache.org/jira/browse/IBATISNET-36
>      Project: iBatis for .NET
>         Type: Bug
>     Versions: DataMapper 1.1
>  Environment: [assembly: AssemblyVersion("1.1.458")]
>     Reporter: Ron Grabowski
>     Assignee: Gilles Bayon
>      Fix For: DataMapper 1.2

>
> As of 4/13/2005, SqlMapConfig.xsd contains the following snippet:
> <xs:element name="sqlMap">
>  <xs:complexType>
>   <xs:attribute name="resource" type="xs:string"/>
>   <xs:attribute name="url" type="xs:string"/>
>   <xs:attribute name="embeded" type="xs:string"/>
>  </xs:complexType>
> </xs:element>
> "embeded" is misspelled. According to dictionary.com the correct spelling is 
> "embedded":
>  http://dictionary.reference.com/search?q=embedded
> The corrected sqlMap block is as follow:
> <xs:element name="sqlMap">
>  <xs:complexType>
>   <xs:attribute name="resource" type="xs:string"/>
>   <xs:attribute name="url" type="xs:string"/>
>   <xs:attribute name="embedded" type="xs:string"/>
>  </xs:complexType>
> </xs:element>
> All sqlMaps that use embedded resources get the following exception:
> ConfigurationException: Invalid SqlMap.config document. cause :The 'embedded' 
> attribute is not declared. An error occurred at , (1, 617)
> It was a nice surprise to see more verbose errors messages when parsing the 
> config file. Thank you!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to