Hi Alexander,
cheers! The w3schools site is always a good place to get some infos :).
...but I was looking for infos for the XPath transformer of cocoon.
Thanks anyway
king regards thorsten
Alexander Beening wrote:
Hi, Thorsten
Take a look at http://www.w3schools.com/xsl/xsl_functions.asp. Maybe you'll find something that could help
Bye,
Alexander
Thorsten Scherler wrote:
Hello users,
I am looking for information/documentation on the XPath transformer. Does anybody have some good links? I searched the wiki but did not get very much out of it. The XPath transformer is not listed at http://cocoon.apache.org/2.1/userdocs/transformers/transformers.html either!
*Background* I have the following transformation: <map:transform type="xpath"> <map:parameter name="include" value="//[EMAIL PROTECTED]'true']"/> </map:transform>
That will include all nodes (and their children) that have the attribute wholesite='true'. e.g.
<samples label="Samples" href="samples/" tab="samples" wholesite="true">
<sample2 label="Static content" href="sample2.html" description="More Samples" />
<sample-wiki label="Wiki page" href="wiki-sample.html" description="wiki-sample" />
<sample-ihtml label="ihtml page" href="ihtml-sample.html" description="Test iHTML page" />
</samples>
But now I want to exclude some of the children with the attribute wholesite='false'. e.g.
<samples label="Samples" href="samples/" tab="samples" wholesite="true">
<sample2 label="Static content" href="sample2.html" description="More Samples" wholesite='false'/>
<sample-wiki label="Wiki page" href="wiki-sample.html" description="wiki-sample" />
<sample-ihtml label="ihtml page" href="ihtml-sample.html" description="Test iHTML page" />
</samples>
I thought about something like:
<map:parameter name="include" value="//[EMAIL PROTECTED]'true']//[EMAIL PROTECTED]'false']"/>
...but that gave me a blank page!
Then I tried <map:transform type="xpath"> <map:parameter name="include" value="//[EMAIL PROTECTED]'true']"/> <map:parameter name="exclude" value="//[EMAIL PROTECTED]'false']"/> </map:transform>
...and it worked just fine, but it would be nice to have a documentation on that because I came up with the solution after try'n error ;-).
King regards thorsten
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Thorsten Scherler
Departamento de Desarrollo de Proyectos Sociedad Andaluza para el Desarrollo de la Sociedad de la Informaci�n S.A.U. Avda. de la Arboleda s/n 41940 - Tomares, (Sevilla) Tlfn: (+34) 955 062 627 e-mail: [EMAIL PROTECTED]
Este correo electr�nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci�n de car�cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgaci�n, copia o distribuci�n a terceros sin la previa autorizaci�n escrita de "Sociedad Andaluza para el Desarrollo de la Sociedad de la Informaci�n, S.A.U.". Si no es Ud. el destinatario del mensaje le ruego lo destruya sin hacer copia digital o f�sica, comunicando a Sociedad Andaluza para el Desarrollo de la Sociedad de la Informaci�n S.A.U. v�a e-mail o fax la recepci�n del presente mensaje. Toda declaraci�n de voluntad contenida deber� ser tenida por no producida. Gracias. ____________________________________________________________________________ ___________________
The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of "Sociedad Andaluza para el Desarrollo de la Sociedad de la Informaci�n, S.A.U.". If you are not the formal receiver of this message please destroy it without making any digital or physical copy and inform "Sociedad Andaluza para el Desarrollo de la Sociedad de la Informaci�n S.A.U." , by e-mail or fax, of the reception of the present message. Any whatsoever involuntary declaration contained herewith must be taken as having no legal effect. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
