You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Yatin Shah <no...@kripa.com> on 2002/11/20 18:09:08 UTC

URI parts extraction

Is there an existing component(a Matcher!) which will extract individual
names from a URI?
What I want is:
Given http://hostname/cocoon/dir1/dir2/dir3/dir4/file1
I want XML file as follows:

<uri>
<node> cocoon </node>
<node> dir1 </node>
<node> dir2 </node>
<node> dir3 </node>
<node> dir4
   <leaf>file1</leaf>
</node>
</uri>

[Although I do not need it, we can have <hostname>,<port>,<protocol> 
tags to the xml file as well].
-Yatin

-- 
Yatin Shah, President                       mailto:ygs@kripa.com
Kripa Inc.                                  http://www.kripa.com
Dayton, New Jersey USA                      phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications




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

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