[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: Fri, 18 Sep 1998 10:27:27 -0400
Re: XSL: xt question
At 98/09/18 09:01 -0500, Glenn R. Kronschnabl wrote:
>I am trying to use xt and I want to be able to spit
>out a single '<BR>' in a template, but everything I have
>tried fails.  I know this is partly the blame of 
>the browsers, since <BR/> is the proper way, but
>netscape at least ignores that.  

I too discovered that when I tried to do <HR/> ... I ended up doing <HR
width="100%"> instead and that worked.

So, just now I tried <BR/> and agree with you Netscape ignores it, so I
created  <BR bogus="bogus"/> and this version of the BR command is
respected by Netscape (since it ignores bogus attribute values).

I hope this helps.

.......... Ken

T:\FTEMP>type test.xml
<?xml version="1.0"?>
<test>
<para>This</para>
<para>That</para>
</test>

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 bogus="bogus"/>
</xsl:template>

</xsl:stylesheet>

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

This<br bogus="bogus"/>
That<br bogus="bogus"/>

T:\FTEMP>



--
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
  • XSL: xt question
    • Glenn R. Kronschnabl - Fri, 18 Sep 1998 10:01:30 -0400 (EDT)
      • 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)
      • <Possible follow-ups>
      • Don Park - Sat, 19 Sep 1998 18:56:38 -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.