Logical OR with XPaths in Documaker 12.1
Is there a way we could provide a logical OR condition within Xpath Getdata DAL?
In the below case, we would need to retrieve the FormNumber value for SortOrder 18 or 19.
FormNumber= GetData( "!/Request/XmlTransaction/Quote/Product/Location/Form[PrintIn='Y'][SortOrder=18]/FormNumber 1,255");
Hi,
If it is Linux or Solaris the Word attachment to the document should work out-of-the-box with configuration. For AIX the Oracle Outside In Image Export runtime component that converts the documents for most document types (except for specific types of TIFF) needs a X11 DISPLAY context with user authorization for which to run the rule in because that what it uses to do the conversion to an image.
Is this AIX you are trying to do this on? If so the ODEE installer for 12.1.x sets a DISPLAY variable in the docfactory.sh startup script in a section for that platform that you would have use to point to a X11 Motif or Lesstif DISPLAY (e.g. my.server.com:2) that has a running X11 server. VNC server option will work also so that the system can remain headless.
I thought that the Oracle Documaker Enterprise Edition document covers this requirement under its attachments notes, not sure.
See documentation on Oracle Outside In Image Export for supported documents it can handle and platforms.
I am not sure if the version Oracle Documaker uses but here is a document reference for v8.3.5 for the Unix particulars, http://docs.oracle.com/cd/E14154_01/dev.835/e12885/c03_unix.htm .
SCCOPT_RENDERING_PREFER_OIT settings referenced in the above document is only option on Solaris SPARC and Linux x86_32 platforms according to the Oracle Outside In Image Export Developer's Guide for v8.3.5 (http://docs.oracle.com/cd/E14154_01/dev.835/e12885.pdf).
Regards,
-Steve
Similar Messages
-
Logic 8 with Yamaha KX8 keyboard
I'm running Logic 8 with a G5 Imac and I can't get the Logic template that ships with the Yamaha KX8 to work correctly. When I hit the transport buttons, I get notes instead of rewind, play, etc.
I'm running Logic 8.0.2, and have all the latest KX8 drivers.
Any ideas on what's wrong with this picture and how I can map these controls simply?Same thing with me and Logic 9. Funny that Level and pan + esc and choosing tracks seem to work but other buttons just give you notes.
-
Logical system with business service
hi,
can we have a logical system with business service just like we have with business system?? If yes,how can we create logical system for business service??
Ratna.Hi,
If you intend to use it with IDoc adapter it might be also necessary to set up corresponding Logical System (tcode: BD54) in adequate backed system.
Refer conversion routine (logical system vs. service) in this presentation [Using the IDoc-Adapter|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2b4035c-0d01-0010-31b5-c470d3236afd] - page no 6.
Regards,
Jakub -
I can't seem to parse a simple XHTML 1.1 document with XPATH. In the code below, the string xmlDoesntWork is taken directly from http://www.w3.org/TR/2001/REC-xhtml11-20010531/conformance.html. However, XPATH can't find the <title> element unless I remove the DOCTYPE line & the xmlns attribute from the <html> element (the xmlWorks string). XPATH returns null for the <title> element in the first string, but correctly retrieves the title in the second string. I tried adding a namespace context argument, but that didn't make any difference.
Can anyone see what I'm doing wrong?
import java.io.StringReader;
import javax.xml.namespace.NamespaceContext;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathFactory;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
public class Test
public static void main(String[] unused)throws Exception
final String path = "/html/head/title";
final String xmlDoesntWork =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">" +
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >" +
"<head>" +
"<title>Virtual Library</title>" +
"</head>" +
"<body>" +
"<p>Moved to <a href=\"http://vlib.org/\">vlib.org</a>.</p>" +
"</body>" +
"</html>";
String title = getText(xmlDoesntWork, path, null);
System.out.println("Title: " + title);
final String xmlWorks =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<html>" +
"<head>" +
"<title>Virtual Library</title>" +
"</head>" +
"<body>" +
"<p>Moved to <a href=\"http://vlib.org/\">vlib.org</a>.</p>" +
"</body>" +
"</html>";
title = getText(xmlWorks, path, null);
System.out.println("Title: " + title);
private static String getText(String xml, String path, NamespaceContext context)
throws Exception
StringReader reader = new StringReader(xml); // Get input source
InputSource source = new InputSource(reader);
XPath xpath = XPathFactory.newInstance().newXPath();
if (context != null) // If there's a namespace context
xpath.setNamespaceContext(context); // Inform XPATH
XPathExpression expression = xpath.compile(path);
Node node = (Node)expression.evaluate(source, XPathConstants.NODE);
return node == null ? null : node.getTextContent();
}I'm perplexed. I made the change you suggested (code below), and still get the same error. Did I miss something?
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import javax.xml.namespace.NamespaceContext;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathFactory;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
public class Test implements NamespaceContext
private static final HashMap<String,String> URI_MAP ;
private static final HashMap<String,String> PREFIX_MAP ;
private static final String XHTML_PREFIX = "xhtml" ;
private static final String XHTML_URI = "http://www.w3.org/1999/xhtml" ;
private static final String XSI_PREFIX = "xsi" ;
private static final String XSI_URI = "http://www.w3.org/2001/XMLSchema-instance" ;
static
URI_MAP = new HashMap<String,String>();
URI_MAP.put(XSI_PREFIX , XSI_URI );
URI_MAP.put(XHTML_PREFIX, XHTML_URI);
PREFIX_MAP = new HashMap<String,String>();
PREFIX_MAP.put(XSI_URI , XSI_PREFIX );
PREFIX_MAP.put(XHTML_URI, XHTML_PREFIX);
public static void main(String[] unused)throws Exception
new Test().run();
public void run()throws Exception
final String path = "/xhtml:html/xhtml:head/xhtml:title";
final String xmlDoesntWork =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">" +
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >" +
"<head>" +
"<title>Virtual Library</title>" +
"</head>" +
"<body>" +
"<p>Moved to <a href=\"http://vlib.org/\">vlib.org</a>.</p>" +
"</body>" +
"</html>";
String title = getText(xmlDoesntWork, path, this);
System.out.println("Title: " + title);
final String xmlWorks =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<html>" +
"<head>" +
"<title>Virtual Library</title>" +
"</head>" +
"<body>" +
"<p>Moved to <a href=\"http://vlib.org/\">vlib.org</a>.</p>" +
"</body>" +
"</html>";
title = getText(xmlWorks, path, this);
System.out.println("Title: " + title);
private static String getText(String xml, String path, NamespaceContext context)
throws Exception
StringReader reader = new StringReader(xml); // Get input source
InputSource source = new InputSource(reader);
XPath xpath = XPathFactory.newInstance().newXPath();
if (context != null) // If there's a namespace context
xpath.setNamespaceContext(context); // Inform XPATH
XPathExpression expression = xpath.compile(path);
Node node = (Node)expression.evaluate(source, XPathConstants.NODE);
return node == null ? null : node.getTextContent();
* Determines the URI associated with a namespace prefix.
* @param prefix The prefix.
* @return The URI.
public String getNamespaceURI(String prefix)
String URI = URI_MAP.get(prefix);
return URI;
* Determines the prefix associated with a namespace URI.
* @param URI The URI.
* @return The prefix.
public String getPrefix(String URI)
String prefix = PREFIX_MAP.get(URI);
return prefix;
* Retrieves prefixes associated with a namespace URI.
* @param URI The URI.
* @return An iterator to the collection of prefixes.
public Iterator getPrefixes(String URI)
ArrayList<String> list = new ArrayList<String>();
list.add(getPrefix(URI));
return list.iterator();
} -
Hi,-
I am trying to parse an XML string with xpath as follows but I am getting null for getresult.
I am getting java.xml.xpath.xpathexpressionexception at line where
getresult = xpathexpression.evaluate(isource); is executed.
What should I do after
xpathexpression = xPath.compile("a/b");in the below snippet?
Thanks
String xmlstring ="..."; // a valid XML string;
Xpath xpath = XPathFactory.newInstance().newPath();
xpathexpression = xPath.compile("a/b");
// I guess the following line is not correct
InputSource isource = new inputSource(new ByteArrayInputStream(xmlstring.getBytes())); right
getresult = xpathexpression.evaluate(isource);My xml string is like:
<a>
<b>
<result> valid some more tags here
</result>
</b>
<c> 10
</c>
</a>Edited by: geoman on Dec 8, 2008 2:30 PMI've never used the version of evaluate that takes an InputSource. The difficulty with using it is that it does not save the DOM object. Each expression you evaluate will have to create the DOM object, use it once and then throw it away. I've yet to write a program that only needs one answer from an XML document. Usually, I use XPath to locate somewhere in a document and then read "nearby" content, add new content nearby, delete content, or move content. I'd suggest you may want to parse the XML stream and save the DOM Document.
Second, all of the XPath expressions search from a "context node". I have not had good luck searching from the Document object, so I always get the root element first. I think the expression should work if you use the root as the context node. You will need one of the versions of evaluate that uses an Object as the parameter. -
XMLSearch / case in-sensitive search in a text node value with XPATH
Hi everyone,
I was aggregating some XML files and queries for a search
engine. It is pretty easy with coldfusion XML functions BUT ....
I was looking around XMLSearch to do a simple text search
into nodes and I am stuck with it.
with something like that :
selectedElements = XmlSearch(myxmldoc,
'(/directory/user[contains(.,"#form.firstName#")])');
Without loop all the XML elements, I cannot put firstName
text nodes to lower-case, do a simple search into the directory and
get user entries.
Is it possible to do with XPATH something like that :
selectedElements = XmlSearch(myxmldoc,
'(/directory/user[contains(lower-case(.),lower-case("#form.firstName#"))])');
Thanks for your help.When Do you think coldfusion will implement Xpath functions
as
http://www.w3schools.com/xpath/xpath_functions.asp
???? -
Digital outs in Logic Express with 828 or 002 rack
Can someone tell me if it is possible to use the digital ins and outs of either my MOTU 828 or DIgi 002 rack with LE? It's no where as easy as Pro tools or DP!!
Forgive my naivety... when you say "digital outs" are you talking about SPDIF? Does this mean I can't run Logic Express with an interface connected to the SPDIFs on my G5? Only Pro? Or am I off the mark?
Thanks! -
Logic Nope With G4 Mac Mini (Non-gigabet version)
Does anyone know if that will work? One of the genius' at the apple store said I need gigabit and the only thing I could do was to buy a new Intel Core Duo Mac Mini. (Oh BTW, does anyone have predictions on when the Mac Mini will go core 2 duo) Does anyone know of any non-gigabit to gigabit converters out there? Thanks!
Mac Mini Mac OS X (10.4.8)you can in theory run logic node with less than gigabit ethernet, but the word is that it's too slow to make it worthwhile.
also, there's no such thing as a non-gigabit to gigabit ethernet converter. a datsun to porsche converter would be nice too.
you can probably get a gigabit ethernet PCI card to add to a machine, but mac minis don't have PCI. honestly you're best off just getting a machine that has gigabit ethernet built in. -
XML/XPath question--how to select a range of elements with XPath?
Hi there,
I have an XML DOM in memory. I need to do hold it and issue only parts of it to my client app in "pages". Each page would be a self-contained XML doc, but would be a subset of the original doc. So for instance the first page is top-level elements 1-5. 2nd page would be 6-10 etc. Is this solution best solved with XPath? If not, what's the best way? If so, I have the following question:
Is there a way to use XPath to select a range of nodes based on position within the document? I know I can do an XPath query that will return a single Node based on position. So for example if I wanted the first node in some XML Book Catalog I could do XPathAPI.selectSingleNode(doc, "/Catalog/Book[position()=1]"); I could wrap the previous call in a loop, replacing the numeric literal each time, but that seems horribly inefficient.
Any ideas? Thanks much in advance!
Toby BuckleyYour question is about marking a range of cells. 99% of the code posted has nothing to do with this. If you want to create a simple table for test purposes then just do:
JTable table = new JTable(10, 5);
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
In three line of code you have a simple demo program.
When I leave the mouse button again, these bunch/range of cells shall stay "marked". table.setCellSelectionEnabled( true );
and I'd like to obtain, say, a vector of a vector containing just those data marked beforeUse the getSelectedRows() and getSelectedColumns() methods for this information. I would suggest you create a Point object to reflect the row/column position and then add the point to an ArrayList. -
Call logical links with different enhancement sets on the same business role
Hello,
I am trying to create a business role that contain logical links with different enhancements. I know how to choose an enhancement for the business role but I can't find a way, if possible, that one business role does it.
I know how to give an option to choose different roles for the same user, i'm looking for a way to do this in the same window
Thanks,
Noadoes not matter anymore
-
How to create logical directories with same name on two databases
Hi,
OS: Windows
Oracle Version : 10g
I have to databases in one oracle home. I have created some logical directories in one database. When I am trying to create logical directories with same name in another database, it is overwriting the first database directory paths with the second one
Can't we create directories with same name but different path in two databases on one machine?
Pls suggest me on this
Regards,
VijayI am trying to create logical directory using CREATE
DIRECTORY statement. I am very much aware that the
create directory statement doesn't create directory
on OS. But we can attach the physical directory on OS
to logical directory in oracle
My requirement is to create logical directories in
oracle mapping the OS directories. Both the
databases, wil have same logical directory names but
different OS directory mappingsIf I understand you correctly, you can do this:
On DB 1
CREATE OR REPLACE DIRECTORY same_dir_name as 'C:\myoracle\mydir1';
On DB 2
CREATE OR REPLACE DIRECTORY same_dir_name as 'D:\myoracle\mydir2';
What stops you from doing that ?
Note: If what you have is one database but different connections, then you are connecting to one database. The above second statement will drop and replace with the first one -
I have just bought a 2011 iMac (2.5 ghz, 4gb) and logic express 9, and when i installed logic and tried to run it i had a message saying 'you can't use this version of the application logic express with this version of Mac OS X. How do i sort this out!? It is very frustrating as the main reason i have bought a mac is to use logic! Any help would be great as i am a complete novice when it comes to Macs!
You're probably on OS X Lion?
I had the same problem as you. I used Software Update to update Logic Express to the latest version, and then it ran without any problems. -
Access data on multi-logical database with ad hoc query
Dear all,
I would like to know if it is possible to access data in multi-logical database with ad hoc query.
I recall that I read some document stated that you can access data in multi-logical database with PNP as base.
But I find no document about how to set it up, any comment?
Regards
BillHi Bill...
PNP can be accessible..............
PNP 0000-0999, 2000 to 2999 HR Master Data & Time
PCH.... I don't think so....
Experts please do reply on this please...................
Vijay
Edited by: Vijay Shankar on Sep 13, 2011 11:32 AM -
Create a logical column with more than one data source
I'm having a problem to create a logical column with more than one data source in Siebel 7.8.
What I want to do is the union of 2 physical tables in one logical table.
For example, I have a "local_clients" table and a "abroad_clients" table. What I want is to have a logical table "clients" with the client data from the 2 tables.
What I've tried is dragging the datasources I need onto the logical column.
However this isn't working because it only retrieves the data from the first data source.Hi!
I think it is not possible to do this just by dragging the columns to the logical table. A logical table can have more than one source, but I think each column must have just one direct source column.
I'm not sure, but maybe you should do the UNION SQL to get the data of the two tables. In the physical layer, when you create a new physical table, it's possible to set the "table type" as a "SELECT". I didn't try that, but it seems that it's possible to have the union table in the physical layer.
Bye.
Message was edited by:
user578388 -
I would like to parse an xml document using xpath, see:
http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html
however, in the documentation (in the link above), it states that I need J2SE 5.0.
Currently, I have:
$ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
Does that mean that I really have to install J2SE 5.0 in order to use J2SE 5.0's XPath support? Does anybody know anything about getting started with XPath, and whether I can just use my existing version of Java? I've never used XPath.
For more documentation, one can view:
http://www.w3.org/TR/xpath20/
Thank you.I have copied the code for the xpath tutorial on
http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html
exactly as it is on the tutorial, and imported the correct jars (I think).
But still my code is giving lots of errors!
Granted its my first shot but anyway here's the code and the errors...
package test;
import org.jdom.xpath.*;
import java.io.*;
import javax.xml.xpath.*;
public class XPath {
public static void main (String [] args){
XPathFactory factory = XPathFactory.newInstance();
XPath xPath=factory.newXPath();
XPathExpression xPathExpression=xPath.compile("/catalog/journal/article[@date='January-2004']/title");
File xmlDocument = new File("/home/myrmen/workspace/Testing/test/catalog.xml");
//FileInputStream fis = new FileInputStream(xmldocument);
InputSource inputSource = new InputSource(new FileInputStream(xmlDocument));
String title = xPathExpression.evaluate(inputSource);
String publisher = xPath.evaluate("/catalog/journal/@publisher", inputSource);
String expression="/catalog/journal/article";
NodeSet nodes = (NodeSet) xPath.evaluate(expression, inputSource, XPathConstants.NODESET);
NodeList nodeList=(NodeList)nodes;
SAXBuilder saxBuilder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
org.jdom.Document jdomDocument = saxBuilder.build(xmlDocument);
org.jdom.Attribute levelNode = (org.jdom.Attribute)(XPath.selectSingleNode(jdomDocument,"/catalog//journal[@title='JavaTechnology']" + "//article[@date='January-2004']/@level"));
levelNode.setValue("Intermediate");
org.jdom.Element titleNode = (org.jdom.Element) XPath.selectSingleNode( jdomDocument,"/catalog//journal//article[@date='January-2004']/title");
titleNode.setText("Service Oriented Architecture Frameworks");
java.util.List nodeList = XPath.selectNodes(jdomDocument,"/catalog//journal[@title='Java Technology']//article");
Iterator iter=nodeList.iterator();
while(iter.hasNext()) {
org.jdom.Element element = (org.jdom.Element) iter.next();
element.setAttribute("section", "Java Technology");
XPath xpath = XPath.newInstance("/catalog//journal:journal//article/@journal:level");
xpath.addNamespace("journal", "http://www.w3.org/2001/XMLSchema-Instance");
levelNode = (org.jdom.Attribute) xpath.selectSingleNode(jdomDocument);
levelNode.setValue("Advanced");
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Type mismatch: cannot convert from XPath to XPath
The method compile(String) is undefined for the type XPath
InputSource cannot be resolved to a type
InputSource cannot be resolved to a type
NodeSet cannot be resolved to a type
NodeSet cannot be resolved to a type
NodeList cannot be resolved to a type
NodeList cannot be resolved to a type
SAXBuilder cannot be resolved to a type
SAXBuilder cannot be resolved to a type
The method selectSingleNode(Document, String) is undefined for the type XPath
The method selectSingleNode(Document, String) is undefined for the type XPath
Duplicate local variable nodeList
The method selectNodes(Document, String) is undefined for the type XPath
Iterator cannot be resolved to a type
The method newInstance(String) is undefined for the type XPath
The method addNamespace(String, String) is undefined for the type XPath
The method selectSingleNode(Document) is undefined for the type XPath
at test.XPath.main(XPath.java:12)
Maybe you are looking for
-
How do I restore an iPhoto library from Time Capsule
My iMac was stolen. I have a MacBook Air running Yosemite version 10.10.2. The iPhoto Library was not on the MacBook. How do I restore my iPhoto Library from a Time Machine backup on my Time Capsule onto my MacBook? I am using iPhoto version 9.6.1. T
-
Hi, I have a code to display Sales order report. But i need to generate Sales order Line item wise Report. Can anyone help me to modify this code to suit my criteria? DATA: IT_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE. DATA: IT_VBAP LIKE VBAP OCCURS 0
-
UI -- Web Services -- PL/SQL API
Hi all, We inherited an existing application, which has this architecture: UI - C# (Windows forms, not web based), completely DB agnostic WS - Web services, C# DB - Oracle 10g, >500 tables API - PL/SQL Because the UI is DB blind, few information (par
-
Installing update 1.0.3 on 80G classic
I just got an 80Gig Classic yesterday and itunes recognizes my IPOD and says there's a new update(1.0.3), but when it's done downloading, it doesn't install it because it says the firmware is corrupt. I tried different USB Hubs, reconnecting and stil
-
How do I specify the junk mail folder?
In older releases of OS X the mail.app let you right click on a folder and specify if that folder was for Sent, Trash or Junk. You could also change the folders via the account preferences. In the newest version of Mail.app (6.3), this option is miss