Stefano Mazzocchi | 1 Mar 2003 10:34
Picon
Favicon

Re: [RT] Dynamic sitemaps

Jeff Turner wrote:

> At the moment, <map:mount>'s src attribute doesn't allow for arbitrary
> Sources, but I imagine that could be fixed.

When I hear 'dynamic sitemap', all my FS alarms go off.

> Thoughts?

This said, why don't you use the XConfTool that Cocoon uses in its build 
to append pipelines in the sitemap at build time?

This is how I'm probably going to do samples build for Cocoon 2.1, it's 
hacky, I know, but it's a step forward and cocoon blocks in Cocoon 2.2 
will solve the issues completely.

Please, don't go down the dynamic sitemap path, it's the road to a hell.

--

-- 
Stefano Mazzocchi                               <stefano <at> apache.org>
    Pluralitas non est ponenda sine necessitate [William of Ockham]
--------------------------------------------------------------------

Peter B. West | 1 Mar 2003 12:20
Picon
Picon

Foreign html + javascript links + .js file

Hi,

I haven't been following the argument for a few weeks, so I am after the 
  currently recommended method of creating and integrating files which 
should source a .js file in script tags, and support javascript: hrefs 
which will have the effect of displaying/hiding foreign html in inline 
frames.  In a previous life, the foreign html (including the html which 
referenced it) was dropped into src/documentation/content beside xdocs/

So, in a nutshell;

How do I describe the main files?
How do these files get the .js contents into the script element?
Where do I put the foreign html and how do I refer to it?

--

-- 
Peter B. West  pbwest <at> powerup.com.au  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"

Jeff Turner | 1 Mar 2003 12:34
Picon
Favicon

Re: [RT] Dynamic sitemaps

On Sat, Mar 01, 2003 at 10:34:20AM +0100, Stefano Mazzocchi wrote:
> Jeff Turner wrote:
> 
> >At the moment, <map:mount>'s src attribute doesn't allow for arbitrary
> >Sources, but I imagine that could be fixed.
> 
> When I hear 'dynamic sitemap', all my FS alarms go off.

:) Think of it this way: the resource-exists action is an evil blight on
sitemaps everywhere.  Actions are the equivalent of <if> tasks in Ant.
The solution I'm proposing is similar to Myrmidon's answer to <if>;
"unroll" the complexity by adopting a two-step process:

1) Evaluate all conditionals, and generate a simple static script/sitemap
2) Run the generated script/sitemap.

Isn't that cleaner than having switches and if-then-elses that sprout in
any non-trivial sitemap?  Is there a better solution on the horizon?

> >Thoughts?
> 
> This said, why don't you use the XConfTool that Cocoon uses in its build 
> to append pipelines in the sitemap at build time?
> 
> This is how I'm probably going to do samples build for Cocoon 2.1, it's 
> hacky, I know, but it's a step forward and cocoon blocks in Cocoon 2.2 
> will solve the issues completely.

It sounds to me like blocks are to Cocoon what Centipede Cents are to
Ant: a packaging and assembly system. They do not relieve the need for
(Continue reading)

Peter B. West | 1 Mar 2003 12:38
Picon
Picon

Re: Foreign html + javascript links + .js file

Peter B. West wrote:
> How do I describe the main files?
> How do these files get the .js contents into the script element?
> Where do I put the foreign html and how do I refer to it?

And how do I get the hrefs defined.  E.g.
<span id ="span04" ></span ><a href= "javascript:toggleCode( 'span04',
         'Direction.html#getEnumIndex', '50%', '100%' )" ><span
         class="codefrag">int getEnumIndex(String)</span></a>

The Direction.html is "foreign" html.
--

-- 
Peter B. West  pbwest <at> powerup.com.au  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"

Jeff Turner | 1 Mar 2003 12:43
Picon
Favicon

Re: Foreign html + javascript links + .js file

On Sat, Mar 01, 2003 at 09:20:28PM +1000, Peter B. West wrote:
> Hi,
> 
> I haven't been following the argument for a few weeks, so I am after the 
>  currently recommended method of creating and integrating files which 
> should source a .js file in script tags, and support javascript: hrefs 
> which will have the effect of displaying/hiding foreign html in inline 
> frames.  In a previous life, the foreign html (including the html which 
> referenced it) was dropped into src/documentation/content beside xdocs/
> 
> So, in a nutshell;
> 
> How do I describe the main files?
> How do these files get the .js contents into the script element?
> Where do I put the foreign html and how do I refer to it?

You could have a regular well-formed HTML file:

<html>
  <body>
    <script language="JavaScript" type="text/javascript" src="resources/script.js"/>
    <h1>Blah ..</h1>
    ....
  </body>
</html>

If saved with a .ehtml extension ("embedded html"), everything below the
<body> is copied across verbatim, and the header and menus are added.

There is an example of this at
(Continue reading)

Peter B. West | 1 Mar 2003 12:59
Picon
Picon

Re: Foreign html + javascript links + .js file

Jeff,

Thanks.  That's exactly what I want to do.  I presume that I must simply 
maintain all the proper relativities in the links between these files, 
and back to the generated files?

Peter

Jeff Turner wrote:
> On Sat, Mar 01, 2003 at 09:20:28PM +1000, Peter B. West wrote:
> 
>>Hi,
>>
>>I haven't been following the argument for a few weeks, so I am after the 
>> currently recommended method of creating and integrating files which 
>>should source a .js file in script tags, and support javascript: hrefs 
>>which will have the effect of displaying/hiding foreign html in inline 
>>frames.  In a previous life, the foreign html (including the html which 
>>referenced it) was dropped into src/documentation/content beside xdocs/
>>
>>So, in a nutshell;
>>
>>How do I describe the main files?
>>How do these files get the .js contents into the script element?
>>Where do I put the foreign html and how do I refer to it?
> 
> 
> You could have a regular well-formed HTML file:
> 
> <html>
(Continue reading)

Peter B. West | 1 Mar 2003 13:04
Picon
Picon

Re: Foreign html + javascript links + .js file

Jeff Turner wrote:
> 
> You could have a regular well-formed HTML file:
> 
> <html>
>   <body>
>     <script language="JavaScript" type="text/javascript" src="resources/script.js"/>
>     <h1>Blah ..</h1>
>     ....
>   </body>
> </html>
> 
> If saved with a .ehtml extension ("embedded html"), everything below the
> <body> is copied across verbatim, and the header and menus are added.

Jeff,

Where do the .ehtml files go?  In xdocs/ or beside the foreign html 
(which must not get the headers and menus)?
--

-- 
Peter B. West  pbwest <at> powerup.com.au  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"

Jeff Turner | 1 Mar 2003 13:11
Picon
Favicon

Re: Foreign html + javascript links + .js file

On Sat, Mar 01, 2003 at 09:59:52PM +1000, Peter B. West wrote:
> Jeff,
> 
> Thanks.  That's exactly what I want to do.  I presume that I must simply 
> maintain all the proper relativities in the links between these files, 
> and back to the generated files?

Yes, usual linking rules apply (you can use 'site:' links if you want).
If you had:

src/documentation/content/xdocs/design/alt.design/properties.ehtml
src/documentation/content/design/alt.design/properties/Property.html

Then <a href="Property.html">property</a> in properties.ehtml should
work.

--Jeff

[1] http://xml.apache.org/forrest/linking.html

> 
> Peter

Jeff Turner | 1 Mar 2003 13:12
Picon
Favicon

Re: Foreign html + javascript links + .js file

On Sat, Mar 01, 2003 at 10:04:06PM +1000, Peter B. West wrote:
> Jeff Turner wrote:
> >
> >You could have a regular well-formed HTML file:
> >
> ><html>
> >  <body>
> >    <script language="JavaScript" type="text/javascript" 
> >    src="resources/script.js"/>
> >    <h1>Blah ..</h1>
> >    ....
> >  </body>
> ></html>
> >
> >If saved with a .ehtml extension ("embedded html"), everything below the
> ><body> is copied across verbatim, and the header and menus are added.
> 
> Jeff,
> 
> Where do the .ehtml files go?  In xdocs/ or beside the foreign html 
> (which must not get the headers and menus)?

In xdocs/, as they are XML.

--Jeff

> -- 
> Peter B. West  pbwest <at> powerup.com.au  http://www.powerup.com.au/~pbwest/
> "Lord, to whom shall we go?"
> 
(Continue reading)

admin | 1 Mar 2003 21:06

Forrestbot and http

Hello,

Just trying to clarify something -- is ForrestBot capable of getting
docs from the remote http server (not a CVS repository). I could not
find the relevant get-src.

-- Sergey


Gmane