[ 
https://issues.apache.org/jira/browse/NIFI-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16891031#comment-16891031
 ] 

Nico Verwer commented on NIFI-1023:
-----------------------------------

When using EvaluateXQuery, it is possible to declare namespaces, like this:
{code:java}
declare namespace rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";;
declare namespace dcterms="http://purl.org/dc/terms/";;
return //rdf:Description/dcterms:identifier/text(){code}
There is no possibility to declare namespaces in EvaluateXPath.

A controller service would be very helpful, and even essential in serious XML 
applications. This is even true for EvaluateXQuery, where it would save a lot 
of duplicated namespace declarations.

> Need ability to supply namespace mapping for XPath/XQuery processors
> --------------------------------------------------------------------
>
>                 Key: NIFI-1023
>                 URL: https://issues.apache.org/jira/browse/NIFI-1023
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Gilman
>            Priority: Minor
>
> Possibly consider creating a controller service that provides access to a 
> NamespaceContext which can be used with EvaluteXPath and EvaluateXQuery.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to