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

reading xslt usinf tDom

Status
Not open for further replies.

VrushJ

Programmer
Jul 16, 2008
1
US
Hi,

I have question regarding opening a xsl file using tdom:

My code is like this:
package require tdom
set gamedata [tDOM::xmlOpenFile LVopa_video_casper8063.xml]
set gamedoc [dom parse -channel $gamedata]
close $gamedata


set xsldata [tDOM::xmlOpenFile Lvopa-video.xsl]***===>not sure how to read .xsl file tDOM::xmlOpenFile gives an error "not well formed "

set soccerstyle [dom parse -channel $xsldata]
close $xsldata

$gamedoc xslt $soccerstyle gamehtml

$gamehtml asXML


set fd [open LvopaVideo.html w]
puts $fd "<?xml ...?>"
$gamehtml asXML -channel $fd
close $fd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top