XPath query-master document w/external entity references
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 8
- Joined: Wed Oct 01, 2003 11:35 pm
XPath query-master document w/external entity references
Hello,
I use oXygen v.2.0.4, and I'm working with a large xml document that consists of one master document with references to numerous other documents (the sections). The master document declares the DTD and the external entities (the other sections documents). I want to run an XPath query on the master document to find a particular node that is in one of the section documents. oXygen will give me the correct result of the query in the Message Panel, but clicking the record in the result list does not take me to (highlight) that node in the editing panel. It does nothing--because the node I'm seeking is not in the master document but in one of the section documents, which are declared as external entities. Is there a way to make this work? If not, does this work in the newest version of oXygen?
I hope this makes sense. To illustrate, the master document contains:
...
<!ENTITY file1.1 SYSTEM "../Source Files/File1a.xml">
<!ENTITY file1.2 SYSTEM "../Source Files/File1b.xml">
...
<group>
<group>
<text>&file1.1;</text>
<text>&file1.2;</text>
...<!--end of master document-->
File1a.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<body>
<div>
<p><name-to-find>me</name-to-find>
...
My XPath query to locate <name-to-find> looks like:
/group/group/text[1]/body/div/p/name-to-find
Is my query wrong? Instead of *text[1]*, is there some way to give a file path that would direct oXygen to the correct section document?
I couldn't find an answer in the User Guide or archives, and I'd appreciate any help.
Thanks,
Susan
I use oXygen v.2.0.4, and I'm working with a large xml document that consists of one master document with references to numerous other documents (the sections). The master document declares the DTD and the external entities (the other sections documents). I want to run an XPath query on the master document to find a particular node that is in one of the section documents. oXygen will give me the correct result of the query in the Message Panel, but clicking the record in the result list does not take me to (highlight) that node in the editing panel. It does nothing--because the node I'm seeking is not in the master document but in one of the section documents, which are declared as external entities. Is there a way to make this work? If not, does this work in the newest version of oXygen?
I hope this makes sense. To illustrate, the master document contains:
...
<!ENTITY file1.1 SYSTEM "../Source Files/File1a.xml">
<!ENTITY file1.2 SYSTEM "../Source Files/File1b.xml">
...
<group>
<group>
<text>&file1.1;</text>
<text>&file1.2;</text>
...<!--end of master document-->
File1a.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<body>
<div>
<p><name-to-find>me</name-to-find>
...
My XPath query to locate <name-to-find> looks like:
/group/group/text[1]/body/div/p/name-to-find
Is my query wrong? Instead of *text[1]*, is there some way to give a file path that would direct oXygen to the correct section document?
I couldn't find an answer in the User Guide or archives, and I'd appreciate any help.
Thanks,
Susan
-
- Posts: 8
- Joined: Wed Oct 01, 2003 11:35 pm
how to paste into XPath expression field?
Thank you. I upgraded to 5.1 and it works now. But another question. Why can't I use cut&paste to copy an XPath expression from another document and paste it into the XPath expression field on oXygen's Editor Toolbar? The expression gets pasted into the document itself instead of into the XPath expression field. What am I doing wrong?
Thanks,
Susan
Thanks,
Susan
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Susan,
Please make sure you have the focus on the XPath text entry field. If you still have this problem and it can be reproduced then let us know the steps to reproduce it and also details about your system: operating system, java version (eventually you can send at support at oxygenxml.com the content of the Help->About->System Properties table.
Best Regards,
George
Please make sure you have the focus on the XPath text entry field. If you still have this problem and it can be reproduced then let us know the steps to reproduce it and also details about your system: operating system, java version (eventually you can send at support at oxygenxml.com the content of the Help->About->System Properties table.
Best Regards,
George
-
- Posts: 8
- Joined: Wed Oct 01, 2003 11:35 pm
Hi George,
I'm running WindowsXP Pro version 5.1 and Java version is 5.0.
I did not uninstall oXygen 2.0.4 before I installed v.5.1 (it's the trial version for now). Could this be the problem? I can run either version, but Windows lists only 2.0.4 in installed programs.
What happens in oXygen is that when I click in the XPath entry field, the cursor appears there, but right-clicking in that field does nothing--that is, a right-click in the XPath text entry field does not open the usual drop-down menu with the option to paste. If I click 'edit' on the main toolbar, the cursor disappears altogether, and if I then click 'paste' on that menu, the XPath expression is pasted into the xml document at the point where the cursor was before I clicked in the XPath text entry field.
I hope this makes sense. I'm sorry, I'm not a programmer. If I need to clarify or send more info please let me know. (I can pull up the Help->About->System Properties table, but how do I copy it to send to you?)
Thanks for your help,
Susan
I'm running WindowsXP Pro version 5.1 and Java version is 5.0.
I did not uninstall oXygen 2.0.4 before I installed v.5.1 (it's the trial version for now). Could this be the problem? I can run either version, but Windows lists only 2.0.4 in installed programs.
What happens in oXygen is that when I click in the XPath entry field, the cursor appears there, but right-clicking in that field does nothing--that is, a right-click in the XPath text entry field does not open the usual drop-down menu with the option to paste. If I click 'edit' on the main toolbar, the cursor disappears altogether, and if I then click 'paste' on that menu, the XPath expression is pasted into the xml document at the point where the cursor was before I clicked in the XPath text entry field.
I hope this makes sense. I'm sorry, I'm not a programmer. If I need to clarify or send more info please let me know. (I can pull up the Help->About->System Properties table, but how do I copy it to send to you?)
Thanks for your help,
Susan
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Susan,
The problem is that when you click on the toolbar button that executes the Paste action on the active editor. You need to use CTRL+V to paste into the XPath field once you have the focus on that.
The trial is the same as the licensed version, the only difference is in the license terms.
To get the properties from that table you need to CTRL+A to select all and CTRL+C to copy them and then CTRL+V in the email client, but I think we do not need them anymore as the problem should be solved if you use CTRL+V. We have as a feature request to add contextual edit action (Copy, Paste, Cut) to all text input fields in oXygen.
Best Regards,
George
The problem is that when you click on the toolbar button that executes the Paste action on the active editor. You need to use CTRL+V to paste into the XPath field once you have the focus on that.
The trial is the same as the licensed version, the only difference is in the license terms.
To get the properties from that table you need to CTRL+A to select all and CTRL+C to copy them and then CTRL+V in the email client, but I think we do not need them anymore as the problem should be solved if you use CTRL+V. We have as a feature request to add contextual edit action (Copy, Paste, Cut) to all text input fields in oXygen.
Best Regards,
George
-
- Posts: 8
- Joined: Wed Oct 01, 2003 11:35 pm
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