Re: No nested <meta> elements?
Norm Tovey-Walsh <[email protected]> Fri, 18 Mar 2022 12:58:32 +0000
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
> <meta name="products">
> <meta name="HA" content="10SP1,10SP2,10SP3"
> >My HA product</meta>
You can’t do that in any case. You get either the content attribute or
you get element content, not both.
> <meta name="products">
> <meta name="abcd" content="10SP1,10SP2,10SP3">
> <meta name="short" content="ABCD"/>
> <meta name="long" content="The ABCD long product name"/>
> </meta>
> </meta>
You could, subject to the things you can’t do :-), but as you observed,
I think you could also justify having
<meta name="products">
<productnumber>10SP1,10SP2,10SP3</productnumber>
<productname>The ABCD long product name</productname>
<abbrev>ABCD</abbrev>
</meta>
You have complete freedom inside the meta element; you could even invent
your own markup. Meta inside meta would (to me, at least) suggest that
it was meta *of* the meta, not a further constraint on the value of the
meta.
> Another issue could arise, if someone customizes DocBook (as we do). The
> customization layer could potentially remove productname or any other inline
> element. This would seriously limit the selection. Allowing nested <meta>s
> would reduce this risk.
You can remove them from context where you don’t want them and leave
them in meta.
Be seeing you,
norm
--
Norman Tovey-Walsh <[email protected]>
https://nwalsh.com/
> The people I distrust most are those who want to improve our lives but
> have only one course of action.--Frank Herbert
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1ury//rzuvqf7fN/hVWfHhJMAHkFAmI0gysACgkQhVWfHhJM AHl4qBAAo4QHqlxUhQHxrDmk2f6/q802As182yFj20rOC/1UfUoamr3GKklrNDxo YZhQ+nECtnsUYIHEE9HYUgej/T+g+jMYFma/aUbJY0cMACtASMxlzHRUU0E9vXqB uZRuhiywbkwvySvX8N8jcNelEXjr4qzO1hXOZg3MgIPRKAtb69nGt6hBAVdKmIJs iaBsjslgIxbilMF4KoWqRoS64daWagP9HWCOEDbPHywC53pXaIh+TgCN1YU3k7ka U1mUrGBMvv52vx2kniskkE56PBvatYR608UsYWTYY2FUz2PrNLDlKiqXgm76222W i8rZ0SuAkdUX5kEhUHlkz6RyviJ7JtnoYNgrb9CooVsAYwCIqnjQGU3ArmWaTMcf 3FELFl/J5dhufmLtfhY6Ly1pMgYihkMkafFqWXXppIaFXJ2LENDnKJl6qUNezyFx CxmVvSe4nFwWTLZ0o5DypcdLYB0MJcWZyNbjiH/EBlV8YPDGg027j2hA2T1wSs9j ZWAiOcDr9BZN+AujdIfZFI2InF8zZYK14Mo9EKXLbf4kXznvqzGRjj79TgjcQwJx /mSJpkyetbUSMwkFsHQFX0HX7TCSBMJhzCDJAZEWMPNMi52EJysHk0qQpdepuAgi rC0lAYT6D7UmT1ryIDiOas6xrRZkr9iyNyqaa/RgXVxxqK80GZE= =5Mxi -----END PGP SIGNATURE-----