Remove optional elements
Here should go questions about transforming XML with XSLT and FOP.
Remove optional elements
Hi,
I'd like to run an XSLT that removes all elements from the source document which are optional according to the related schema. Is there a way to determine if an element ist mandatory or optional???
Regards
- Alex
I'd like to run an XSLT that removes all elements from the source document which are optional according to the related schema. Is there a way to determine if an element ist mandatory or optional???
Regards
- Alex
Re: Remove optional elements
Hi Alex,
In the general case I believe it is very difficult as you practically need to implement an XML Schema processor in XSLT. If you can take advantage of some patterns in your schema then that may be a reasonably doable task.
Best Regards,
George
In the general case I believe it is very difficult as you practically need to implement an XML Schema processor in XSLT. If you can take advantage of some patterns in your schema then that may be a reasonably doable task.
Best Regards,
George
George Cristian Bina
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