Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

content of element equals to the name of an external file, how?

Status
Not open for further replies.

starfish88

Technical User
Jun 20, 2005
2
US
Hi all, if I want the xsl stylesheet to output an xml file that contains an element, which its content is the name of another file in the very same folder/location, does xslt have a way to do so, or I will need to embed some other scripting languages, such as javascript?

Thank you.


Will
 
Something like:
Code:
<xsl:variable name="myDoc">
  <xsl:value-of select="document('theDoc.xml')/theElement"/>
</xsl:variable>
<xsl:value-of select="document($myDoc)"/>

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top