You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default namespace db = "http://docbook.org/ns/docbook"
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
datatypes dtd = "http://relaxng.org/ns/compatibility/datatypes/1.0"
include "docbook.rnc" {}
div{
db.meta.title.attlist =
attribute name {
## A title for SEO (max 55 characters)
"title"
}
& db.meta.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.meta.title =
## A title for SEO (max 55 characters)
element meta {
db.meta.title.attlist,
xsd:token { maxLength = "55" }
}
db.meta.description.attlist =
attribute name {
## A short SEO description, max. 150 chars
"description"
}
& db.meta.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.meta.description =
## A short SEO description, max. 150 chars
element meta {
db.meta.description.attlist,
xsd:token { maxLength = "150" }
}
}
db.meta |= (db.meta.title | db.meta.description )
However, jing seems not to check the length of an element like:
<!-- 60 characters: should be invalid -->
<metaname="title">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</meta>
<!-- 10 characters: should be valid -->
<metaname="title">xxxxxxxxxx</meta>
Problem Description
We introduced metadata which is added as the
<meta>
element. However, these tags aren't validated nor does it guide XML editors.Expected Behaviour
Make GeekoDoc v2 aware of the respective tags. If feasible, add also limitations to the respective
<meta>
element.Related information
The text was updated successfully, but these errors were encountered: