XPath attribute with colon fails to validate

Hi,

while working on XMP Meta Data I noticed that the XPath node fails to validate the XPath which references an attribute with a colon. Interestingly, the XPath actually the one which the node suggests to use, though:

Here is the test workflow. Please note that I have NOT tested other characters which should, theoretically, be valid to use!

Best
Mike

Hi @mwiegand,

To get the value of the attribute with a colon, you can use @*[name()='<attribute:name>']. e.g.:
/rdf:Description/@*[name()='aux:Firmware']

2 Likes

Yes, that is the ā€žfallbackā€œ approach I integrated in my example workflow. I was under the impression, since a colon is supported in the path declaration for leaves, itā€˜s a bug.

1 Like

Yes, I didnā€™t notice the ā€œfallbackā€ in your workflow and I think itā€™s a good idea to share it with the community.

Iā€™ll discuss this internally and will come back to you soon.

Dear @mwiegand,

I created a ticket for the issue you have mentioned here. (AP-20866)

About the ā€œleavesā€ or elements, colons are used after the namespaces. So, they are not part of the element name. The reason I have doubts not to consider this issue as a bug is the same fact that typically, colons in XML indicate namespace demarcation (e.g.). Yet, as I promised, I discussed it internally and we decided to have a ticket for it and investigate it further.

1 Like

Thanks. Doesnā€™t the name space declaration using colons only apply for doubled colons ā€œ::ā€? Anyways, leaving it to you guys. Cheers and thanks again!

1 Like

I donā€™t think so! :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.