I am using Xpath expression in Adobe Indesign, to collect the list of elements. I am using the below code to generate it.
tell application "Adobe InDesign CS5.5"
set user interaction level of script preferences to never interact
tell active document
tell XML element 1
set myElement to evaluate XPath expression using "//para"
end tell
end tell
set user interaction level of script preferences to interact with all
end tell
The above code does not works fine if the element contains "xml:lang" attribute.
Sample xml file:
<chapter>
<section>
<para xml:lang="en">This is sample para</para>
</section>
</chapter>
could you please let me know how i need to make my code to work for the above xml coding.