Add to Google

Xhtml Dtd - can you set it up?

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Xhtml Dtd - can you set it up?

Lozbo
Can you set up the document type definition in order to create your own tags in XHTML? (Just as it happens with XML).

I have been learning XML and DTD, and as i actually DO find it useful, i think its even more useful the fact that a language (like HTML) already strongly accepted, has its own structures defined. Its just sometimes you need to add a little adjustment here and there.

So i ask if theres a way to define this in XHTML, your structures of tags and attributes and all that. I already know a coupple of sites which teach xhtml, but just have not found what i was looking for. Thanks...

Reply

Saint_Michael
do you mean this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN">
thats the only way you would identify the xhtml document to be checked for syntax.

Reply

Lozbo
QUOTE(Saint_Michael @ Sep 13 2005, 12:55 PM)
do you mean this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN">
thats the only way you would identify the xhtml document to be checked for syntax.
*


i mean something like this:
CODE

<?xml version="1.0"?>
<!DOCTYPE note [
 <!ELEMENT message(to,from,subject,body)>
 <!ELEMENT to      (#PCDATA)>
 <!ELEMENT from    (#PCDATA)>
 <!ELEMENT subject(#PCDATA)>
 <!ELEMENT body    (#PCDATA)>
]>


So an example xml document for that given DTD would be:
CODE

<message>
 <to>Saint Michael</to>
 <from>Lozbo</from>
 <subject>Sig Request</subject>
 <body>Your sigs rock dude! I have already made a sig request in the right forum, hope some one as good as you has the time to do me that favor! </body>
</message>


But something like this, highly customizable for XHTML...

 

 

 


Reply

SystemWisdom
You could create custom DTDs and host them on your server, then point your pages to use that DTD.. But then most validators wont validate for you cuz you're not using an approved DTD...

Besides the fact that creating a new DTD just to validate new tags in an XHTML document is rather pointless, as the extensibility of it is good enough as it is..

Anyway, try google searching for "Custom DTDs" and stuff..

Reply

arboc7
QUOTE(SystemWisdom @ Sep 13 2005, 08:09 PM)
You could create custom DTDs and host them on your server, then point your pages to use that DTD..  But then most validators wont validate for you cuz you're not using an approved DTD...

Besides the fact that creating a new DTD just to validate new tags in an XHTML document is rather pointless, as the extensibility of it is good enough as it is..

Anyway, try google searching for "Custom DTDs" and stuff..
*




That's the only way I could think of doing it...you might be able to create your custom DTD and add the XHTML DTD you want by just adding that DTD to your custom DTD. You can get all of the W3C DTDs at www.w3.org


Reply

Lozbo
QUOTE(SystemWisdom @ Sep 13 2005, 07:09 PM)
Besides the fact that creating a new DTD just to validate new tags in an XHTML document is rather pointless, as the extensibility of it is good enough as it is..

Yes, i think you are right. Its just, as im new to dtd, schema and xml, i was just wondering if that was possible, and maybe thinking that it would be even more extensible or something. Thanks.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. xhtml dtd php - 282.96 hr back. (1)
  2. custom xhtml dtd - 434.07 hr back. (1)
  3. xhtml - 1523.13 hr back. (1)
Similar Topics

Keywords : xhtml, dtd, set

  1. What's The Point Of Xhtml?
    (4)
  2. Opening Hyperlink In New Window Using Xhtml 1.0 Strict
    (5)
    My website (currently under construction) is all going well until I realized that the XHTML 1.0
    Strict DTD does not allow the target="_blank" attribute. How would I find a way around this? I'm
    used to using XHTML 1.0 Transitional, but I want this website to be Strict for a change. I would
    really like it if someone here at trap17 can give me some css that allows them to be opened in a new
    window. I have searched on Google and only found ways that include writing my own DTD (which I
    don't want to do), use javascript, and use another doctype. All of those things, ....
  3. Xhtml Strict Links Tip
    A problem might accure (5)
    If you try to put a link that has an & in your xHTML strict page, you need to change & to & in
    order for the page to be xHTML Strict.. eg.. BAD LINK: CODE
    http://jasamza.korisnik.com/forums/viewtopic.php?f=19&t=7&sid=6c2e9120dcff6e0b83698c4aa7be929a
    GOOD LINK: CODE
    http://jasamza.korisnik.com/forums/viewtopic.php?f=19&t=7&sid=6c2e9120dcff6e0b83698c4aa7be92
    9a copy pasted &....
  4. Questions About Xml, Xhtml
    (3)
    Hi, I like to know briefly about XML , XHTML and can be they be in replacement of MYSQL/MYSQL for
    data storage?....
  5. Create A Xhtml, Css3 Valid Gallery With Javascript ;part 1
    (0)
    What were making In this tutorial, we will be creating a web page that can be used for a gallery, an
    easy way of showing your portfolio of works or photography, etc. The page will be coded in XHTML
    1.0 Strict and CSS3 valid, our CSS won't even have any warnings on them apart from one. So the
    first thing we need to do is set up a base structure for the XHTML. Below is the code for this.
    HTML html xmlns =" http://www.w3.org/1999/xhtml "> head > meta http-equiv =" Content-Type
    " content=" text/html; charset=iso-8859-1 " /> title >XHTML & CSS Gallery /t....
  6. Wml / Xhtml ?
    for wap (6)
    wml/xhtml who gvs more facilities to make a wap-community site?....
  7. Need Free Help With Upgrading Websites For Church
    Must be versed in XHTML and CSS (4)
    I recently helped a Father Andreas of the Ukrainian Orthodox Church in Denver revamp his
    websites. He was happy enough that he passed on the information about my help to a friend. I have
    received this e-mail, but I am unable to do much since I am not educated in XHTML and only know
    basic CSS (still learning). QUOTE I want to update my websites from HTML with tables to XHTML
    with Style Sheets. All of my websites are for my Church, the Hellenic Orthodox Traditional Church.
    Would you be able to assist me with this project? In Christ! Symeon of Denver If any....
  8. Embed Tag Valid In Xhtml 1.0 Strict?
    (2)
    Is it? If not, could anyone reccommend how to get round it?....
  9. Xhtml Strict Method For Submit/reset Buttons As An
    (1)
    What's the proper way to handle submit and reset buttons? Using type submit and reset don't
    allow you to replace the default button with an image, using the type image doesn't allow a
    button to automatically act like a submit or reset....so far as I know. So How should I do this
    when I want to use a custom image as the button? Code will be best way to explain, thanks! ....
  10. Encoding And Xhtml Requirements
    (2)
    OK, so after reading a lot of contradicting information I decided to ask. How should document
    encoding be announced? The W3C validator (or at least links from the same upon a missing encoding)
    suggests the server should send the encoding in the content-type header. The problem with this that
    I see is that you can't always make a blanket judgment about what encoding pages will be in. Is
    it simply suggested to use .htaccess files (or equivalent) for this, then? I am led to believe that
    most (all?) browsers will ignore a content-type meta tag. Is there another in-file o....
  11. Modify The Invision Skin Standards
    about the xhtml (1)
    and hi, i just used the ipb1.3final.yeah.my skin is caliskinV6,got that from here ,since the cali3D
    won't realease the new skin for IPB1.3 i just wanna to know if this is impossible,--modified the
    skin to xhtml 1.0 or 1.1 standards. and you know the default skin of ipb is a comptnet,and the
    Adding skin like CaliskinV6 is another comptnent,they are the different system,so i think there
    would be the way to make the templates to xhtml stict. thank you,guangdian.....
  12. What Is Xhtml
    What Is It And Why Use It? (27)
    I was wondering what XHTML is because I have seen alot of sites that claim to be XHTML validated
    rather than HTML validated. How does this compare to HTML? Why is it better? How hard is it to
    master? How similar is it to HTML? Thank you for answering my questions! You should know by now
    that What Is...? section is not to post question. Moving. Warning issued. ....
  13. Strict Xhtml
    target atribute (4)
    I have ran into this issue; Strict XHTML 1.0 does not support target atribute... so what should i
    do? How will i use _blank pages with my stuff?....
  14. Xhtml 1.1 Vs Xhtml 1.0
    Whats the difference? (13)
    Is it only one type of xhtml 1.1 versus the three different types of xhtml 1.0 (strict,
    transitional-loose, and frameset)? Is it 1.1 only strict? What are the differences or whats this
    all about? I have heard something about xhtml 1.1 but have not actually seen one (not that i know at
    least)... Thanks!....
  15. Xhtml Forms Layout
    all within the standars (8)
    We all remember the good old tables right? When we used them to design or beloved websites. But
    nowadays things have change a little bit, strict code format, css, xhtml and no tables. And so
    when it comes finally to the design of a form, instead of having two rows (left row with the label
    and right row with the input tag) and those rows aligned to look nice (left row= right aligned and
    right row=left aligned), how can we keep order with our fancy style sheet? Thanks in advance.....
  16. Order With Xhtml And Css
    how do i improve (10)
    hi!, actually i'm working on one site for my grandma's vivarium, i have been researching all
    kinds of features about xhtml and css and it rocks, but i have got a lot of problems with the
    arrangement, alignement and possitioning, specially when the content of tables differs and i have to
    create a new class, and then i have to reorder all the padding, marging, width and heights commands
    or even worse, nesting!. I lose the control of the layout. ok the question here is if there is any
    way of doing standard tables(with divs) of content or layouts structures, without....
  17. What Is The Xhtml 1.1 Code To Embed An Applet?
    (2)
    I've been doing a lot of java stuff recently and some is pretty neat, so I'd like to put it
    on the internet. I'm using XHTML 1.1 for all my pages, though, and according to W3Schools
    doesn't exist anymore and to use object. It's not working, though. There are a bunch of
    attributes ( http://www.w3schools.com/tags/tag_object.asp ) and I have no idea which things I need
    to use. Which do I put for an applet?....
  18. Xhtml Concerns
    just wondering (6)
    i been reading about it i got somewhat an understanding of it but how can you clearly define as
    xhtml when all it really is a html redefined to the point that its just trimmed down and little bit
    added here and there or its just the lack of understanding of it that confuses me. well of course
    im wondering if anyone is using xhtml or still using html or a combo of both? of course i need some
    more info w3c don't help out much.....
  19. Html And Xhtml
    serving the right kind (11)
    Right now I have a site, which I've made XHTML 1.0 Strict. I am sending it as
    application/xhtml+xml to browsers that say they can handle it, and as text/html to all other
    browsers. Anyway, I started thinking that I'd much rather send proper HTML 4.01 to browsers that
    don't understand XHTML instead of XHTML pretending to be HTML 4.01. It's not really a
    problem with IE, because it is made to handle badly written sites, but who knows, some browser that
    can handle HTML, but not XHTML, may be (correctly) parsing CODE Hello World as CODE
    Hel....
  20. Wha's The Difference Between Xhtml 1.0 And 1.1?
    (2)
    i learned xhtml 1.0 from w3 schools, but that was 1.0. what's new in 1.1? thanks in advance....




    1. Looking for xhtml, dtd, set






*SIMILAR VIDEOS*
Searching Video's for xhtml, dtd, set

*MORE FROM TRAP17.COM*
advertisement



Xhtml Dtd - can you set it up?