[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL: xt question

Subject: Re: XSL: xt question
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
Date: Sat, 19 Sep 1998 16:20:28 -0700
xsl xt xml
At 98/09/19 15:57 -0700, Don Park wrote:
>Use <br /> or <hr />.  Both Netscape Navigator and Internet Explorer will
>ignore the / if there is a whitespace after the tag name.

When I tried this originally, the following happened (recreated):

T:\FTEMP>type test.xml
<?xml version='1.0'?>
<doc>
<para>Test 1</para>
<para>Test 2</para>
</doc>

T:\FTEMP>type test.xsl
<?xml version='1.0'?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="para">
    <xsl:process-children/><br />
</xsl:template>

</xsl:stylesheet>

T:\FTEMP>call xsl test.xml test.xsl test.htm
T:\FTEMP>type test.htm

Test 1<br/>
Test 2<br/>

T:\FTEMP>


As you can see, XT's XML processor is throwing away the ignorable
whitespace in the BR tag and will not preserve the space in the tag that is
emitted.

If this had worked, I wouldn't have resorted to the bogus="bogus" attribute
trick.

.............. Ken

--
G. Ken Holman               mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/s/
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995
Training:   http://www.CraneSoftwrights.com/s/schedule.htm
Resources: http://www.CraneSoftwrights.com/s/resources.htm
Shareware: http://www.CraneSoftwrights.com/s/shareware.htm


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Re: XSL: xt question, (continued)
    • G. Ken Holman - Fri, 18 Sep 1998 10:25:11 -0400 (EDT)
      • alex - Fri, 18 Sep 1998 12:12:10 -0400 (EDT)
    • alex - Fri, 18 Sep 1998 12:10:42 -0400 (EDT)
    • Don Park - Sat, 19 Sep 1998 18:56:38 -0400 (EDT)
      • G. Ken Holman - Sat, 19 Sep 1998 19:19:34 -0400 (EDT) <=
      • James Clark - Sun, 20 Sep 1998 00:53:02 -0400 (EDT)
    • Don Park - Sat, 19 Sep 1998 19:54:13 -0400 (EDT)
    • Don Park - Sat, 19 Sep 1998 21:14:00 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.