Results 1 to 3 of 3

Thread: HTML tags in XML (Resolved)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2002
    Posts
    746

    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? "&lt;" just produces literals as does CDATA.

    Any help? Thanks.
    Last edited by Briantcva; Jan 29th, 2004 at 01:39 PM.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2002
    Posts
    746
    Like a charm, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width