Re: XML include for masthead and navigation

2001-12-05 Thread Adrian Geissel
Title: Message



Richard,

Have a look at map:aggregate/ and 
map:part/ in the sitemap. This allows you to merge mulitple XML sources, 
and then transform using a single xml-html stylesheet.

Hope this helps,
Adrian

  - Original Message - 
  From: 
  therandthem 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, December 04, 2001 6:13 
  PM
  Subject: XML include for masthead and 
  navigation
  
  I know that this 
  list is for Cocoon specific questions but with so many options available to me 
  in Cocoon, I thought I might ask it here.
  
  I am using Cocoon 
  2 and would like to have standard headers and footers on every page. I 
  have my site navigation in the Header. I would like the navigation to 
  get its information from a totally seperate XML file that only has data (no 
  presentation, XSL or logic, XSP). Something like 
  this:
  
  menu
   item 
  name="Home" uri="/welcome"
   
  item name="Services" uri="/services"/
   
  item name="Products" uri="/services"/
   
  /item
   item 
  name="About Us" uri="/aboutus"
  /menu
  
  I don't want my 
  individual pages to have any concept of this "menu.xml" file. I'd like 
  to reference"menu.xml"from somewhere like XSL, read in the values 
  and prepend the generated pages with the Header and this navigation 
  content. The end result being, I can add and remove values from one file 
  and have it can the navigation on all pages, instantly. What is the most 
  simple way to do this in Cocoon 2?
  
  Thanks for any 
  help,
  
  Richard


XML include for masthead and navigation

2001-12-04 Thread therandthem
Title: Message



I know that this 
list is for Cocoon specific questions but with so many options available to me 
in Cocoon, I thought I might ask it here.

I am using Cocoon 2 
and would like to have standard headers and footers on every page. I have 
my site navigation in the Header. I would like the navigation to get its 
information from a totally seperate XML file that only has data (no 
presentation, XSL or logic, XSP). Something like this:

menu
 item 
name="Home" uri="/welcome"
 
item name="Services" uri="/services"/
 
item name="Products" uri="/services"/
 
/item
 item 
name="About Us" uri="/aboutus"
/menu

I don't want my 
individual pages to have any concept of this "menu.xml" file. I'd like to 
reference"menu.xml"from somewhere like XSL, read in the values and 
prepend the generated pages with the Header and this navigation content. 
The end result being, I can add and remove values from one file and have it can 
the navigation on all pages, instantly. What is the most simple way to do 
this in Cocoon 2?

Thanks for any 
help,

Richard