Leading slash gets removed from navigation.xml hrefs during site generation

2003-12-09 Thread Jefferson K. French
I've read through several postings about multiproject site navigation
in the archives, and downloaded the WebShop example, but I'm still
unable to get absolute paths to work in my subprojects.

My multiproject/navigation.xml contains:

  menu name=Projects
#foreach ($reactorProject in $reactorProjects)
  item name=$reactorProject.name  href=/multiproject/${reactorProject.name}
#end
  /menu

But the leading slash is always missing from the resulting index.html
file:

  a href=multiproject/mdb-util/index.html.../a

In fact, the same thing happens with the hrefs in the parent's
xdocs/navigation.xml file.

Any ideas what I could be doing wrong?

I'm using RC2 built from CVS on 11/25/03. My xdoc plugin is
1.5-SNAPSHOT. Looks like its files have not been updated since my
11/25/03 install.

Jeff

-- 
mailto:[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leading slash gets removed from navigation.xml hrefs during site generation

2003-12-09 Thread Ben Walding
You probably want something like 
/absolute/multiproject/${reactorProject.name}

Jefferson K. French wrote:

I've read through several postings about multiproject site navigation
in the archives, and downloaded the WebShop example, but I'm still
unable to get absolute paths to work in my subprojects.
My multiproject/navigation.xml contains:

 menu name=Projects
   #foreach ($reactorProject in $reactorProjects)
 item name=$reactorProject.name  href=/multiproject/${reactorProject.name}
   #end
 /menu
But the leading slash is always missing from the resulting index.html
file:
 a href=multiproject/mdb-util/index.html.../a

In fact, the same thing happens with the hrefs in the parent's
xdocs/navigation.xml file.
Any ideas what I could be doing wrong?

I'm using RC2 built from CVS on 11/25/03. My xdoc plugin is
1.5-SNAPSHOT. Looks like its files have not been updated since my
11/25/03 install.
   Jeff

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Leading slash gets removed from navigation.xml hrefs during site generation

2003-12-09 Thread Kevin Hagel
I'm using the root context for one thing, and the site project page uses a
different context.  I'm also putting it all in a WAR and dumping it into my
JBoss deploy directory.

To enable this, for example with image paths,
img src=@contextRoot@/images/something.jpg/

and then do an ant replace:

  goal name=site-war prereqs=site, site-init
description=Create a WAR File from the generated site
mkdir dir=${docsDest}/WEB-INF /
filter token=ContextRoot value=${site.contextroot} /
replace dir=${docsDest}
  include name=**/*.css/
  include name=**/*.html/
  include name=**/*.fml/
  replacefilter token=@contextRoot@ value=${site.contextroot} /
/replace
war destfile=${maven.build.dir}/hagelnx-site.war
webxml=${basedir}/src/conf/web.xml
  fileset dir=${docsDest} /
/war
  /goal

Maven uses site, site:site, site:init kind of thing, I sort of stole that
nomenclature for site-init kind of thing.

This way I don't have to worry about what the site generation is doing or
not, at least I'm not having the same problem that you are having.

- Original Message - 
From: Ben Walding [EMAIL PROTECTED]
To: Maven Users List [EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 12:56 PM
Subject: Re: Leading slash gets removed from navigation.xml hrefs during
site generation


 You probably want something like
 /absolute/multiproject/${reactorProject.name}

 Jefferson K. French wrote:

 I've read through several postings about multiproject site navigation
 in the archives, and downloaded the WebShop example, but I'm still
 unable to get absolute paths to work in my subprojects.
 
 My multiproject/navigation.xml contains:
 
   menu name=Projects
 #foreach ($reactorProject in $reactorProjects)
   item name=$reactorProject.name
href=/multiproject/${reactorProject.name}
 #end
   /menu
 
 But the leading slash is always missing from the resulting index.html
 file:
 
   a href=multiproject/mdb-util/index.html.../a
 
 In fact, the same thing happens with the hrefs in the parent's
 xdocs/navigation.xml file.
 
 Any ideas what I could be doing wrong?
 
 I'm using RC2 built from CVS on 11/25/03. My xdoc plugin is
 1.5-SNAPSHOT. Looks like its files have not been updated since my
 11/25/03 install.
 
 Jeff
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]