G
Grant Robertson
Here I am again with my off the wall questions about what is even
possible.
Up until now, I have been thinking about the standard I have been
creating as a mere wrapper around a snippet of HTML or XHTML. A sort of
envelope or container with lots of additional metadata in which to place
a small piece of HTML (about 1/4 page worth each). I just realized that I
need to be able to mark up text *within* the HTML snippet with some of
the tags from my XML standard. A large set of metadata about the snippet
of HTML as a whole will not be adequate. Users need to be able to tag
specific parts of the HTML snippet with tags from my standard.
I know that the frequent use of the "any" wildcard in the XHTML schema
means that XHTML content creators can use XML from any standard to insert
additional tags within their XHTML content.
My first question is:
If my tags are used within the XHTML snip pit which is then wrapped up in
an element of my XML standard with lots of my metadata above and below
it, will a standard web browser engine be able to display that document -
ignoring all of the XML from my standard? Or, will I need to create my
own app to even be able to display the basic content?
2:
Even though that XHTML content is wrapped up in my XML metadata, will the
main part of the XML and the tags within the XHTML be considered part of
the same namespace? Will they be part of the same namespace but perhaps
have a different prefix depending on how the XHTML content creator chose
to write their headers? (The content may be created by different people,
and even different software, from those who add the metadata later.) If
they have different prefixes, will a standard XML parser still figure out
that both are of the same namespace? Will this matter to the program that
is actually doing something with this document?
3:
What about plain HTML? Do things work the same as XHTML in this context
or will they be completely different? I have a sinking feeling that HTML
will not allow my XML tags at all. Would I have to completely write my
own web engine to enable this to work at all?
possible.
Up until now, I have been thinking about the standard I have been
creating as a mere wrapper around a snippet of HTML or XHTML. A sort of
envelope or container with lots of additional metadata in which to place
a small piece of HTML (about 1/4 page worth each). I just realized that I
need to be able to mark up text *within* the HTML snippet with some of
the tags from my XML standard. A large set of metadata about the snippet
of HTML as a whole will not be adequate. Users need to be able to tag
specific parts of the HTML snippet with tags from my standard.
I know that the frequent use of the "any" wildcard in the XHTML schema
means that XHTML content creators can use XML from any standard to insert
additional tags within their XHTML content.
My first question is:
If my tags are used within the XHTML snip pit which is then wrapped up in
an element of my XML standard with lots of my metadata above and below
it, will a standard web browser engine be able to display that document -
ignoring all of the XML from my standard? Or, will I need to create my
own app to even be able to display the basic content?
2:
Even though that XHTML content is wrapped up in my XML metadata, will the
main part of the XML and the tags within the XHTML be considered part of
the same namespace? Will they be part of the same namespace but perhaps
have a different prefix depending on how the XHTML content creator chose
to write their headers? (The content may be created by different people,
and even different software, from those who add the metadata later.) If
they have different prefixes, will a standard XML parser still figure out
that both are of the same namespace? Will this matter to the program that
is actually doing something with this document?
3:
What about plain HTML? Do things work the same as XHTML in this context
or will they be completely different? I have a sinking feeling that HTML
will not allow my XML tags at all. Would I have to completely write my
own web engine to enable this to work at all?