Oracle xsl parser equivalent to msxsl:node-set()?

Hello
I am looking for an equivalent to the msxsl:node-set() that I can use with the Oracle xsl parser.
Any sugestions?
Ade

We have ora:node-set()
Use http://www.oracle.com/XSL/Transform/java
as the namespace URI for the "ora" prefix.

Similar Messages

  • Using msxsl:node-set as a function to a field in InfoPath 2010

    I have been trying to query a node set (from a web service - managed metadata web service infact) without success.  I received a GetTermSetsResult that I am trying to parse as an xml using msxsl:node-set().    Currently I am just throwing
    up messages about the expression result in a form load rule.   I just get empty node sets.  Note that I have even tried querying the xml string directly like in the examples below but the behavior is always the same.
    some examples of what I have tried that give empty nodesets:
     msxsl:node-set('<Container><TermStore>...'))/Container/TermStore
     msxsl:node-set('<Container><TermStore>...'))/Container
     msxsl:node-set('<Container><TermStore>...'))/*
    These give the following results:
     count(msxsl:node-set('<Container><TermStore>...')))  ---> reports "1"
    count(msxsl:node-set('<test>...</test><test>...</test>')))  ---> reports "1" when it should say "2"
    msxsl:node-set('<Container><TermStore>...'))/node()   ---> returns what looks like the entire xml document
    Ultimately I want to populate a listbox with managed metadata (taxonomy/folksonomy) terms in a "codeless" way.  I know it is a no brainer to use code behind but where I work they like to see minimum code.

    Hello mohrr,
    The PCIe-6321 doesn't have internal triggers you you have to export the signals to a PFI line ant the use the signal as external trigger.
    If you are not very familiar about how to do that, here you can find two documents that can give you an idea about how does it work.
    http://digital.ni.com/public.nsf/allkb/A099C37789A​ACEE386256E35007338E6?OpenDocument
    http://digital.ni.com/public.nsf/allkb/3A7F1402B2A​1CE7686256E93007E66C0?OpenDocument
    Mr.O
    Applications Engineer
    National Instruments

  • Why can't Oracle XML parser import a Xerces node?

    I have been using XSU to obtain query results in XML as a DOM. Recently I tried to use the Document.importNode method on the generated DOM where the node to be imported was generated using the Xerces parser. The Oracle XML parser gave the following error:
    java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementImpl
         org.w3c.dom.Node oracle.xml.parser.v2.XMLDocument.importNode(org.w3c.dom.Node, boolean)
              XMLDocument.java:1247
    I can get around the problem by parsing the XML I want to combine with the XSU generated XML with the Oracle parser, however, I would be happier if I could configure XSU to use Xerces (or another parser) via JAXP.
    Will XSU have JAXP support? What is the cause of the exception above?
    Gary Brown
    Analyst/Developer
    University of Bristol

    I have been using XSU to obtain query results in XML as a DOM. Recently I tried to use the Document.importNode method on the generated DOM where the node to be imported was generated using the Xerces parser. The Oracle XML parser gave the following error:
    java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementImpl
         org.w3c.dom.Node oracle.xml.parser.v2.XMLDocument.importNode(org.w3c.dom.Node, boolean)
              XMLDocument.java:1247
    I can get around the problem by parsing the XML I want to combine with the XSU generated XML with the Oracle parser, however, I would be happier if I could configure XSU to use Xerces (or another parser) via JAXP.Different implementation have different internal representation of DOMNode. That is why you can't import.
    Will XSU have JAXP support? What is the cause of the exception above?Why you need this? Any requirement from your application?
    Gary Brown
    Analyst/Developer
    University of Bristol

  • Oracle XSL extensions functions

    Where can I find a list (and doc) of all the Oracle XSL extensions functions like ora:node-set?
    TIA
    Didier

    Please try this link:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96621/adx05xsj.htm#1023311

  • Oracle.xml.parser.v2.XSLException: XSL-1045

    I'm trying to migrate from 8.1.6 to 8.1.7. In 8.1.6, I have a working java stored procedure that implements an extended namespace in XSL. I deployed the same working code in 8.1.7 and got the following error.
    processor.processXSL(styleSheet,xmlDoc)>>
    oracle.xml.parser.v2.XSLException: XSL-1045:
    Extension function error: Class not found 'com/redknife/util/xslExtend'
    The xslExtend class is loaded via loadjava and resolves with no errors. Is there a difference between the 8.1.6 implementation and 8.1.7?
    - Craig

    I've recreated the database and the instance...I've loaded all the classes and they are valid... The exact code set works in 8.1.6 but not in 8.1.7.
    Here lies the difference. In 8.1.6, I loaded the xmlparserv2.jar, but hoping for the natively compiled version being preloaded in 8.1.7, I did not load it. The error then occurs. I did a dropjava on the xmlparserv2.jar, and then a loadjava, and now it works.
    My assumption is that it was the natively compiled xml parser that made the difference. Once I removed it, and replaced it with byte code, everything worked.
    Hope I'm wrong... Craig

  • Oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'RO

    I'm using the oracle.xml.parser.v2. The files (xml, xsl) are:
    <?xml version="1.0" ?>
    <?xml-stylesheet type="text/xsl" href="king.xsl" ?>
    <ROWSET>
    <ROW>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    </ROW>
    </ROWSET>
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <INVITATION>
    <TO>
    <xsl:value-of select="ROWSET/ROW/ENAME"/>
    <xsl:text> &; FAMILY </xsl:text>
    </TO>
    </INVITATION>
    </xsl:template>
    </xsl:stylesheet>
    The error is: oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'ROWSET'.
    The files are well formed (tested with XML Spy 3.5). Can you see what's the problem? or is it a bug with the parser?
    help,
    Alberto
    null

    I encountered the same problem. When I change the order of the XML and XSL files, i am the same problem.
    Perhaps it's the environment AIX 4.3.3, JDK IBM 1.2.2 with JIT disable (because when JIT is enable some other problems become)??
    How can i resolve this bug ?
    Thanks.
    null

  • Xml result fragment to node-set

    I wrote a stylesheet that transforms data into a html table and dedupes all consecutive identical elements.
    The consecutive duplicates obviously depend on the sorting of the data, which is also a variable of the stylesheet.
    I ended up using the msxml:node-set function that allowed me to convert a sorted result fragment (in a variable) back into a node-set. Is there anything equivalent in oracle's parser? or a workarround to pre-sort the data?
    I would like to avoid multi-step transforms if possible...
    thanks for any help.
    null

    never mind... found ora:node-set()
    must have been blind I guess....
    null

  • Bpel-108-UsingXQuery $publisher - oracle.xml.parser.v2.XMLElement@8b8e58

    Hello,
    I am using Oracle SOA Suite 11.1.1.4.0 While executing the XQuery example bpel-108-UsingXQuery I am facing the following problem/error.
    The Xquery in the example is:
    xquery version "1.0";
    declare namespace ns0 = "http://example.com/bpel/books";
    declare namespace ns1 = "http://samples.otn.com/xquerysample";
    declare variable $category as node() external;
    declare variable $publisher as xs:string external;
    <bookReport>
    for $b in //ns0:BOOKS/ns0:ITEM
    where data($b/ns0:PUBLISHER) = $publisher
    order by string-length($b/TITLE) return
    <book>
    <author> { data($b/ns0:AUTHOR) } </author>
    <title> { data($b/ns0:TITLE) } </title>
    <price>{ data(doc("pricelist.xml")/ns1:pricelist/ns1:product[1]/ns1:price) }</price>
    <publisher>{ $publisher }</publisher>
    { $category }
    </book>
    </bookReport>
    The variable $publisher, declared in 'declare variable $publisher as xs:string external' shall have the value 'Associated Press' as this has been assigned in the BPEL but it has in fact the value 'oracle.xml.parser.v2.XMLElement@8b8e58'.
    The variable $category has the correct value.
    What is here wrong or is it a bug in 11.1.1.4.0 in the oracle.xml.parser.v2.XMLElement class.

    What a mess:
    org.w3c.Element element = (org.w3c.Element) payload.get("payload");
    private Document writeOraXMLtoDocument(org.w3c.Element payload) throws ParserConfigurationException, SAXException, IOException, TransformerException{
              ByteArrayInputStream inputStream = new ByteArrayInputStream(writeXMLToStream(new DOMSource(payload)).toByteArray());
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder =factory.newDocumentBuilder();
              return builder.parse(inputStream);
         private ByteArrayOutputStream writeXMLToStream(Source source) throws TransformerException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    // Prepare the output file
    Result result = new StreamResult(out);
    // Write the DOM document to the file
    TransformerFactory x = TransformerFactory.newInstance();
    Transformer xformer = x.newTransformer();
    xformer.transform(source, result);
    return out;
    Note, that you have to use the oracle transformer located in the xmlparserv2.jar
    if it is not your default transformer , you have to set it at least for the above code by System.setProperty("javax.xml.transform.TransformerFactory","..classname...");

  • Error while accessing OIM UI - OracleJSP error: oracle.jsp.parse.JspParseException

    We have 3 nodes of OIM servers in our clustered production environment. While accessing OIM server on first node, following error is coming in the browser window -
    OracleJSP error: oracle.jsp.parse.JspParseException:
    /oracle/iam/ui/main/signin.jspx: Line # 5, &amp;amp;amp;lt;af:document id="d1" initialFocusId="pt1:_pt_it1" theme="light" title="#{uiBundle['IDENTITY_SELF_SERVICE_TITLE']}"&amp;amp;amp;gt;
    Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
    The OIM UI is accessible on the other 2 nodes. There are no changes made in the environment. I have also attached the OIM diagnostic logs for your analysis.
    Please let us know the steps to resolve this issue in production environment.

    No..
    I have followed the way to add JSF libray,
    1)Right click the projet->project properties->javadoc->JSP taglibraries
    2)Inside the Distributed Library i have selected the JSTL core 1.2 and click on add.
    3) Then a new dialogue box of Choose tablibraries came.inside that only struts bean,struts Html etc are seeing.
    What i need to select?..Do i am following the right way?
    Please help..

  • ANN: Oracle XML Parser for Java v2.0.0.1

    A new maintenance release of the Oracle Parser for Java is
    available for download. It has the following fixes and changes:
    Bug fixes for #920536, i.e. Cannot access element attributes via
    XSLT; #898423. i.e. ElementDecl's in DTDs; #774774, i.e. DOM
    extensions using XSL pattern matching; #863890 i.e. SAX
    IOException not thrown.
    New APIs in the following new interface:
    1. oracle.xml.parser.v2.NSResolver
    - resolveNamespacePrefix( find the namespace definition in scope
    for a given namespace prefix )
    New APIs in the following classes:
    1. oracle.xml.parser.v2.XMLNode
    - selectNodes( Selects nodes from the tree which match the given
    pattern; client can provide an NSResolver implementation to
    resolve namespace prefixes in the pattern ).
    2. oracle.xml.parser.v2.ElementDecl
    - getParseTree( Returns the root Node of Content Model parse
    tree, which could then be traversed node by node using
    getFirstChild() and getLastChild(). The Node types are: PLUS,
    COMMA, ASTERISK, ELEMENT, QMARK ).
    This is the first beta patch release for v2.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

    unzip -l appsborg2.zip | grep 9.0.4
    0 04-18-03 20:10 .xdkjava_version_9.0.4.0.0_production
    do i still need to do that step?No, you do not have to since "XML Parser for Java v9.0.4" is already installed as part of appsborg2.zip

  • Oracle.xdo.parser.v2.XMLParseException: Start of root element expected

    Preview the offer letter using the "XML Publisher Administrator" responsibility. Follow the below steps to p
    review.
    i. "XML Publisher Administrator" responsibility.
    ii. Navigate to "Templates" and search for seeded template used for offer letter generation.
    iii. Click on the template name and preview the offer letter.
    The following error stack is thrown.
    Recently we patched our system to ATG H RUP5 which upgraded the xml publisher version to 5.6.3 and also applied IRC.E.RUP2 and HRMS K RUP 2.
    oracle.apps.fnd.framework.OAException: oracle.apps.xdo.XDOException
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:975)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:784)
         at oracle.apps.per.irc.offers.webui.IrcSaveForLaterCO.processFormRequest(IrcSaveForLaterCO.java:238)
         at oracle.apps.per.irc.offers.webui.OfferReviewCO.processFormRequest(OfferReviewCO.java:145)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:558)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:228)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3593)
         at oracle.apps.per.irc.offers.server.OffersAMImpl.generateOfferLetter(OffersAMImpl.java:1013)
         at oracle.apps.per.irc.offers.server.OffersAMImpl.submitOffer(OffersAMImpl.java:892)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:784)
         at oracle.apps.per.irc.offers.webui.IrcSaveForLaterCO.processFormRequest(IrcSaveForLaterCO.java:238)
         at oracle.apps.per.irc.offers.webui.OfferReviewCO.processFormRequest(OfferReviewCO.java:145)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:782)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:564)
         ... 53 more
    Please advise whats causing this error.
    Message was edited by:
    user622603
    Message was edited by:
    user622603

    Hello,
    I am also facing the same error. Flow is
    1. I create XML file using View object. XML file looks like
    <?xml version="1.0" encoding="UTF-8"?>
    <EmpVO>
    <EmpVORow>
    <EmployeeId>100</EmployeeId>
    <FirstName>Steven</FirstName>
    <LastName>King</LastName>
    <Email>SKING</Email>
    <PhoneNumber>515.123.4567</PhoneNumber>
    <HireDate>1987-06-17</HireDate>
    <JobId>AD_PRES</JobId>
    <Salary>24000</Salary>
    <DepartmentId>90</DepartmentId>
    </EmpVORow>
    </EmpVO>
    2. I have the following code to generate PDF report using XML Publisher:
    InputStream in = getXMLFile();
    FOProcessor processor = new FOProcessor();
    processor.setData(in);
    RTFProcessor rtfPro = new RTFProcessor("c:\\TemplateBuilder.rtf");
    rtfPro.setOutput("C:\\Dir D\\BIPub\\BiPub\\emp.xsl");
    rtfPro.process();
    processor.setTemplate("C:\\Dir D\\BIPub\\BiPub\\emp.xsl");
    processor.setOutput("C:\\Dir D\\BIPub\\BiPub\\emp.pdf");
    processor.setOutputFormat(FOProcessor.FORMAT_PDF);
    processor.generate();
    3.If I set processor.setData("c:\\emp.xml") then it works fine. but if I set like processor.setData(InputStream) I get the following error :
    [071309_110935627][oracle.apps.xdo.common.xml.XSLTWrapper][EXCEPTION] XSL error:
    <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
    Thanks you in advance.

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question.
    Problem for using oracle xml parser v2 for 8.1.7
    I have a sylesheet with
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">.
    It works fine if I refer this xsl file in xml file as follows:
    <?xml-stylesheet type="text/xsl" href="http://...../GN.xsl"?>.
    When I use this xsl in pl/sql package, I got
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    After I changed name space definition to
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> in xsl file, I got
    ORA-20100: Error occurred while processing: XSL-1019: Expected ']' instead of '$'.
    I am using xml parser v2 for 8.1.7
    Can anyone explain why it happens? What is the solution?
    Yi

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Element's dont have text content, they [b]contain text node children.
    So instead of trying to setNodeValue() on the element, construct a Text node and use the appendChild method on the element to append the text node as a child of the element.<HR></BLOCKQUOTE>
    Steve,
    We are also creating an XML DOM from java and are having trouble getting the tags created as we want. When we use XMLText it creates the tag as <tagName/>value rather than <tagName>value</tagName>. We want separate open and close tags. Any ideas?
    Lori

  • Document(object, node-set)

    Using xsql 1.0.4.1, I'm having some trouble using the document(object, node-set) function defined in the XSLT 1.0 recommendation, sect 12.1:
    http://www.w3.org/TR/xslt#function-document
    I have a tag in my source xml document which contains a reference to another xml document. I want to construct an XPath expression for this other xml document. The path to the other xml document is specified relative to the source document.
    I'm doing something like this:
    Source Document:
    <blah>
    <some-tag redirect="answer.xml" />
    </blah>XSL:
    <xsl:template match="blah/some-tag">
    <xsl:variable name="redir" select="document(@redirect, / )" />
    <xsl:apply-templates select="$redir//somepath" />
    </xsl:template>
    ...However, Oracle XSLT always comes back with the following error:
    XSL-1013: Error in expression 'document(@redirect, / )'.I also get this error if I try
    document(@redirect, document(''))which is given as an example on pg 446 of Steve's book (but not what I want, since it resolves relative to the stylesheet).
    document(@redirect)works fine, but again is not what I want.
    Am I doing something wrong?
    Brian

    This is Oracle Bug# 1722555, hopefully which will be fixed in the 9.0.1.0.0 release. Currently the two-argument version of the document() function is not recognized properly.

  • Howto force Oracle XML parser not to expand entity references?

    Hi,
    Is it possible to force Oracle XML parser (Java) not to expand entity references, so that they appear in DOM tree as separated nodes after parsing XML?
    Example:
    for following XML
    <tag>abc&auml;xyz</tag>
    I get:
    Element: "tag"
    |-Text: "abcdxyz"
    but I would like to get:
    Element: "tag"
    |-Text: "abc"
    |
    |-EntityReference: "auml"
    |
    |-Text: "xyz"
    I've already tried to use JAXP api (setExpandEntityReferences method in java.xml.parsers.DocumentBuilderFactory), but it doesn't seem to work.
    I'm using parser from XDK Java v9.2.0.2.0 Production.
    Thx,
    James

    This is requested code sample:
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setExpandEntityReferences(false);
    System.out.println("isExpandEntityReferences = "+dbf.isExpandEntityReferences());
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document d = db.parse("file://c:/test.xml");
    Element e = d.getDocumentElement();
    System.out.println("documentElement"+ e.getTagName() + " nodeType=" +e.getNodeType());
    System.out.println("ChildNodes:");
    NodeList nodeList = e.getChildNodes();
    for(int i=0; i<nodeList.getLength();i++) {
    System.out.println(i+" value=\""+nodeList.item(i).getNodeValue()+"\" nodeType="+nodeList.item(i).getNodeType());
    Content of test.xml:
    <!DOCTYPE test SYSTEM "test.dtd">
    <test>abc&auml;xyz</test>
    Content of test.dtd:
    <!ELEMENT test (#PCDATA)>
    <!ENTITY auml "&#x00E4;">
    When you run it you will get the following output:
    isExpandEntityReferences = true
    documentElementtest nodeType=1
    ChildNodes:
    0 value="abcdxyz" nodeType=3
    which means that EntityReference has been expanded.
    As you can see in the output the isExpandEntityReferences method returns "true", even though I set it to false in code!
    Does it mean that Oracle parser simple doesn't support this feature???
    Thx,
    James

  • Does Oracle XML Parser support double byte charset?

    Hi,
    Does Oracle XML Parser support double byte characters such as Korean or Chinese? If so, please tell me what version and how to construct xml/xsl files (...encoding="???")?
    Thanks for any help,
    Tuan

    Hi Raymond,
    Thank you for your help. It worked when I running in JDeveloper with your posted code. However, when I tried in my real application, it won't work.
    The problem is for localization purposes, my application using some texts display in browsers are saved in Unicode file. Later, application runs and depends on languages setting in browsers, with JavaServlet retrieves those texts and saves in formated xml StringBuffer. Then, using existed XSL Stylesheet file and OracleXMLParser to generate an output HTML.
    It has worked fine with English, France or others (single byte characters), but it can't
    for double bytes character such as Korean or Chinese. I also tried different charset in xml file.
    The following is one of returning errors:
    -- oracle.xml.parser.v2.XSLException: XSL-1004: Error while parsing input XML document (<Line 1, Column 552>: XML-0221: (Fatal Error) Invalid char in text.)
    I run this app in win2000/IIS with ServletExec3.0, JDK1.2.2 and OracleXMLParser v2.0.2.10
    Thank you for any helps,
    Tuan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Raymond Hayes Jr ([email protected]):
    Nothing fancy 'cause I'm half asleep but I used your xml/xsl and it seemed to work. No errors anyway. This is what I put together in JDeveloper 3.2
    package demo;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import oracle.xml.parser.v2.*;
    public class CuriosityKilledTheCat extends HttpServlet {
    * Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    * Service the request
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    try
    XSLStylesheet xsl = new XSLStylesheet( new URL ("file:///c:\\temp\\input.xsl") , null );
    XSLProcessor xp = new XSLProcessor();
    XMLDocument xd = new XMLDocument ();
    XMLDocumentFragment xf = new XMLDocumentFragment();
    xf = xp.processXSL ( xsl , new URL ( "file:///c:\\temp\\input.xml") , null );
    System.out.println ( "here" );
    xd.appendChild( xf );
    xd.print ( response.getOutputStream() );
    catch ( Exception e )
    System.out.println ( e.getMessage() );
    * Get Servlet information
    * @return java.lang.String
    public String getServletInfo() {
    return "demo.CuriosityKilledTheCat Information";
    }<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • How can my Spouse and I share the same Itunes Music on separate machines?

    My Spouse is on a PC desktop and I am on a Macbook Pro.  I have a large Itunes library on my Computer and he has a fair sized Library too.  We listen to a lot of the same music and each have Ipods. It's crazy to buy the same music twice.... is there

  • New Service and misinformation

    I called several weeks ago to establish Verizon triple play for the first time.  The representative assured me that I could seemlessly keep my landline number.  The tech came out and did a great job setting everything up.  However, my daughter couldn

  • Dynamice Prompt in Webi Report

    Hi, Is it possible to create dynamic prompt in Webi Report at Report Level. Regards,

  • S_PROJECTS auth object

    I am trying to create a role for IMG display access only I made ACTVT in all the Auth objects "03" or "display" but in S_PROJECTS auth object, in "activity" there is no "display" , how do I make ACTVT in S_PROJECTS object "display" Thanks Message was

  • Coverting Raw images to JPG

    I'm wondering if someone knows how to convert the raw images into jpg, but still keep the RAW images. I need to use the jpg images for iWeb so the website can load up a lot quicker. Thanks