How to specify a namespace resolver.
Oxygen general issues.
-
- Posts: 10
- Joined: Fri Oct 02, 2009 12:24 am
How to specify a namespace resolver.
Post by mveerasamy »
How do I specify a namespace resolver for xpath evaluation? For e.g. we want to use the attribute from an external namespace xlink ( xmlns:xlink=http://www.w3.org/1999/xlink).
Basically, I would like to call setNamespaceResolver(NamespaceResolver namespaceContext) on XPathEvaluator to register the namespace
Basically, I would like to call setNamespaceResolver(NamespaceResolver namespaceContext) on XPathEvaluator to register the namespace
-
- Posts: 9508
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to specify a namespace resolver.
Hi,
You can either run the XPath like:
or in the Oxygen Preferences XML / XSLT-FO-XQuery / XPath add a new mapping to the default namespace mappings table for xlink and then run it like:
Regards,
Radu
You can either run the XPath like:
Code: Select all
//*/@*:href[namespace-uri()='http://www.w3.org/1999/xlink']
Code: Select all
//*/@xlink:href
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