Re: [xsl] matching <br/> v. <br></br>

Subject: Re: [xsl] matching <br/> v. <br></br>
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 31 Jan 2001 13:27:39 -0800
Sorry That was not clear enough and perhaps misleading.  Here is a
reproducible set of XSL and XML.

Note that when the para's are enclosed in a span with a font class this
behavior happens.  But when the span is removed the output of the <br></br>
is passed through to be seen by a user:

XML (run in coocon or command line with Xalan)
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<?cocoon-process type="xslt"?>

  <para>kjdsf sdlfkjf lsls dflflk sg <br/> jdflk dfkldf lsl dfklgj skl
  <para>kjdsf sdlfkjf lsls dflflk sg <br></br> jdflk dfkldf lsl dfklgj skl
  <para>Holly and Jeff<br/> received some<br></br> training
manuals&lt;br&gt;&lt;/br&gt; they ordered.</para>
<?xml version="1.0" encoding="UTF-8"?>


<xsl:template match="test">
    .test {}

<xsl:template match="para">
  <xsl:for-each select=".">
   <span class="test">

<xsl:template match="br | BR">


----- Original Message -----
From: "Robert Koberg" <rob@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, January 31, 2001 12:21 PM
Subject: [xsl] matching <br/> v. <br></br>

> (using Xalan)
> I have a basic template like so:
> <xsl:template match="br | BR">
>    <br/>
> </xsl:template>
> If the XML contains just a <br/> tag it styles correctly with a single
> If the XMl contains <br></br> then it produces two <br><br>.
> Is this a bug or expected behavior?  Is there a way around it?
>  XSL-List info and archive:

 XSL-List info and archive:

Current Thread