[Home] [By Thread] [By Date] [Recent Entries]


"url" in this case feels like a type to me.  I've also seen markup like:

<int_temp scale="F">9</int_temp>

and

<text_name>Simon</text_name>

Perversely Oriented Namespace Datatyping (POND) is an unwritten proposal
for doing the same with URI-identified types.

<pond xmlns:int="http://www.w3.org/TR/xmlschema-2/#integer"
      xmlns:text="http://www.w3.org/TR/xmlschema-2/#string"
      xmlns:uri="http://www.w3.org/TR/xmlschema-2/#anyURI">
   <int:temp scale="F">9</int:temp>
   <text:name>Simon</text:name>
   <url:homepage><!--whitespace - 
      is meaningless padding allowed in anyURI?
   -->http://freshmeat.net/redir/dom4j/16508/url_homepage/<!--
--></url:homepage>
</pond>

Just for fun, of course.

dareo@m... (Dare Obasanjo) writes:
>Joshua pointed out to me that some would prefer that the type of the
URL
>was captured in an attribute as in 
>
> <url
>type="homepage">http://freshmeat.net/redir/dom4j/16508/url_homepage/</
ur
>l>
>
>as opposed to 
>
> 
><url_homepage>http://freshmeat.net/redir/dom4j/16508/url_homepage/</
url_
>homepage>
>
>which to me seems worse not better. To each his own I guess. I've
>probably been using regexes a bit too much. 
-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member