I'am using xt to convert my xml with an xsl to html.
When i use <br /> in my xsl document in turns into <br> in the html.
So, How am I get <br/> TAG in output(html) like xhtml? 9 5883
In article <pa************ *************** *@hotmail.com>, one of infinite monkeys
at the keyboard of "Oliver M. Haynold" <ol*********@ho tmail.com> wrote: Correct me if I'm wrong,
Consider yourself corrected.
but HTML 4.01 has a SHORTTAG YES clause in its SGML Declaration.
Yes. That's a bug in the spec (if we accept the premise that the spec
relates to the Real World).
Doesn't that mean that constructs like <br/> _are_ allowed,
Sometimes.
and that a browser that doesn't read them just isn't fully conformant?
A browser that fails to display a ">" after the <br> is not fully conformant.
At least in those places where it's technically legal.
--
Nick Kew
In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
In article <pa************ *************** *@hotmail.com>,
Oliver M. Haynold <ol*********@ho tmail.com> wrote:
% On Mon, 10 Nov 2003 19:08:45 +0100, Patrick TJ McPhee wrote:
% > Except that <br> is valid in HTML, while <br/> is not.
%
% Correct me if I'm wrong, but HTML 4.01 has a SHORTTAG YES clause in its
% SGML Declaration. Doesn't that mean that constructs like <br/> _are_
% allowed, and that a browser that doesn't read them just isn't fully
% conformant?
Let me reword my previous statement. <br> does not mean the same thing
as <br/> in HTML. <br/> does not mean the same thing in xHTML as it
does in HTML.
--
Patrick TJ McPhee
East York Canada pt**@interlog.c om
"Patrick TJ McPhee" <pt**@interlog. com> wrote in message
news:bp******** **@news.eusc.in ter.net... In article <pa************ *************** *@hotmail.com>, Oliver M. Haynold <ol*********@ho tmail.com> wrote: % On Mon, 10 Nov 2003 19:08:45 +0100, Patrick TJ McPhee wrote: % > Except that <br> is valid in HTML, while <br/> is not. % % Correct me if I'm wrong, but HTML 4.01 has a SHORTTAG YES clause in its % SGML Declaration. Doesn't that mean that constructs like <br/> _are_ % allowed, and that a browser that doesn't read them just isn't fully % conformant?
Let me reword my previous statement. <br> does not mean the same thing as <br/> in HTML. <br/> does not mean the same thing in xHTML as it does in HTML.
Don't just leave us hanging. What's the diff?
I don't know of any modern browser that a) doesn't accept <br/> or b)
appears to treat it different than <br>, but maybe there's some subtlety I'm
missing wrt b.
Bob Foster
"Nick Kew" <ni**@fenris.we bthing.com> wrote in message
news:57******** ***@jarl.webthi ng.com... In article <pa************ *************** *@bofh.at>, one of infinite
monkeys at the keyboard of Bernd Petrovitsch <be***@bofh.a t> wrote:
<br/> *is* legal HTML.
Nonsense.
Well, except by abbreviated SGML rules that no browser supports, whereby it resolves to <br>> (yes, the two closing ">"s are not a typo). That's legal wherever a bare > is legal.
What's nonsense is fussing about what is legal HTML. The horse has left the
barn on this one. The only thing that matters is what browsers accept.
The browsers I am familiar with, which would be IE, Mozilla, Safari, accept
<br/> as well as <br>.
Bob Foster
In article <gIeub.226716$H S4.1974234@attb i_s01>,
Bob Foster <bo********@com cast.net> wrote:
% "Patrick TJ McPhee" <pt**@interlog. com> wrote in message
% news:bp******** **@news.eusc.in ter.net...
% > In article <pa************ *************** *@hotmail.com>,
% > Oliver M. Haynold <ol*********@ho tmail.com> wrote:
% > % On Mon, 10 Nov 2003 19:08:45 +0100, Patrick TJ McPhee wrote:
% > % > Except that <br> is valid in HTML, while <br/> is not.
% > %
% > % Correct me if I'm wrong, but HTML 4.01 has a SHORTTAG YES clause in its
% > % SGML Declaration. Doesn't that mean that constructs like <br/> _are_
% > % allowed, and that a browser that doesn't read them just isn't fully
% > % conformant?
% >
% > Let me reword my previous statement. <br> does not mean the same thing
% > as <br/> in HTML. <br/> does not mean the same thing in xHTML as it
% > does in HTML.
%
% Don't just leave us hanging. What's the diff?
%
% I don't know of any modern browser that a) doesn't accept <br/> or b)
% appears to treat it different than <br>, but maybe there's some subtlety I'm
% missing wrt b.
There's no subtlety here. As has been pointed out, <br/> in HTML is the
same as <br>>. It may be that there's no browser which gets it right,
but that's just saying that nobody really gives a shit about standards,
and that it doesn't matter whether you adhere to them, so long as it works.
--
Patrick TJ McPhee
East York Canada pt**@interlog.c om
"Patrick TJ McPhee" <pt**@interlog. com> wrote in message
news:bp******** **@news.eusc.in ter.net... In article <gIeub.226716$H S4.1974234@attb i_s01>, Bob Foster <bo********@com cast.net> wrote: % "Patrick TJ McPhee" <pt**@interlog. com> wrote in message % news:bp******** **@news.eusc.in ter.net... % > In article <pa************ *************** *@hotmail.com>, % > Oliver M. Haynold <ol*********@ho tmail.com> wrote: % > % On Mon, 10 Nov 2003 19:08:45 +0100, Patrick TJ McPhee wrote: % > % > Except that <br> is valid in HTML, while <br/> is not. % > % % > % Correct me if I'm wrong, but HTML 4.01 has a SHORTTAG YES clause in
its % > % SGML Declaration. Doesn't that mean that constructs like <br/> _are_ % > % allowed, and that a browser that doesn't read them just isn't fully % > % conformant? % > % > Let me reword my previous statement. <br> does not mean the same thing % > as <br/> in HTML. <br/> does not mean the same thing in xHTML as it % > does in HTML. % % Don't just leave us hanging. What's the diff? % % I don't know of any modern browser that a) doesn't accept <br/> or b) % appears to treat it different than <br>, but maybe there's some subtlety
I'm % missing wrt b.
There's no subtlety here. As has been pointed out, <br/> in HTML is the same as <br>>. It may be that there's no browser which gets it right, but that's just saying that nobody really gives a shit about standards, and that it doesn't matter whether you adhere to them, so long as it
works.
If one gave a shit about standards one would not write, in two consecutive
postings:
<br> does not mean the same thing as <br/> in HTML
<br/> in HTML is the same as <br>
Bob Foster
Bob Foster wrote: If one gave a shit about standards one would not write, in two consecutive postings:
<br> does not mean the same thing as <br/> in HTML
<br/> in HTML is the same as <br>
Could you please read and quote properly? What Patrick did write was:
"Patrick TJ McPhee" <pt**@interlog. com> wrote in message news:bp******** **@news.eusc.in ter.net...As has been pointed out, <br/> in HTML is the same as <br>>.
Note the '>>' after '<br'. So when rendered, the second should be a line
break and a '>' character and not a line break only.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
I do my best. If I misquoted, I apologize. The "give a shit" in his response
kinda set me off.
Bob
"Johannes Koch" <ko**@w3develop ment.de> wrote in message
news:bp******** *****@ID-61067.news.uni-berlin.de... Bob Foster wrote: If one gave a shit about standards one would not write, in two
consecutive postings:
<br> does not mean the same thing as <br/> in HTML
<br/> in HTML is the same as <br>
Could you please read and quote properly? What Patrick did write was:
> "Patrick TJ McPhee" <pt**@interlog. com> wrote in message > news:bp******** **@news.eusc.in ter.net... >>As has been pointed out, <br/> in HTML is the >>same as <br>>.
Note the '>>' after '<br'. So when rendered, the second should be a line break and a '>' character and not a line break only.
-- Johannes Koch In te domine speravi; non confundar in aeternum. (Te Deum, 4th cent.)
In article <P2pvb.202849$2 75.751333@attbi _s53>,
Bob Foster <bo********@com cast.net> wrote:
% I do my best. If I misquoted, I apologize. The "give a shit" in his response
% kinda set me off.
I'm sorry if I distressed you. I was giving my opionion of the `it
works, so what's the problem?' line of reasoning -- it really depends on
your attitude towards standards compliance.
--
Patrick TJ McPhee
East York Canada pt**@interlog.c om This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Son KwonNam |
last post by:
I'm working with XSLT for changing XML to XSLT.
for example, I have the follower xml data
---------
<article writer="you">
<contents><!]></contents>
---------
then I want to get the following html
---------
|
by: fis |
last post by:
Hi all,
I've problem because there are needed break lines in my texts on the
web site but i can't do it :(
My pipeline looks like: XMS -> I18N -> XSLT -> HTML
I have lot of texts in my "languages" files and these are describes
for things on my website.
Example text looks like this:
|
by: Lasse |
last post by:
I have done this simple function, it seems to work as intended, to
solve a problem i have had for a while. I couldnt find any sample
around that was working for me.
I would like to test it with you and see if there are any improvments
that i should make ;-)
It should be fast and if possible compatible with todays modern
browser-standards. It should be activated by the onload-event.
This is my code, free for all to use:
|
by: noor.rahman |
last post by:
I have an XML file that stores data from an HTML form. I use XSL to
display the data in HTML format. The data may have newline characters.
However, XSL is not displaying the newlines properly in the browser.
I even replaced all the newlines with <BR/> tags but eventhough I see
the tags in my source, I don't get a line break in the output document.
Any help would be greatly appreciated.
|
by: Winshent |
last post by:
I have a multi line text in an admin page on my cms.
I am trying to capture carriage returns as and replace them with
<p></p> bfore the string gets written to the database.
I have tried all the charcontrols option and chr(13) with success.. was
using the following code:
Dim s As String = MyTextbox.Text
| |
by: Winshent |
last post by:
I have a multi line text in an admin page on my cms.
I am trying to capture carriage returns as and replace them with
<p></p> bfore the string gets written to the database.
I have tried all the charcontrols option and chr(13) with success.. was
using the following code:
Dim s As String = MyTextbox.Text
|
by: ajay2552 |
last post by:
Hi,
I have a query.
All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it?
One method is to use <, > ,<Company> to display '<', '>' and '<Company>' respectively.
But is there any freeware code available which could implement the above functionality without having to use >,< and such stuff???
|
by: JoeS |
last post by:
I'm new to XSLT, it what our old website developer used but he has now left our company. I have been given the task of making our site output as valid XHTML as I can get it. Currently in the .XSL files I write self-closing tags like <br/> but in the output XHTML they come out as <br> and therefore the page doesn't validate. This happens for other self-closing tags like <img src=""/> too.
I don't really know XSLT so I don't know how I can fix...
|
by: Nathan Sokalski |
last post by:
Something that I recently noticed in IE6 (I don't know whether it is true
for other browsers or versions of IE) is that it renders <br/and <br></br>
differently. With the <br/version, which is what most people use when they
write static code (some people use <br>, but with xhtml you are required to
close all tags), IE6 simply breaks to the next line like it is supposed to.
However, with <br></br>, which is what is sometimes generated by...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |