Hi Gerard,

To answer another part of your question, you will want to assign dynamic
datasource connection properties for the different domains that hit your
single TAF. This article might help:

http://xml-extra.net/webpage.xmlx?node=41

This of course assumes that each of the "companies" you are serving have
their own domains - but all the domains reside on the same web-server, and
the root of your web-server is using just one set of TAF files - correct?

This is what I do - one set of TAF files serving several different domains
from the same machine. Each domain loads completely different data and
presentation elements.

I have a single XML configuration file for my server that contains all the
datasource connection information for all the hosted domains - and a TCF
file at the beginning of each TAF handles dynamically finding the current
"domain" information and dynamically assigning the datasource variables for
it. The configuration file looks something like:

<Server_config>
    <domain url="www.plusinternational.com">
        <dsn>Plus_data</dsn>
        <db_username>bob</db_username>
        <db_password>nob</db_password>
    </domain>
    <domain url="salsa.plusinternational.com">
        <dsn>Salsa_data</dsn>
        <db_username>frik</db_username>
        <db_password>frak</db_password>
    </domain>
</Server_config>

Using Witango DOM and XPointer - you can extract the information (based on
the current <@DOMAIN> request) and assign them "local" variables for the
request.

Example:

http://www.plusinternational.com and http://salsa.plusinternational.com are
using the same TAFs, TCFs and includes - on the same server.

You don't have to use a TCF, an Include or a Branch can handle getting to
your configuration data.

Hope this helps. Cheers....

PS. No offence intended to anybody named "bob" or "frik" :-)

Scott Cadillac
VP, Research and Development
Plus International Corp.
403-281-6090
[EMAIL PROTECTED]
http://www.plusinternational.com

Does your company have an Enterprise Information Portal? Check out Salsa at
www.plusinternational.com/flash/salsa.htm

----- Original Message -----
From: "John McGowan" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Friday, December 20, 2002 11:07 AM
Subject: Re: Witango-Talk: Witango Talk - Include Meta Tag - Sharing .tafs
in multiple sights without recopying it


> You can't use @INCLUDE with another taf file, unless what you want to
> include is the XML format of the taf file.  The only way to use another
> taf file is to branch to it, and then return.  Or, take that taf file
> and make it a TCF method instead and call the method.
>
> /John
>
> Gerard wrote:
>
> > Hello,
> >
> > I am presently working on a project, that would be greatly simplified
> > by performing what I will describe below.
> >
> > Situation:
> > We are developing web sites, that will be owned by different
> > companies, using the exact same .taf, each having their own database.
> > The variables within the .taf will allow them to have their own
> > personalized look, and distinct information.  To state the obvious,
> > much of the sites info and appearance is dynamic.  In the long term,
> > there will be thousands of sites sharing an identical .taf.  Each time
> > we make a change, we will be forced to copy the modified .taf into
> > each and every site.  We will have enough of a challenge making
> > changes, if a change requires that we add / modify a column to their
> > database.
> >
> > Problem:
> > During testing, I referenced a .taf that was working perfectly, in
> > it's own folder, from a .taf in another folder, with the <@include
> > file="displayTAF.taf"> tag, within a "Results" field.  The result that
> > I got was:
> >     first,  A header that said "Form Page" that I could not find with
> > a "Find" search
> >     second, SQL info, in simple English, as acronyms.
> >     followed by, all the pages of the .taf, separated by "]]>" at the
> > beginning and the end of each.
> >
> > I then added the "_function" call, to specify a page, but got no
> > results, at all.
> >
> > My Question:
> > Is there a way for us to make a change to one page, where all the
> > different web sites will benefit from the changes, shy of putting
> > "<@INCLUDE file="">, everywhere on there site.  Realizing that this
> > will only work for simple changes, and useless if structural changes
> > are made.
> >
> > Thank you,
> > Gerard
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to