Here is my sample xml
<?xml version="1.0"?>
<abc:testNews xmlns:rcdc="
http://abc.com" xmlns:xhtml="
http://www.w3.org/1999/xhtml" xmlns:xf="
http://www.w3.org/2002/xforms" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:ev="
http://www.w3.org/2001/xml-events" xmlns:chiba="
http://chiba.sourceforge.net/xforms">
<abc:pageDetails>
<abc:year>2007</abc:year>
<abc:pressRelease>
<abc:newsXMLPath>/press1.xml</abc:newsXMLPath>
</abc:pressRelease>
<abc:pressRelease>
<abc:newsXMLPath>/press2.xml</abc:newsXMLPath>
</abc:pressRelease>
</abc:pageDetails>
</abc:testNews>
press1.xml and press2.xml have same structure for example.
<news>
<title>News One </title>
<intro> This is introduction</intro>
</news>
Here is my XSL
<xsl:stylesheet version="2.0" xmlns:xhtml="
http://www.w3.org/1999/xhtml" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:abc="
http://abc.com" xmlns:fn="
http://www.w3.org/2005/02/xpath-functions" xmlns:exsl="
http://exslt.org/common" exclude-result-prefixes="xhtml">
<xsl:template match="/">
<xsl:for-each select="//abc:pressRelease">
<xsl:value-of select="abc:newsXMLPath"/>
</xsl:for-each>
<xsl:variable name="xmlpath" select="document('abc:newsXMLPath')"/>
</xsl:template>
</xsl:stylesheet>
This is an incomplete XSL. basically I am trying to print the Title of each news. News1 and news2.xml. Am I doing this wrong? What do I need to do in order to first get the xml location and than loop through to get the value of each title for news1 and news2.?