Defining namespace prefixes for the Xpath evaluator
Are you missing a feature? Request its implementation here.
Defining namespace prefixes for the Xpath evaluator
If an XML document has default namespace: there is no way to match unprefixed elements (from the default namespace) using the standalone XPath evaluator, and most times is not practicable to add a prefix to the namespace definition and all unprefixed elements.
Both Xalan and Saxon provide in its XPath API ways to define namespace prefixes when evaluating an standalone XPath expression.
Please provide a mechanism to allow the user to define namespace prefixes that would be available to the standalone Xpath evaluator.
Thank you in advance.
Jose M Beleta
Code: Select all
xmlns="something"
Both Xalan and Saxon provide in its XPath API ways to define namespace prefixes when evaluating an standalone XPath expression.
Please provide a mechanism to allow the user to define namespace prefixes that would be available to the standalone Xpath evaluator.
Thank you in advance.
Jose M Beleta
Suggestion
I suggest that it not be necessary to enter "default" as a magic namespace prefix. This is unintuitive.
Also... it would be nice if in the status bar or somewhere else displayed the xpath expression to your current location. Perhaps underneath the "model" tab area. I don't know.
Also... it would be nice if in the status bar or somewhere else displayed the xpath expression to your current location. Perhaps underneath the "model" tab area. I don't know.
~ David Smiley
Registered Oxygen User
Registered Oxygen User
Re: Suggestion
This will be documented in the user guide. Any suggestions to make it more intuitive? And I think it is necessary, otherwise one cannot access a namespaced node.dsmiley wrote:I suggest that it not be necessary to enter "default" as a magic namespace prefix. This is unintuitive.<snip/>
Best Regards,
George
Hi David,
Right, but we were talking about the case when there is no prefix, example:
In this case test and a from the XPath expression test/a mean
test element from no namespace
a element from no namespace
and the XPath expression will not match any node in the sample document because there the test and a elements are from the http://test.com/test namespace.
I such a case oXygen will map default to the http://test.com/test namespace and the user can write default:test/default:a
Hope that clarifies things.
Best Regards,
George
Right, but we were talking about the case when there is no prefix, example:
Code: Select all
<test xmlns="http://test.com/test">
<a>a</a>
</test>
test element from no namespace
a element from no namespace
and the XPath expression will not match any node in the sample document because there the test and a elements are from the http://test.com/test namespace.
I such a case oXygen will map default to the http://test.com/test namespace and the user can write default:test/default:a
Hope that clarifies things.
Best Regards,
George
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