Update of /cvsroot/springframework/spring/docs/reference/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12205/docs/reference/src
Modified Files:
xsd-configuration.xml
Log Message:
[SPR-1907] Added basic DTD-to-Schema switchover example.
Index: xsd-configuration.xml
===================================================================
RCS file: /cvsroot/springframework/spring/docs/reference/src/xsd-configuration.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** xsd-configuration.xml 20 Apr 2006 16:24:28 -0000 1.1
--- xsd-configuration.xml 20 Apr 2006 16:54:36 -0000 1.2
***************
*** 7,11 ****
configuration that was introduced in Spring 2.0.</para>
<sidebar>
! <title>DTD?</title>
<para>Authoring Spring configuration files using the older DTD style
is still totally supported.</para>
--- 7,11 ----
configuration that was introduced in Spring 2.0.</para>
<sidebar>
! <title>DTD suppport?</title>
<para>Authoring Spring configuration files using the older DTD style
is still totally supported.</para>
***************
*** 45,52 ****
<section id="xsd-config-body-referencing">
<title>Referencing the schemas</title>
! <para>[TODO : explain how to locate and reference the correct schemas at the top of ones configuratio file]</para>
</section>
<section id="xsd-config-body-schemas-util">
<title>The <literal>util</literal> schema</title>
<para>[TODO : provide examples or links to examples (with screenshots)]</para>
</section>
--- 45,88 ----
<section id="xsd-config-body-referencing">
<title>Referencing the schemas</title>
! <para>To switch over from the DTD-style to the new XML Schema-style, one needs
! to effect the following change...</para>
! <programlisting><lineannotation><!-- DTDT-style --></lineannotation>
! <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
! <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
! "http://www.springframework.org/dtd/spring-beans.dtd">
!
! <beans>
!
! ]]><lineannotation><!-- <literal><bean/></literal> definitions here --></lineannotation><![CDATA[
!
! </beans>]]></programlisting>
! <para>
! The equivalent file in the XML Schema-style would be...
! </para>
! <programlisting><lineannotation><!-- DTDT-style --></lineannotation>
! <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
! <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
! xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
! <beans>
!
! ]]><lineannotation><!-- <literal><bean/></literal> definitions here --></lineannotation><![CDATA[
!
! </beans>]]></programlisting>
! <para>
! The above Spring XML configuration fragment is pretty much boilerplate;
! one can certainly simply use this and continue to write
! <literal><bean/></literal> definitions like one has always been doing.
! However, the entire point of switching over is to enable one to
! take advantage of the new Spring 2.0 XML tags to enable easier
! configuration. The section entitled <xref linkend="xsd-config-body-schemas-util"/>
! demonstrates how one can immediately use some of the more common utility tags.
! </para>
</section>
<section id="xsd-config-body-schemas-util">
<title>The <literal>util</literal> schema</title>
+ <para>
+ For this first example of the new XML tags, lets immediately jump straight to
+ some before and after style configuration.
+ </para>
<para>[TODO : provide examples or links to examples (with screenshots)]</para>
</section>
|