diff options
-rw-r--r-- | README.md | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -878,7 +878,7 @@ Declare [prefix definitions](#Prefix-definition-syntax), anywhere in the documen Should yield ```html -<div prefix="ex: http://example.org/"> +<div prefix="schema: http://schema.org/ rdfs: http://www.w3.org/2000/01/rdf-schema# ex: http://example.org/"> <ul typeof="Event"> <li>Date: <span property="startDate">10/11/2019</span></li> <li>Location: <span property="ex:good_place">somewhere</span></li> @@ -886,12 +886,6 @@ Should yield </div> ``` -Notice how prefixes "schema" and "rdfs" are omitted, because they are implicitly defined by [RDFa Core Initial Context], and rdfs also because it is unused. - -:::danger -:heavy_exclamation_mark: FIXME: Undecided if prefix declared in the source should always be converted in the output or omitted if unneeded as per Core Initial Context or when unused. -::: - ### Prefix and link definitions have similar but separate syntax Prefixes mimic the syntax for links, but using curly brackets instead of angle brackets: |