cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Heid <h...@fh-heilbronn.de>
Subject AW: sitemap newbie question
Date Thu, 08 Nov 2001 09:02:57 GMT
Your pattern is wrong.
It only works for http://host/
I think you're looking for the pattern="*.xml" or pattern="*.xml" (if you
want to support subdirs).


-----Ursprüngliche Nachricht-----
Von: Søren Neigaard [mailto:s.neigaard@mobilethink.dk]
Gesendet: Donnerstag, 8. November 2001 19:04
An: cocoon-users@xml.apache.org
Betreff: sitemap newbie question


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>


---------------------------------------------------------------------
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