{context.getProfiler().message(this, Profiler.START_SEQUENCES, "CONTEXT SEQUENCE", contextSequence);}
}
final Map<String, String> prefixes = collectPrefixes(context, (NodeValue) args[0].itemAt(0));
final ValueSequence result = new ValueSequence();
for (final String prefix : prefixes.keySet()) {
//The predefined namespaces (e.g. "exist" for temporary nodes) could have been removed from the static context
if (!(context.getURIForPrefix(prefix) == null &&
("exist".equals(prefix) || "xs".equals(prefix) || "xsi".equals(prefix) ||
"wdt".equals(prefix) || "fn".equals(prefix) || "local".equals(prefix))))
{result.add(new StringValue(prefix));}
}
if (context.getProfiler().isEnabled())
{context.getProfiler().end(this, "", result);}