Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsUnable to introduce a [br /] tag using the XSLUnable to introduce a [br /] tag using the XSL
Previous
 
Next
New Post
4/18/2009 8:38 AM
 

Hi,

DNN 4.09.01 News module 04.00.01

I know nothing significant about XSL.  Using trial and error I made a couple of tiny mods to the supplied XSL..  I wanted an additional line break after each item.

I added a break (see below) and I get the visual appearance I want in both IE and FF. But - this part of the page now fails w3c validation telling me "end tag for "br" omitted".

Why can't I get the closed break tag in though the XSL?  View the site at www.dynamisys.co.uk - the RSS is on the bottom rhs - "Latest News" feel free to submit the page to http://validator.w3.org if you want to see the full output (yes I know there are other validation errors.)

Snip from XSL... - my addition is line 27.
   24      <xsl:value-of select="description" disable-output-escaping="yes"/>

   25     </p>

   26    </xsl:if>

   27     <br />

   28   </xsl:for-each>

   29  </xsl:template>

   30 </xsl:stylesheet>


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/18/2009 6:26 PM
 

There should be no embedded space in the <br/> tag.  Looks like you've got one in there.

 
New Post
4/19/2009 3:25 AM
 

I do have a space in there.  Removing it makes no difference.  I also tried

   26     <br></br>

In all three cases (space/no space, self closing, manually closing) the validator reports this error...

"...end tag for "br" omitted, but OMITTAG NO was specified ..."

and quotes this as the offending text...

"…hes e-disclosure service</a></p><br><p class="DNN_News_ItemLink"><a href="htt"

A View Source on the page shows that the transform is not emiting a closed tag.

It processes the line.  If I change it to

   26 aa<br/>zz

Then I see output with the aa and the zz on separate lines.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/19/2009 5:21 AM
 

mm I dont see why that would not work  but here is something I use if i have to input start and end tags seperately ( which later will be closed but what xsl doenst like because it does not see the start end tag correctly

 

first define your tag

<xsl:param name="mybreak"><![CDATA[<br/>]]></xsl:param>

then use it

<xsl:value-of select="$mybreak" disable-output-escaping="yes"/>

 

 
New Post
4/19/2009 5:33 AM
 

Hi Guys,

Thanks to both of you.

I just implemented Armand's technique and it's working.  Thanks again.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsUnable to introduce a [br /] tag using the XSLUnable to introduce a [br /] tag using the XSL


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out