You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jörn Heid <he...@fh-heilbronn.de> on 2001/11/08 10:02:57 UTC

AW: sitemap newbie question

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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


SV: sitemap newbie question

Posted by Søren Neigaard <s....@mobilethink.dk>.
yup you right, didn't see that one. Thanks.

-----Oprindelig meddelelse-----
Fra: Jörn Heid [mailto:heid@fh-heilbronn.de]
Sendt: 8. november 2001 01:03
Til: cocoon-users@xml.apache.org
Emne: AW: sitemap newbie question


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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>