|
From: <jue...@we...> - 2004-06-25 18:27:43
|
Sounds plausible. I'm no XML expert, though: How could we make this = work? =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Timo Verhoeven Gesendet: Fr 25.06.2004 19:33 An: spr...@li... Betreff: Re: [Springframework-developer] Include/import directive in XML = bean definition files Hi! Why not use standardized XInclude syntax? It would look like this: <beans xnlns:xi=3D"http://www.w3.org/2001/XInclude"> ... <xi:include href=3D"anyURL"/> ... </beans> XInclude supports inclusion of xml and text data; thus it could replace annoying CDATA sections. Regards, Timo Am Freitag, 25. Juni 2004 19:06 schrieb j=FCrgen h=F6ller [werk3AT]: > Any thoughts on include/import directives in XML bean definition > files? > > http://opensource.atlassian.com/projects/spring/browse/SPR-137 > > This is about elements in XML bean definitions that allow to include > other XML bean definition files, with paths that are interpreted as > relative to the current file. Basically, this is an alternative to > combining multiple XML bean definition files via > "contextConfigLocation" parameters. > > Remaining questions are mostly about syntax. One possibility would be > like as follows: > > <beans> > > <include resource=3D"includeBeans.xml"/> > > <bean.../> > > </beans> > > Should the tag be called "include" or "import"? Any suggestions or > objections regarding such functionality in general? I'm personally > still a fan of "contextConfigLocation", but I guess there are valid > use cases for keeping includes directly in bean definition files. > > As a side note, one can already use standard XML entity includes to > achieve something similar. However, such include files are not full > DTD-compliant XML files themselves, and the XML include syntax is > rather awkward. > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" > "http://www.springframework.org/dtd/spring-beans.dtd > <http://www.springframework.org/dtd/spring-beans.dtd> " [ <!ENTITY > contextInclude SYSTEM > "org/springframework/web/context/WEB-INF/contextInclude.xml"> ]> > > <beans> > > &contextInclude; > > > <bean.../> > > </beans> > > I'd like to clarify our way to proceed with this ASAP, to get it into > 1.1 RC1 if we decide to adopt it. > > Juergen > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-develope >r ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |