Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2008, 06:03 PM
Registered User
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying < and > in browser

I am using XSL to generate HTML, however, there is one section of the page where I need to render XML in the browser. The output needs to be:

<div class="body">
<pre>
&lt;Author&gt;Poe&lt;/Author&gt;
</pre>
</div>

The Input is:

<root>
<Author>Poe</Author>
<Book>Title</Book>
</root>

What I was trying:

<div class="body">
<xsl:variable name="entry"><xsl:copy-of select="Author"/></xsl:variable>

<pre>
<xsl:copy-of select="$entry"/>
</pre>

There will be a much larger unknown data set that needs to display, but for now I would settle with <Author>.

I did notice that this post is very similar to a previous post, however, I am unable to use the posted solution as the node structure of the elements to be displayed in the browsers is unknown.
 
Old January 24th, 2008, 08:49 PM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

See here:

http://p2p.wrox.com/topic.asp?TOPIC_ID=68548

It applies to you question.

Good Luck







Similar Threads
Thread Thread Starter Forum Replies Last Post
<table> not displaying because of <iframe> crmpicco HTML Code Clinic 16 October 6th, 2007 04:46 PM
<fo:external-graphic> not displaying image devauk XSLT 0 July 18th, 2006 11:40 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 05:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.