943,962 Members | Top Members by Rank

Ad:
Nov 9th, 2009
0

XSLT as an HTML based Template

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jsmunroe is offline Offline
2 posts
since Nov 2009
Nov 9th, 2009
0
Re: XSLT as an HTML based Template
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jsmunroe is offline Offline
2 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in XML, XSLT and XPATH Forum Timeline: How to Compare Date in XPath Expression
Next Thread in XML, XSLT and XPATH Forum Timeline: Fetch live scores and save them to database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC