Web Development

How to get multiple xml files in XSL

Some times, you have to access more than one xml file in your xsl if you are developer guy. Normally one xml file and xsl file are transformed at a time. But if you want more than one xml file to access in your xsl file. Then you have to follow some tricky policy. Which also I have done.

Following code you have to use in your own way

<xsl:param name="getServerName"/>
<xsl:variable name="get" select="document(concat($getServerName, '/yourfoldername/yourWebserviceWhichReturnXml'))" />

Here also you can put your xml path. If you have no webservices.

Now you can use “get” variable

<div>< xsl:value-of select="urlD:decode($get/yourXmlTag)"/></div>

That’s it. Have an idea? Ok. No problem just let me know if you are in trouble.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s