请问spring的配置文件中的这些个xsd文件是引用的什么地方的呀,联网和非联网的情况下呢

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

[b]问题补充:[/b]
[color=red]http://www.springframework.org/schema/tx [/color]
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"
请问上面两个有什么关系啊,谢谢

xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"

这里都是成对的。
前一个是域,后一个是实际的版本的定义文件

实际上如果你用浏览器访问 http://www.springframework.org/schema/tx/
可以看到好几个版本 的xsd, 这里确定了具体的版本是2.5的

xsi:schemaLocation 里指明了schema的位置的。

一般来说,是xml解析时,需要验证格式时才用到这些。
或者有些编辑器 在编辑时 自动提示 根据上面来。

如果本地缓存没有,就要从网上下载了。但是没有开验证的时候
xml也可以被处理。

应该在spring的jar包里面,如果有myeclispe的话,点击链接可以直接查看

http://www.springframework.org/schema/tx/spring-tx-2.5.xsd是xml的构架文件,表示新建的xml内容必须符合xsd中定义的规范。

http://lists.xml.org/archives/xml-dev/200109/msg00055.html