Michael Wechner wrote: > Hi > > Is anybody working on a XPath selector or XPath matcher? > > I have situations where I would like to select the pipeline or > at least the XSLT depending on the value of an attribute within the > generated XML. > > Thanks > > Michael
Why don't you use pure XSLT? An example: <data media="printer"> <table> <bla/> </table> </data> XSLT: <xsl:stylesheet> <xsl:import href="printer.xsl"/> <xsl:import href="pc-browser.xsl"/> <xsl:import href="pda-browser.xsl"/> </xsl:stylesheet> printer.xsl: <xsl:stylesheet> <xsl:template match="data[@media='printer']"> </xsl:template> <xsl:stylesheet> pc-browser.xsl: <xsl:stylesheet> <xsl:template match="data[@media='pc']"> </xsl:template> <xsl:stylesheet> and so on. The rest stays the same. Regards, Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>