Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    675
    Thanks
    1
    Thanked 1 Time in 1 Post

    XML standalone? When and why?

    Upon looking for officlal W3C "Valid XML!" icons (theyn're not in the icon section of the W3 site for some reason but I remember seeing one once), I came across http://www.online-learning.com/demos...alid_decl.html. In their XML declaration page, they talk about the standalone attribute. I don't understand their definition of it. My guess would be that stand-alone means that it has it's own internal DTD and no need for any external namespace URIs (friendly for those with no internet connection). But in their DTD example, they showed an internal DTD with standalone="no". What is the intended purpose and rendering for this?

  2. #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeň, Sweden
    Posts
    5,578
    Thanks
    0
    Thanked 83 Times in 74 Posts
    The standalone declaration means that the document is self-contained. That in turn means one of three things:
    - There is no DOCTYPE declaration in it.
    - The DOCTYPE declaration is inline only.
    - The DOCTYPE declaration is external or combined, but the external part contains no data that changes the infoset representation of the document. The criteria for fulfilling this can be found at <http://www.w3.org/TR/REC-xml/#vc-check-rmd>

    It does not have any connection with namespaces, as they are just identifiers. It only describes the parse-time situation, which means that post-parsing referential technologies (i.e. that operate on the infoset level) such as xml-stylesheet PI, XLink or XInclude go unaffected.

    What is it good for? Well, it tells a validating parser whether it's safe to build the infoset before or even without reading the external declarations.
    Last edited by liorean; 06-06-2004 at 01:50 AM.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  3. #3
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts

    If you still need it, there it is

  4. #4
    Regular Coder
    Join Date
    Nov 2002
    Posts
    675
    Thanks
    1
    Thanked 1 Time in 1 Post
    Quote Originally Posted by liorean
    The standalone declaration means that the document is self-contained. That in turn means one of three things:
    - There is no DOCTYPE declaration in it.
    - The DOCTYPE declaration is inline only.
    - The DOCTYPE declaration is external or combined, but the external part contains no data that changes the infoset representation of the document. The criteria for fulfilling this can be found at <http://www.w3.org/TR/REC-xml/#vc-check-rmd>

    It does not have any connection with namespaces, as they are just identifiers. It only describes the parse-time situation, which means that post-parsing referential technologies (i.e. that operate on the infoset level) such as xml-stylesheet PI, XLink or XInclude go unaffected.

    What is it good for? Well, it tells a validating parser whether it's safe to build the infoset before or even without reading the external declarations.
    Prior to knowing of this attribute, my XML files have validated properly with an external system DTD. I'm not sure what infoset is, but I know that any name space dependant page can't be standalone.

    Quote Originally Posted by Error 404

    If you still need it, there it is
    Thanks, I was looking on http://www.w3.org/Consortium/Legal/l...-20000308.html. They should add it there as well as to a successful XML validation.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •