Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to use include files?
How to use include files? [message #206498] Tue, 08 January 2008 18:23 Go to next message
Eclipse User
Originally posted by: sstark.us.ibm.com

Hi, hopefully this is the right group to post to. According to this page:

http://help.eclipse.org/help32/topic/org.eclipse.platform.do c.isv/guide/ua_dynamic_includes.htm

I should be able to use an include file in Eclipse. However nothing
appears when I point to an include file.

<include file="./include.htm/product_version" />

Here's the contents of my include file include.htm:

<p id="product_version">
IBM Informix Dynamic Server, Version 11
</p>

Am I doing something wrong?

thanks,
Scott
Re: How to use include files? [message #206507 is a reply to message #206498] Wed, 09 January 2008 11:34 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
Hi Scott,

This isn't really the right forum but according to the documentation you
referenced your include isn't structured correctly. Your include needs to
follow this structure:

<include path="my.plugin.id/path/copyright.xhtml/copyright"/>

In your case it would need to look something like

<include
path=" com.ibm.informixserver/path_to_included_file/include.htm/pro duct_version "
/>

Assuming that

1. com.ibm.informixserver is your plug-in identifier
2. path_to_included_file is the relative path to the included file in your
plug-in
3. your file is named produce_version and is stored in the include.html
folder

Lawrence Mandel
-
Co-author Eclipse Web Tools Platform: Developing Java Web Applications
http://www.eclipsewtp.org
Re: How to use include files? [message #206525 is a reply to message #206507] Wed, 09 January 2008 12:58 Go to previous message
Eclipse User
Originally posted by: sstark.us.ibm.com

Hi Lawrence, Sorry about the mis-post -- I'll try the newcomer group.
I've tried what you describe below but still can't get it to work. If my
include file is in the same directory, I assume path_to_included_file
would simply be "." right? and my plug-in identifier is the one where my
html file (the one that contains the <include> statement) lives? In my
case it's com.ibm.srcf-doc.doc. That would make it:
<include path="com.ibm.srcf-doc.doc/./include.htm/product_version" />
If my include file is in another plug-in, it would be:
<include
path=" com.ibm.srcf-doc.doc/../com.ibm.test.doc/include.htm/product _version "
/>
Neither of those works however.

> <include path="my.plugin.id/path/copyright.xhtml/copyright"/>

> In your case it would need to look something like

> <include
>
path=" com.ibm.informixserver/path_to_included_file/include.htm/pro duct_version "
> />

> Assuming that

> 1. com.ibm.informixserver is your plug-in identifier
> 2. path_to_included_file is the relative path to the included file in your
> plug-in
> 3. your file is named product_version and is stored in the include.htm
> folder

I assume you have #3 backwards -- the file is named include.htm and the id
of the element in the include file is product_version, correct?

thanks,
Scott
Previous Topic:Custom editor embedded in an html file
Next Topic:mystery schema error with redefines
Goto Forum:
  


Current Time: Wed Aug 20 01:05:19 EDT 2014

Powered by FUDForum. Page generated in 0.39780 seconds