RE: XMLC Include Files

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Christian,

Doesn't this sort of defeat the purpose of using SSI's in the first 
place?  If you have a bunch of .html mockup files which reference the same 
markup, but don't use ssi's directly, rather you do the <!-- start foo.ssi 
--> stuff, then you are just repeating this information in all your .html 
files where you could have put that info in .ssi files in the first place 
and just then glob copy all your .html files to .shtml files to work with 
IIS or Apache.  Maybe I'm missing something?

Additionally, all this begs the question of the usefulness of the 
GenerateSSI taskdef and CopyReplace taskdef since, isn't this functionality 
already provided by the XMLC compiler anyway?  Why duplicate this with 
separate taskdefs?

Jake

At 10:40 AM 6/23/2003 -0600, you wrote:
>Hi Kirk,
>
>Barracuda has a CopyAndReplace taskdef which will process/resolve .ssis in 
>files. Attached is a copy of one of the build.xml files we use here that 
>will demonstrate how to use it (just search for CopyAndReplace).
>
>The basic idea is we have all our markup in *.html files, with specific 
>"ssi" chunks wrapped with
><!-- start foo.ssi -->
>    ssi markup goes here
><!-- end foo.ssi -->
>We use the GenerateSSI taskdef to process the *.html files and create .ssi 
>files from them. These ssi files are then referenced in *.shtml files 
>(which IIS or Apache will resolve, allowing designers to preview the mockups).
>
>We then use the CopyAndReplace taskdef to move the *.shtml files to the 
>target directory (resolving ssis in the process) where XMLC will actually 
>compile them.
>
>That make sense? Its a little complicated, but it works quite well...
>
>Christian
>----------------------------------------------
>Christian Cryder
>Internet Architect, ATMReports.com
>Project Chair, BarracudaMVC - 
><http://barracudamvc.org/>http://barracudamvc.org
>----------------------------------------------
>"Coffee? I could quit anytime, just not today"
>-----Original Message-----
>From: [email protected] 
>[mailto:[email protected]]On Behalf Of Kirk Daries
>Sent: Monday, June 23, 2003 4:37 AM
>To: [email protected]
>Subject: [Barracuda] XMLC Include Files
>
>Hi Guys,
>
>Is there anyway to set/use property files with the server side include files?
>
>E.g.
>
>Instead of hard coding
><!--#include 
>file="../../../eworksportal/src_mockups/xmlc/ReportPageFooter.ssi"-->
>
>Use something like this...
>
><!--#include file="${REPORT_PAGE_FOOTER}"-->
>
>???
>
>Regards
>KD
>
>Ps.
>Just want to avoid hard coding the path to the include files to make 
>maintenance easier later..
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.