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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

including html from external file in xsl 1

Status
Not open for further replies.

birney29

Programmer
Oct 11, 2001
140
GB
im using xsl to create HTMl. i want part of the html to come from an external fil eg, dropDown.inc

i have tried using <!--#include file=&quot;dropDown.inc&quot; but this doesnt work!

any ideas what i could use?


thanks Kenneth Birney
User Interface Programmer
Scottish Police
 
maybe you're trying to do something different to what i think but in the xsl you can copy in an external file like







<xsl:copy-of select=&quot;document('ext.html')&quot;/>







i think this is ok :)
 
mr tom your a godsend! one problem, when i do what you say, i get the error&quot; cannont use this name space with &quot;copy of&quot; so what name space should i use?

thanks Kenneth Birney
User Interface Programmer
Scottish Police
 
hmmm. i've used this before and never had any problems.
if you've defined any namespaces anywhere then that could cause a problem but i don't know why it would.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top