3 ms·
I'm probably wrong, but isn't this exactly what XSLT does? You define your custom tags and document structure in xml and then apply the visual styles with xsl?
by totalrager 17y ago
I'm probably wrong, but isn't this exactly what XSLT does? You define your custom tags and document structure in xml and then apply the visual styles with xsl?
- nimbix 17y agoThis would be a lossy transformation. An <address> tag would still need to be transformed into a <div> which would destroy the association between the tag name and its contents. After that getElementsByTagName('address') wouldn't return any results, browser plugins wouldn't see the connection between the original and rendered data, etc.
- jamesbritt 17y agoConvert it to <div class='address'> or something along those lines.
- hellotoby 17y agoI hate to nitpick. But <address> is probably a bad example in this case as the tag <address> already exists in HTML 4.