cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Neigaard <s.neiga...@mobilethink.dk>
Subject sitemap newbie question
Date Thu, 08 Nov 2001 18:03:56 GMT
I want request http://host/* to be mapped to "client/media_pc/pages/", and I
want it to get it's XSL from "client/media_pc/pages/" (example:
http://host/test.xml -> "client/media_pc/pages/test.xml" and
"client/media_pc/pages/test.xsl").

I really dont know how to do this. This is what my guess is:

---------------------------------------
<map:match pattern="">
  <map:generate type="serverpages" src="client/media_pc/pages/{1}.xml"/>
  <map:transform type="xslt" src="client/media_pc/pages/{1}.xsl"/>
  <map:serialize/>
</map:match>
---------------------------------------

I know it shuldent work as I wanted, but if I do a
"http://host/adressbook_kontaktpersoner" it should give me some output
right!? It dosn't :(

The following stemap gives me the right output on "http://host/client":

---------------------------------------
<map:match pattern="client">
  <map:generate type="serverpages"
src="client/media_pc/pages/adressbook_kontaktpersoner.xml"/>
  <map:transform type="xslt"
src="client/media_pc/pages/adressbook_kontaktpersoner.xsl"/>
  <map:serialize/>
</map:match>
---------------------------------------

Please help a confused newbie :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect
................................
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: s.neigaard@mobilethink.dk
Web: www.mobilethink.dk
................................


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message