Output SML with XHTML with XSLT

Posted on 2006-04-10
Last Modified: 2010-04-17
Hi, I have XML similar to:

    <content>This is <b>an</b> element<content>
    <content>This is <br />another element<content>

I want to print out each on with XSLT. I would think I could do it with something like:

<xsl:for-each select="element">
  <xsl:value-of select="content"/>

However this just outputs:

This is an element
This is another element

No style or line break. Does anyone know how to output the XHTML aswell. Thanks.

Question by:samblake
    LVL 9

    Accepted Solution

    <xsl:for-each select="element">
      <xsl:copy-of select="content"/>
    LVL 1

    Author Comment

    Ah, excelent. Thanks a lot.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    tripleUp challenge 7 54
    zeroMAx challenge 20 66
    object oriented javascript web form 8 51
    word0 challenge 4 37
    Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now