anukat2015 / elda

Automatically exported from code.google.com/p/elda
0 stars 0 forks source link

Simplification of generated shortnames #154

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When Elda's XML (and other) renderers are forced to generate shortnames
for URIs, these shortnames cannot be reused in queries, because they
are not part of the config.

Proposed fix: ignore the hint in the spec that says when unambiguous
you may use the localname as the shortname. Instead force the use of
the pseudo-qname prefix_localname where prefix is the prefix for the
namespace of the uri if there is one.

Elda's shortname lookup already allows the prefix_localname syntax
so recirculating the generated name into a query -- as the xsl
sheets do -- will work.

Original issue reported on code.google.com by ehog.he...@googlemail.com on 16 Aug 2012 at 2:16

GoogleCodeExporter commented 8 years ago
Done. Also deal with the case where the localname doesn't fit shortname syntax, 
or the namespace has no prefix, by hex-encoding the uri (see the documentation 
for details).

Original comment by ehog.he...@googlemail.com on 29 Aug 2012 at 3:31

GoogleCodeExporter commented 8 years ago

Original comment by ehog.he...@googlemail.com on 30 Nov 2012 at 3:24