how check doument is exist using xsl?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
How i check
Code:
select="document(02.xml)/*/Person"/
and
Code:
select="document(04.xml)/*/Person"/
is available in xsl. when xsl is running
<pre class="prettyprint <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform
<xsl:output method="xml" indent="yes"/>

<xsl:template match="/xmlResponse
<xsl:copy>
<xsl:apply-templates select="document(02.xml)/*/Person"/>
<xsl:apply-templates select="document(04.xml)/*/Person"/>
</xsl:copy>
</xsl:template>

<xsl:template match="@* | node()
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
[/code]
<br/>


View the full article
 
Back
Top