Connecting Tech Pros Worldwide Forums | Help | Site Map

acessing an XML file from XSLT

Newbie
 
Join Date: Aug 2008
Posts: 1
#1: Aug 4 '08
I am new to programming and I need some quick solution to my problem.

I have added an xml file (keys.xml) to my project as an embedded resource. How can I acess this file from an xsl file (also added as embedded resource). This is what I am trying to do.
Expand|Select|Wrap|Line Numbers
  1. <xsl:variable name="keys" select="try and acess the xml file"></xsl:variable>
Please help at the earliest. Thanks in advance
Dahlia.

Moderator
 
Join Date: Mar 2006
Posts: 1,103
#2: Aug 6 '08

re: acessing an XML file from XSLT


Document function
http://www.w3schools.com/xsl/func_document.asp

<xsl:variable name="keys" select="document('keys.xml')"/>
Reply