diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-07-13 18:20:49 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-07-13 18:38:11 +0200 |
commit | 450b355fff75fdd297fe43913b83d914a5c8a621 (patch) | |
tree | 4769ac5779ceb87a48d6b1bafcf04691488a5835 | |
parent | 63be7a364876ca681f7d174452751e4ef61c0d64 (diff) |
change prefix resolving, to simply add any explicitly declared prefixes
-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: |