How can I call the last metadata tag in AEM Native PDF | Community
Skip to main content
Level 4
June 26, 2024
Solved

How can I call the last metadata tag in AEM Native PDF

  • June 26, 2024
  • 1 reply
  • 688 views

Hi there!

 

I'm using the following code to reference the most modified date from a map:

data-subtype="//critdates/revised/@modified"

If the map has more than one revised tag, how can I amend this to call the last revised tag present in critdates?

 

Thanks in advance!

Josh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by t_a12

Hi,

 

In order to use last revised tag present in critdates, the xpath can be updated to (//critdates/revised/@modified)[last()].

 

Thanks,

Tulika

1 reply

t_a12Adobe EmployeeAccepted solution
Adobe Employee
July 8, 2024

Hi,

 

In order to use last revised tag present in critdates, the xpath can be updated to (//critdates/revised/@modified)[last()].

 

Thanks,

Tulika

Level 4
July 8, 2024

Perfect! Thank you!!