cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo" <lav...@arsenio.net>
Subject XML selector
Date Thu, 06 Sep 2001 07:49:55 GMT
Hi there! I'm a newbie here and i wish to ask you a simple question: i
need to write an XML selector that does something like this:

	<map:match pattern="*">
 	   <map:generate type="serverpages" src="db.xsp"/>

	   <map:select type="xml" node="/test/test2/flag">
	      <!-- you could insert parameters here as well -->
	      <map:when test="normal">
   	         <map:transform src="stylesheets/normal.xsl"/>
	      </map:when>
	      <map:when test="special">
   	         <map:transform src="stylesheets/special.xsl"/>
		 <map:serialize/>
	      </map:when>
	      <map:otherwise>
   	         <map:transform src="stylesheets/default.xsl"/>
	      </map:otherwise>
	   </map:select>

   	   <map:transform src="stylesheets/dynamic-page2html.xsl"/>
   	   <map:serialize/>
   	</map:match>

But I still not know perfectly how XML stream in handled inside a
pipeline. So, how can I access the XML input stream from a selector or a
matcher?

Thanks in advance.

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message