diff options
author | Dave Beckett <dave@dajobe.org> | 2012-05-23 12:39:24 +0100 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2012-05-23 12:39:24 +0100 |
commit | 911fb6a6434ce40b4276094c9139761a70ca2d47 (patch) | |
tree | 97107eb9f9b417bdbaf6787956dabb5387786e7a /librdfa | |
parent | 391e09a5acddaf3ed63005bec880804896ca860e (diff) | |
download | raptor-911fb6a6434ce40b4276094c9139761a70ca2d47.tar.gz |
(start_element): Start a raptor namespace for RDFa 1.1 @prefix
Diffstat (limited to 'librdfa')
-rw-r--r-- | librdfa/rdfa.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/librdfa/rdfa.c b/librdfa/rdfa.c index 495e369c..83cf68d8 100644 --- a/librdfa/rdfa.c +++ b/librdfa/rdfa.c @@ -557,7 +557,18 @@ static void start_element(void *parser_context, const char* name, } /* update the prefix mappings */ +#ifdef LIBRDFA_IN_RAPTOR + if(1) { + raptor_namespace_stack* nstack; + nstack = &context->sax2->namespaces; + raptor_namespaces_start_namespace_full(nstack, + (const unsigned char*)atprefix, + (const unsigned char*)iri, + 0); + } +#else rdfa_update_uri_mappings(context, atprefix, iri); +#endif /* get the next prefix to process */ atprefix = strtok_r(NULL, ":", &saveptr); |