Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 15th, 2006, 12:15 AM
KW
Guest
 
Posts: n/a
Default Combine XHTML + Custom Tag Set

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

  #2  
Old December 15th, 2006, 07:55 AM
Bjoern Hoehrmann
Guest
 
Posts: n/a
Default Re: Combine XHTML + Custom Tag Set

* KW wrote in comp.text.xml:
Quote:
>Is there a way to define a schema that would allow for this approach?
http://www.w3.org/TR/xhtml-modularization/ is a proposed official method
to do this. In almost all cases you will be better off simply writing it
all by yourself.
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
  #3  
Old December 15th, 2006, 04:05 PM
Andy Dingley
Guest
 
Posts: n/a
Default Re: Combine XHTML + Custom Tag Set


KW wrote:
Quote:
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

* <divand <spanwith 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.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles