Re: XSL: xt question

Subject: Re: XSL: xt question
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
Date: Fri, 18 Sep 1998 10:27:27 -0400
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