Appropriate DOCTYPE for XML Formatting Rules

Hi All,

I have what is quite possibly a stupid question about XML formatting and
DOCTYPE declarations. I am using FrontPage 2003 to apply XML formatting
rules to my web pages by right clicking in the code view and selecting
"Apply XML Formatting Rules". Using the command made changes similar to the
following:

Original Line:
<img src="my_image.gif" width="35" height="9" alt="alt_text">

New Line (the only difference is the forward-slash at the end):
<img src="my_image.gif" width="35" height="9" alt="alt_text" />

My question is: If I use XML formatting is it still appropriate to use the
DOCTYPE declaration shown below or do I have to use some sort of XML
declaration.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


Thank-You,
Kris


0
10/10/2003 3:29:49 PM
excel 39879 articles. 2 followers. Follow

4 Replies
1092 Views

Similar Articles

[PageSpeed] 22

The appropriate doctype when you use xml formatting is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

-- 
Cheryl D. Wise
MS-MVP-FrontPage
http://wiserways.com

"Kris" <kris_myob_2003@hotmail.com> wrote in message
news:eR%23zUN0jDHA.2416@TK2MSFTNGP10.phx.gbl...
> Hi All,
>
> I have what is quite possibly a stupid question about XML formatting and
> DOCTYPE declarations. I am using FrontPage 2003 to apply XML formatting
> rules to my web pages by right clicking in the code view and selecting
> "Apply XML Formatting Rules". Using the command made changes similar to
the
> following:
>
> Original Line:
> <img src="my_image.gif" width="35" height="9" alt="alt_text">
>
> New Line (the only difference is the forward-slash at the end):
> <img src="my_image.gif" width="35" height="9" alt="alt_text" />
>
> My question is: If I use XML formatting is it still appropriate to use the
> DOCTYPE declaration shown below or do I have to use some sort of XML
> declaration.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
>
> Thank-You,
> Kris
>
>


0
cdwise (1)
10/10/2003 4:05:23 PM
Thank-you for the speedy reply Cheryl. Can I trouble you with another
possibly stupid follow-up question? I've been using the W3C's MarkUp
Validation Service (http://validator.w3.org/) to check my work and I'm
wonder why code formatted as XHTML passes validation using the HTML DOCTYPE
declaration that I indicated. Do you have any thoughts on this? Does the
HTML 4.01 Strict standard allow for code to be formatted as XHTML and still
be considered valid?

Thanks Again,
Kris

"Cheryl D. Wise" <cdwise@wiserways.com> wrote in message
news:elyejg0jDHA.2140@TK2MSFTNGP09.phx.gbl...
> The appropriate doctype when you use xml formatting is
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> -- 
> Cheryl D. Wise
> MS-MVP-FrontPage
> http://wiserways.com
>
> "Kris" <kris_myob_2003@hotmail.com> wrote in message
> news:eR%23zUN0jDHA.2416@TK2MSFTNGP10.phx.gbl...
> > Hi All,
> >
> > I have what is quite possibly a stupid question about XML formatting and
> > DOCTYPE declarations. I am using FrontPage 2003 to apply XML formatting
> > rules to my web pages by right clicking in the code view and selecting
> > "Apply XML Formatting Rules". Using the command made changes similar to
> the
> > following:
> >
> > Original Line:
> > <img src="my_image.gif" width="35" height="9" alt="alt_text">
> >
> > New Line (the only difference is the forward-slash at the end):
> > <img src="my_image.gif" width="35" height="9" alt="alt_text" />
> >
> > My question is: If I use XML formatting is it still appropriate to use
the
> > DOCTYPE declaration shown below or do I have to use some sort of XML
> > declaration.
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">
> >
> >
> > Thank-You,
> > Kris
> >
> >
>
>


0
10/10/2003 4:21:37 PM
If you look at http://www.w3.org/TR/xhtml1/ you will see that it just formalizes the support already in HTML 4.01 for closing all
tag pairs
- that's what the  /> at the end of tags that don't have a specific closing tag does


-- 

_____________________________________________
SBR @ ENJOY (-:              [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!"  (-;
To find the best Newsgroup for FrontPage support see:
  http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Kris" <kris_myob_2003@hotmail.com> wrote in message news:efrVRq0jDHA.3172@tk2msftngp13.phx.gbl...
| Thank-you for the speedy reply Cheryl. Can I trouble you with another
| possibly stupid follow-up question? I've been using the W3C's MarkUp
| Validation Service (http://validator.w3.org/) to check my work and I'm
| wonder why code formatted as XHTML passes validation using the HTML DOCTYPE
| declaration that I indicated. Do you have any thoughts on this? Does the
| HTML 4.01 Strict standard allow for code to be formatted as XHTML and still
| be considered valid?
|
| Thanks Again,
| Kris
|
| "Cheryl D. Wise" <cdwise@wiserways.com> wrote in message
| news:elyejg0jDHA.2140@TK2MSFTNGP09.phx.gbl...
| > The appropriate doctype when you use xml formatting is
| >
| > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| >
| > -- 
| > Cheryl D. Wise
| > MS-MVP-FrontPage
| > http://wiserways.com
| >
| > "Kris" <kris_myob_2003@hotmail.com> wrote in message
| > news:eR%23zUN0jDHA.2416@TK2MSFTNGP10.phx.gbl...
| > > Hi All,
| > >
| > > I have what is quite possibly a stupid question about XML formatting and
| > > DOCTYPE declarations. I am using FrontPage 2003 to apply XML formatting
| > > rules to my web pages by right clicking in the code view and selecting
| > > "Apply XML Formatting Rules". Using the command made changes similar to
| > the
| > > following:
| > >
| > > Original Line:
| > > <img src="my_image.gif" width="35" height="9" alt="alt_text">
| > >
| > > New Line (the only difference is the forward-slash at the end):
| > > <img src="my_image.gif" width="35" height="9" alt="alt_text" />
| > >
| > > My question is: If I use XML formatting is it still appropriate to use
| the
| > > DOCTYPE declaration shown below or do I have to use some sort of XML
| > > declaration.
| > >
| > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
| > > "http://www.w3.org/TR/html4/strict.dtd">
| > >
| > >
| > > Thank-You,
| > > Kris
| > >
| > >
| >
| >
|
|


0
sbr_enjoy (3)
10/11/2003 9:33:00 AM
Thank-you Stefan.

"Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
news:uDRxrq9jDHA.392@TK2MSFTNGP11.phx.gbl...
> If you look at http://www.w3.org/TR/xhtml1/ you will see that it just
formalizes the support already in HTML 4.01 for closing all
> tag pairs
> - that's what the  /> at the end of tags that don't have a specific
closing tag does
>
>
> -- 
>
> _____________________________________________
> SBR @ ENJOY (-:              [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!"  (-;
> To find the best Newsgroup for FrontPage support see:
>   http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "Kris" <kris_myob_2003@hotmail.com> wrote in message
news:efrVRq0jDHA.3172@tk2msftngp13.phx.gbl...
> | Thank-you for the speedy reply Cheryl. Can I trouble you with another
> | possibly stupid follow-up question? I've been using the W3C's MarkUp
> | Validation Service (http://validator.w3.org/) to check my work and I'm
> | wonder why code formatted as XHTML passes validation using the HTML
DOCTYPE
> | declaration that I indicated. Do you have any thoughts on this? Does the
> | HTML 4.01 Strict standard allow for code to be formatted as XHTML and
still
> | be considered valid?
> |
> | Thanks Again,
> | Kris
> |
> | "Cheryl D. Wise" <cdwise@wiserways.com> wrote in message
> | news:elyejg0jDHA.2140@TK2MSFTNGP09.phx.gbl...
> | > The appropriate doctype when you use xml formatting is
> | >
> | > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> | > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> | >
> | > -- 
> | > Cheryl D. Wise
> | > MS-MVP-FrontPage
> | > http://wiserways.com
> | >
> | > "Kris" <kris_myob_2003@hotmail.com> wrote in message
> | > news:eR%23zUN0jDHA.2416@TK2MSFTNGP10.phx.gbl...
> | > > Hi All,
> | > >
> | > > I have what is quite possibly a stupid question about XML formatting
and
> | > > DOCTYPE declarations. I am using FrontPage 2003 to apply XML
formatting
> | > > rules to my web pages by right clicking in the code view and
selecting
> | > > "Apply XML Formatting Rules". Using the command made changes similar
to
> | > the
> | > > following:
> | > >
> | > > Original Line:
> | > > <img src="my_image.gif" width="35" height="9" alt="alt_text">
> | > >
> | > > New Line (the only difference is the forward-slash at the end):
> | > > <img src="my_image.gif" width="35" height="9" alt="alt_text" />
> | > >
> | > > My question is: If I use XML formatting is it still appropriate to
use
> | the
> | > > DOCTYPE declaration shown below or do I have to use some sort of XML
> | > > declaration.
> | > >
> | > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> | > > "http://www.w3.org/TR/html4/strict.dtd">
> | > >
> | > >
> | > > Thank-You,
> | > > Kris
> | > >
> | > >
> | >
> | >
> |
> |
>
>


0
10/11/2003 3:38:53 PM
Reply:

Similar Artilces:

Outlook 2002 Not Displaying Messages In HTML Format
I can't for the life of me figure out why this is happening, but my Outlook 2002 is just displaying all messages in plain text format! Very strange. I only recently went up to 2002 from 2000. In 2000 it was fine. Windows XP Pro, SP2, all updates installed. Outlook 2002 v. (10.6515.6735) SP3 I currently have 2 add-ons installed: PocketKnife Peek Outlook Backup Any suggestions? PS - IE is not my default browser, Firefox is. In case that has anything to do with it. ---Atreju--- "Atreju" <someone@who.hates.junkmail> wrote in message news:kc31o1h5pbalnc92uunblsbpkoo7q...

Which function is most appropriate?
Sheet one consists of 32,000+ rows and two columns. Column A contains a list of specific serial numbers. Column B contains a list of business units assigned to those serial numbers. The serial numbers in colmun A can be repeated several times depending on how many different business units are assigned to it. For example Code: -------------------- COLUMN A | COLUMN B #000112 | UnitA #000112 | UnitC #000114 | UnitA #000125 | UnitA #000125 | UnitB #000125 | UnitC -------------------- My goal is to c...

Format duplicate entries
Hi, is there any one out there who is the proud owner of a vba script that can be run to identify duplicate entries in a column and format by colour ? If there is such a script I would be very grateful of a copy, as at present I am spending a lot of time exporting tasks to excel and using the conditional formatting tool. Thanks in advance if any one can help. Regards Ken. I don't have such a macro; but achieve this I would simply sort the tasks and inspect for duplicates (which would be adjacent) to each other. Would work? --rms www.rmschneider.com On 06/0...

alternate row formatting in 2007-problems
I love the alternate row formatting now available in 2007 - but we are having some problems with it. When a new row is added in the middle of a sheet, it takes on the color of the row below it -- so then you end up having 2 blues or 2 whites - instead of alternate colors. It doesn't refresh itself to the alternate colors. ALso, we have one department that adds data at the end and then SORTS to get it in the right order.... again - it doesn't maintain the alternate colors after sorting - In fact, the inconsistant grouping of colors almost makes it more difficult to read. ...

Rules in Oulook 2002
Hi all, I have searched the archive here and at Microsoft site, and I have seen a lot of discussion on this topic, but not the definite answer on my question. I upgraded to outlook 2002 from Outlook express on a XP machine. I installed SP1, SP2 and a update just for outlook 2002 in date of early 2003. I have only one profile. I have an hotmail account. I understand I cannot use rules directly in the hotmail inbox. Under OE, I used to copy the mails into a pst folder and run the rules there (mostly to sort incoming mail into appropriate folders). With Outlook 2002, when I'm in the pst folde...

Reading XML file with JScript
Hi, By using AjaxPro I am creating XML file with database data and saving that created file in harddisk, but i have to show the content of that XML in browser. How can I show the content by AjaxMethod which is in .cs file or can we open and show the content of XML file by using JScrip Thanks in advance Shalem wrote: > By using AjaxPro I am creating XML file with database data and saving > that created file in harddisk, but i have to show the content of that > XML in browser. How can I show the content by AjaxMethod which is > in .cs file or can we open and show the content of...

How do I format in Publisher
I am creating an Vendor Directory for my office and need to know how to apply the same formatting to the entire document without having to edit every single entry. I arranged the first entry in my directory the way I want all of the entry's to look and can't figure a way to apply it to all of them other than going through one by one...help! You can create a new "Styles and Formatting" scheme from the first entry, select all and apply. You can open the font schemes, create a new scheme, select all and apply. You will have to experiment. There is the Painter, but it wil...

eConnect 9.0 and <taPAPOReceiveInvoiceEntryHdr> XML Node
Hi, I have to upgrade an existing integration into Project Accounting from v8 to v9. I have installed the latest eConnect 9.0.2.0 and the following schemas appear to have been removed, although there are not mentioned in the release notes: <taPAPOReceiveInvoiceEntryLine> XML Node <taPAPOReceiveInvoiceEntryTax> XML Node <taPAPOReceiveInvoiceEntrySerialLot> XML Node <taPAPOReceiveInvoiceEntryHdr> XML Node Does anyone know when/why they were removed, and what I should use instead? many thanks, Tim. Hi Tim This is because the Project Accounting Purchasing Tran...

Chart format
Hi, You will find attached an Excel file: http://cjoint.com/?lnuaOjpONZ with 3 sheets: - "Source" - "Pivot table" - "Chart" I would like to know if it is possible to determine the same width to each month in the graph whatever is the number bar(s) per month. (i.e., I would like that the width allocated to "01/01/2008" with one bar "Nothing to declare" will be same the than the width allocated to "01/03/2008" with 4 bars). And I would like that the bar(s) will be centered into the month category in the graph as showed in the do...

Getting SignedXML to Emit Namespace-Qualified XML
I posted this to the security group with no luck. When I call SignedXML.ComputeSignature, then call SignXML.GetXML, I get XML that is not namespace-qualified. That is, the Signature node is named Signature rather than ds:Signature. Is there a way to make SignXML emit namespace-qualified XML? On Mar 19, 8:05=A0am, Stephen Wood <stephe...@gmail.com> wrote: > I posted this to the security group with no luck. > > When I call SignedXML.ComputeSignature, then call SignXML.GetXML, I > get > XML that is not namespace-qualified. =A0That is, the Signature node is > named Sign...

XML Parsing
I have an xml string exactly as follows: <ownerid name="Anderson, Eric" dsc="0" type="8">{CF9F4762-89CE-4470-8019-D208724883BD}</ownerid> this comes from our CRM Database. This was returned when I asked for ownerid. I would like to display in a textbox or datagrid just the name. I know how to get it into a dataset, I'm just not able to extract the information I need. Thanks! Sandy, The following code should get you at the value of what's in the name attribute: Dim xmlDoc as New XMLDocument() Dim xe_ownerID as XMLElement Dim strName...

Conditional formatting highest 25% of a column
I have 60 numbers in a column. I would like to apply a conditional format that colours the cell background for the highest 25%, the next 25%, the next 25% and the lowest 25%. I know that only three conditional formats can be applied but the fourth would comprise those that did not meet the condtion and would be left with a white background. Help appreciated:confused: tlosgyl3 -- tlosgyl3 ------------------------------------------------------------------------ tlosgyl3's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=28074 View this thread: http://www.excel...

"You don't have the appropriate permission to perform this operation"
Microsoft Office Outlook 2003 (11.5608.5606) I am getting a popup window with 'You don't have the appropriate permission to perform this operation' appearing when the 'Send\Recieve' button is clicked in outlook. It will send and receive emails but this popup appears every time. Anyone know what is wrong? Cheers Ollie Riches What account type do you have? -- Robert Sparnaaij [MVP-Outlook] www.howto-outlook.com Tips of the month: -Properly back-up and restore your Outlook data -Creating a Permanent New Mail Desktop Alert in Outlook 2003 ----- "Ollie Riches&quo...

file format not valid #3
I moved a spreadsheet from one file to another and when I try to open, I get 'file format not valid' bill wroet... >I moved a spreadsheet from one file to another and when I try >to open, I get 'file format not valid' What do you mean by 'moved a spreadsheet from one file to another'? B precise and complete -- Message posted from http://www.ExcelForum.com ...

Imported Mail to Outlook 2003: HTML formatting does not display
I have just importe messages from outlook express which were imported from eudora 6.0. The messages that were i nthe euors "out" folder which is roughtly equal to the "Sent items" folder in outlook. Do not display correctly. Rather than seeing the formated text displayed, you see a plain text message with the html code... How I correct? ...

Showing raw xml from memory in an asp.net page
Hi. I'd like to create an xml document on the fly and then display it in an asp.net page. I can use an iframe and point to a URL (which displays perfectly), but I'd not like to save the xml to a file (it will be built as I go along). I can use the <asp:xml> control, but I don't want to have to write the XSLT, I love the one I get for free within IFrame. Any suggestions? Thanks. Figured out the answer to my own question. I thought I'd post it in case anyone is interested... 1) Create a page with an IFrame on it. Set the src to a second page 2) On the second aspx pa...

Conditional format #5
Dear All I, create conditional format related to one column data range showing the staff ID, I want when I enter the staff ID if it is available in my data range, it will apply my conditional format, so my formula it is working for ID Like 1070, or 1470 But when I inter ID like B1101 It is not working, my formula in conditional format like this =VLOOKUP(A1,$K$2:$K$65,1,FALSE) > Please Help Thanks First place I'd start is to determine what results the conditional formula is returning. You can do that by putting the same formula in any available cell on the sheet, then start...

Counting Cells Based on Format
Hello, Does anyone know if there is a formula that would allow me to count th number of times a specific cell format (Text Color) occurs in column. Thanks, mtalbritto -- Message posted from http://www.ExcelForum.com Hi you'll need VBA for this. Below a repost from today ------ using a procedure from Bob Phillips and Harlan Grove you may try the following: =SUMPRODUCT(--(ColorIndex(A1:A100)=3)) to count all red cells (background color) within the range A1:A100 or =SUMPRODUCT(--(ColorIndex(A1:A100,TRUE)=3)) to count all red cells (font color) within the range A1:A100 To get the c...

XML in visual studio?
Hello, sorry, i am new in visual studio field, i am going to make Address book, it should import data from xml file, is there any MFC class to extract data from xml file? or is there any way to solve the problem? thanks, <halmuratov@gmail.com> wrote in message news:1170961264.809056.110350@a75g2000cwd.googlegroups.com... > is there any MFC class to extract data from xml file? or is there > any way to solve the problem? > MFC doesn't have an XML reader. I use the one from http://firstobject.com. There is a free version on either Codeguru or Codeproject, I can&...

Advise, Guidance and Pointers with XML
Dear Ethernet of Unquestionable Knowledge, Re: Advise, Guidance and Pointers with XML Oh omnipotent one(s) please help me ... I'm reasonably new to all the XML stuff and although clear on the basic concepts of XML, however I'm experiencing some difficulties in understanding how to implement and utilise these concepts within a real world solution. (1) Serialization (a) When I serialize my class object(s) the returning XML contains a random character(s) at the beginning of the document. Do you have any idea why this may be occurring? I.e. ?Encoding.UTF8.GetChars(memoryStrea...

Validation Rule for field values
I have a database that includes a phone number field. I want to prevent a user from creating a new record that contains a phone number that is currently in a record that exists in the database.I am using a form for data entry into the table. Somehow I'd like for there to be a check to see if the phone number typed into the phone number field to be checked against existing phone numbers in the database.I've researched various sources but haven't been able to find the solution. I'm not familiar with VB so any replies that suggest using that will probably not work for me. Sorry, j...

change date format to excel format
Hi, I have a date in 01.03.2010 format, how can I change it by using vba for every time I import the data? You can use Data>Text To Columns and use the last tab to set dates. I just recorded a macro to do it, and after tidying it left Columns("O:O").TextToColumns _ Destination:=Range("O1"), _ DataType:=xlDelimited, _ FieldInfo:=Array(1, 4) -- HTH Bob "Motta" <Motta@discussions.microsoft.com> wrote in message news:9B0F9328-704B-4F28-83A3-44BBCFF5CBBD@microsoft.com... > Hi, I have a date in 01.03...

XML One to Many
I have a requirement to transform a single XML document into many. Does anyone know of a good way to do this in .Net? I plan on writing a style-sheet to do this but I don't know how to get each occurrence of the document back into the application. After the split I have to transmit the data to a customer. Thanks, Matt Matt wrote: > I have a requirement to transform a single XML document into many. Does > anyone know of a good way to do this in .Net? I plan on writing a > style-sheet to do this but I don't know how to get each occurrence of the > document back in...

Message format in Outlook 2003
No matter what I do I cannot send HTML messages in Outlook 2003. As far as I can tell everything is set up properly in "options". When composing a message it is in HTML format but when received it is in plain text. Also, when I insert pictures into a message they are received as attachments since the message has changed to plain text. HELP SOMEONE! It could simply be that the receiver of the messages have the options set as Plain Text. Send one to yourself and see what happens if you haven't already. >-----Original Message----- >No matter what I do I cannot s...

Getting attribute value from xml using xpath to get file path
I have the following xml file: <?xml version="1.0" encoding="utf-8" ?> <course id="2555" title="Developing Microsoft .NET Applications for Windows (Visual C# .NET)" length="5 days" source="http://www.microsoft.com/learning/syllabi/en-us/2555Afinal.mspx"> <module id="1" title="Introducing Windows Forms" location="D:\Disk-C\Documents and Settings\orit_itzhar.ATRICA\My Documents\XML\csharp"> <lesson id="1.1"> <subject>Creating a Form</subject> <f...