|
-
Jan 29th, 2004, 10:34 AM
#1
Thread Starter
Fanatic Member
HTML tags in XML (Resolved)
I have a set of instructions in XML that is being passed through XSLT for HTML output. Some of the instructions (or rather, parts thereof) need HTML tags in them. A simple example:
Code:
<instruction><b>DO NOT</b> press anything.</instruction>
<instruction>Go to <a href="http://mysite.com">My Site</a> for additional help</instruction>
It's easy enough to format the entire node w/ XSLT but how to format just bits of one? "<" just produces literals as does CDATA.
Any help? Thanks.
Last edited by Briantcva; Jan 29th, 2004 at 01:39 PM.
-
Jan 29th, 2004, 01:33 PM
#2
Just do a <xsl:copy />. It should copy the tags as they are to the destination document.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 29th, 2004, 01:39 PM
#3
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|