Combine XHTML + Custom Tag Set

K

KW

I have a challenge and would appreciate any suggested approaches. I
want to be able to let a group of end users create something like the
following...

<div>
<custom:CustomTag attribute="Something" />
<p>This is a paragraph</p>
<custom:AnotherCustomTag>Some content here</custom:AnotherCustomTag>
Cool
</div>

Anyway, I want to allow my staff to combine XHTML tags with a set of
custom tags we will have defined. The resulting markup will be parsed
by our application and the custom tags would be replaced with valid
XHTML based on the tag and attributes. The idea is that we are trying
to allow our staff to be able to design layouts easily in XHTML and mix
in these special tags that mean things to our system.

Is there a way to define a schema that would allow for this approach?
Or, is there a better approach to implementing something like this? I
will need to be able to work with fragments like this, not whole xml
documents.

I appreciate any help on this!

Kevin
 
A

Andy Dingley

KW said:
want to be able to let a group of end users create something like the
following...

<div>
<custom:CustomTag attribute="Something" />
<p>This is a paragraph</p>
<custom:AnotherCustomTag>Some content here</custom:AnotherCustomTag>
Cool
</div>

IMHO, the favourites are these:

* XML Namespacing

* <div> and <span> with identifiable class attributes.

* XHTML Modularisation

Remember that XML features have to be stripped out before publishing to
the web, but they're great within a CMS. The full XHTML modularisation
palaver is too complicated (compared to just namesapcing) and still
isn't usefully publishable to the world at large.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,007
Messages
2,570,266
Members
46,864
Latest member
DaniEbswor

Latest Threads

Top