document() function is used to get references to another XML document (from within your XSLT stylesheet). It doesn't do the job of transformation. The logic of transformation is written within your stylesheet.
Regarding your question about CDATA - anything written within CDATA section is treated as a normal text node. You cannot treat something written in CDATA section as markup. On 1/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi, Can I use document() function to transform a XML document emebedded within CDATA section of an XML document ? <?xml version="1.0" encoding="utf-16"?> <Envelope version="01.00"> <Packet> <Payload><![CDATA[<?xml version="1.0"?><foo> <Test1>1234</Test1> </foo>]]></Payload> </Packet> </Envelope> Thanks in adavance. -Pradeep In a message dated 1/29/2007 6:52:02 PM Eastern Standard Time, [EMAIL PROTECTED] writes: Use the XSLT document() function to access the second source file, then write your transform to retrieve the needed data from both. ______________________________________ "... Three things see no end: A loop with exit code done wr ng, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.org/pegasus/songs/threes-rev-11.html)
-- Regards, Mukul Gandhi