Hallo,
ich möchte für ein bestimmtes Project Iframes einsetzen. Um zu vermeiden das ich auf XHTML1.0 Transitional zurückgreifen muß, möchte ich die XHTML1.1 DTD um das XHTML-Modul Iframes erweitern.
Es geht nicht gegen dich sondern allgmein:
Ich kapiere es eigentlich nicht, warum Leute etwas einsetzen wollen,
das der DTD wiederläuft, sie aber unbedingt die DTD dazu haben wollen.
Lass doch alle DOCTPYES weg, die Browser werden deine Seite auch problemlos darstellen.
Also ran an das XHTML 1.1 Document Model in der xhtml11-model-1.mod und ran an das entity Inline.extra und dort das im Iframe-Modul spezifizerte Entitiy %iframe.qname; eingetragen:
<!ENTITY % Inline.extra "%iframe.qname;" >
Nu meckert der vali wider rum.
Du hast das iframe-Modul auch eingebunden?
<!-- Inline Frames Module ........................................ -->
<!ENTITY % xhtml-iframe.module "INCLUDE" >
<![%xhtml-iframe.module;[
<!ATTLIST %iframe.qname;
align ( top | middle | bottom | left | right ) #IMPLIED
>
<!ENTITY % xhtml-iframe.mod
PUBLIC "-//W3C//ELEMENTS XHTML Inline Frame Element 1.0//EN"
"xhtml-iframe-1.mod" >
%xhtml-iframe.mod;]]>
<!-- end of xhtml-iframe-1.mod -->
Du hast es überlesen:
<!-- Extending the Model
While in some cases this module may need to be rewritten to accommodate changes to the document model, minor extensions may be accomplished by redeclaring any of the three *.extra; parameter entities to contain extension element types as follows:
%Misc.extra; whose parent may be any block or inline element.
%Inline.extra; whose parent may be any inline element.
%Block.extra; whose parent may be any block element.
If used, these parameter entities must be an OR-separated list beginning with an OR separator ("|"), eg., "| a | b | c"
All block and inline *.class parameter entities not part of the *struct.class classes begin with "| " to allow for exclusion from mixes.
-->
also: <!ENTITY % Inline.extra "| %iframe.qname;" >
Grüße
Thomas