Finding all id elements in a chapter
Oxygen general issues.
-
- Posts: 18
- Joined: Fri Feb 18, 2011 2:29 pm
Finding all id elements in a chapter
Is there an easy way to find all the id elements in a chapter? And list them, if possible.
I have been using Search/Replace on a single chapter.
I tried using xpath such as //sect1[@id] to get all the id's in a sect1 element. But it returns too many hits.
What is the correct xpath for this, please?
I have been using Search/Replace on a single chapter.
I tried using xpath such as //sect1[@id] to get all the id's in a sect1 element. But it returns too many hits.
What is the correct xpath for this, please?
-
- Posts: 18
- Joined: Fri Feb 18, 2011 2:29 pm
Re: Finding all id elements in a chapter
I got this working. It was easier than I expected:
XPath: //@id
Text to find: .*
Select "Regular Expression", deselect "Dot matches all"
Then do a Find All, right-click on the results and save to a *.txt file.
You can process the resulting file using Oxygen, to remove unwanted fields and info.
XPath: //@id
Text to find: .*
Select "Regular Expression", deselect "Dot matches all"
Then do a Find All, right-click on the results and save to a *.txt file.
You can process the resulting file using Oxygen, to remove unwanted fields and info.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service