This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: HTML in an XML tag
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 5 Sep 2002 16:27:52 -0400
- Subject: Re: [xsl] HTML in an XML tag
- References: <DF5F8B4DEA1A5044AE71C1F9F0CDAD5F12071D@slurpy.tnow.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
[Mac Rost]
I do not get what you say you got. Here is the exact output I got:
<html>
<div>Area Attractions: -Cherry Creek State Park 1 Block
<br> -Aurora Mall 2 Miles <br> -Movie Theaters 4 Miles
<br> -Fidlers Green 10 Miles <br> -Park Meadows Mall 15
Miles <br> -Downtown Denver 20 Miles</div>
</html>
I have run this with msxml3 and Saxon. The input is the xml you posted,
copied and pasted from your post.
Why don't you send me - do not copy it to the group - the exact xml file and
the exact stylesheet that produced the result with the escaped <br>
elements? I will look at them.
Tom P
[[Tom
The stylesheet already inserts <br> elements in place of the <br>.
That gives you the line break. If you view the output in a browser, it
is
not on eone line but rather broken up into the individual lines. If you
view the output in a text editor it is possible the entire text block
would
be shown on one line but not in a browser.
For example, here is a fragment of the output showing the existence of
(real, not escaped) <br> elements:
Cherry Creek State Park 1 Block <br> -Aurora Mall 2 Miles <br>
If you want some other result you will have to be more clear about what
you
want.
]]
Sorry if I'm being a little dense today... :-) here is what I get:
<div>Area Attractions:
- Denver Zoo, 4 miles &lt;br&gt; - Museum of Natural Science, 4
miles &lt;br&gt; - Coors Field, 7 miles &lt;br&gt; -
Invesco Field, 7 miles &lt;br&gt; - Pepsi Center, 7 miles
&lt;br&gt; - National Western Complex, 2 miles
&lt;br&gt; - Downtown Denver, 8 miles &lt;br&gt; - Six
Flags Elitch Gardens, 7 miles &lt;br&gt; - Ocean Journey, 7
miles &lt;br&gt; - Cherry Creek Mall, 5 miles &lt;br&gt;
- U.S. Mint, 8 miles &lt;br&gt; - Capital, 8 miles
&lt;br&gt; - Botanic Gardens, 8 miles &lt;br&gt; - UAL
Flight Training Center, .5 miles &lt;br&gt;</div>
This is what was returned after processing... any ideas?(It's like this
in a browser too)
Mac
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list