Search for elements that don't have a specific child?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 24
- Joined: Fri Apr 05, 2013 11:01 pm
Search for elements that don't have a specific child?
I have a long docbook document, and for accessibility purposes we're required to have alt text for every single image. This is something that can be easy to miss, and there are probably several throughout the books (literally) hundred of images that does not have an alt tag.
What I'm try to find are any places like this:
The above should actually read:
Does Oxygen have way to search for such instances where I neglected to insert an <alt> tag so I can correct them?
What I'm try to find are any places like this:
Code: Select all
<inlinemediaobject>
<imageobject>
<imagedata fileref="image.png"/>
</imageobject>
</inlinemediaobject>
Code: Select all
<inlinemediaobject>
<alt>Image alt text goes here</alt>
<imageobject>
<imagedata fileref="image.png"/>
</imageobject>
</inlinemediaobject>
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Search for elements that don't have a specific child?
Hi,
Maybe using our XPath toolbar or our XPath Build view you could run an XPath like:
Regards,
Radu
Maybe using our XPath toolbar or our XPath Build view you could run an XPath like:
Code: Select all
//imageobject[not(preceding-sibling::alt)]
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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