|
From: Alef A. <al...@jt...> - 2004-06-25 21:50:51
|
How does the XInclude stuff retrieve the resources. Will it allow us to = specify resources in somewhat the same way as we do now (classpath:, = etcetera) and is it possible to integrate this with the resource package = we have? I think this would be a requirements. Alef > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On = Behalf > Of j=FCrgen h=F6ller [werk3AT] > Sent: Friday, June 25, 2004 8:31 PM > To: spr...@li... > Subject: Re: [Springframework-developer] Include/import directive in = XML > bean definition files >=20 > Sounds plausible. I'm no XML expert, though: How could we make this = work? >=20 > Juergen >=20 >=20 > ________________________________ >=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 >=20 >=20 >=20 >=20 > Hi! >=20 > Why not use standardized XInclude syntax? It would look like this: >=20 > <beans xnlns:xi=3D"http://www.w3.org/2001/XInclude"> > ... > <xi:include href=3D"anyURL"/> > ... > </beans> >=20 > XInclude supports inclusion of xml and text data; thus it could = replace > annoying CDATA sections. >=20 > Regards, >=20 > Timo >=20 >=20 > 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 >=20 >=20 > ------------------------------------------------------- > 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 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > 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 >=20 >=20 |