WeeZard wrote:
Is it possible to write an Input Module that would retrieve a value using an XPath expression from the document in the pipeline.
For example:

<map:generate src="test.xml">
   <map:transform src="first.xsl">
   <map:transform src="{xpath:document/[EMAIL PROTECTED]
   <map:serialize>
</map:generate>

I think this kind of input module would be very useful and I'm suprised it hasn't been writen yet. Or at least I haven't found it.
I think it's not that easy (if not impossible). Your document simply does not exist as a whole. There is only a bunch of SAX events going down the pipeline. AFAIK you need DOM to evaluate XPath - you do not have such here.

--
Leszek Gawron                                      [EMAIL PROTECTED]
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to