Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Script to apply Paragraph style to a specific tag with attributes

Return to Member Forum

  • Author
    Posts
    • #96338

      Hi ID Masters, please help me with these. Need a script to search for a level 4 head with attribute and apply Paragraph style on it. XML tag are look liked this … <head number=”1.2.3.4.5″>. 4HD should be apply to this. Is it possible to search for a value using the wildcard option (i.e., //story/head[@number=’\d.\d.\d.\d.\d’]). If not, please, I need your suggestion with this. Thanks in advance guys.

    • #97019
      Masood Ahmad
      Participant

      Hi Michael,

      Can you please explain a little more so that a GREP code can be written.

      Secondly, you can easily apply tags using the Find/Change. In the Change Format Settings, click the XML option at the bottom left and then choose the XML Tag to apply to.
      But before the F/C, you need to import the XML Tags in to your document.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads