XSLT as an HTML based Template

Please support our XML, XSLT and XPATH advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2009
Posts: 2
Reputation: jsmunroe is an unknown quantity at this point 
Solved Threads: 0
jsmunroe jsmunroe is offline Offline
Newbie Poster

XSLT as an HTML based Template

 
0
  #1
Nov 9th, 2009
Is there a way to parse HTML within an XML element in an XSLT stylesheet? I am using XSLT to create a template but I want the XML instance to contain HTML markup. I find that the value-of element ignores the HTML markup altogether. There just has to be a solution to this. I can imagine people running into this all the time.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 2
Reputation: jsmunroe is an unknown quantity at this point 
Solved Threads: 0
jsmunroe jsmunroe is offline Offline
Newbie Poster
 
0
  #2
Nov 9th, 2009
I figured out my answer.

First, don't use CTEXT in the XML instance. Second, instead of using "value-of", use "copy-of". It works beautifully.
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 605 | Replies: 1
Thread Tools Search this Thread



Tag cloud for XML, XSLT and XPATH
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC