Oracle XDK - C language -

Help!
I would like to use the oracle xdk for xsl processing, and validation.
But when I try to either process or validate this document,
I get this error:
In line 436 of ../dtds/ead.dtd:
In line 644 of eadbase.ent [parameter entity eadbase]:
LPX-00231: invalid character 37 ('%') found in a NAME or NMTOKEN
I am processing a document that uses the EAD dtd.
(see http://www.loc.gov/ead/).
so the ead dtd is the standard ead dtd.
The fragment in question is an attlist definition:
635 <!--************************************************************-->
636 <!-- SUBTITLE -->
637
638 <!ELEMENT subtitle (#PCDATA | %m.phrase.bare; | abbr |
639 date | expan | num)* >
640
641 <!ATTLIST subtitle
642 %a.common;
643 encodinganalog CDATA #IMPLIED >
644
but both %m.phrase.bare; and %a.common were defined and used before, with
no problem in other element, like for instance titleproper which comes immediately
before subtitle (
621 <!ELEMENT titleproper (#PCDATA | %m.phrase.bare; | abbr |
622 date | expan | num)* >
623
624 <!ATTLIST titleproper
625 %a.common;
626 extent (all | part |
627 unknown-extent) #IMPLIED
628 pubstatus (pub | unpub |
629 unknown-pub) #IMPLIED
630 render (%av.render;) #IMPLIED
631 type CDATA #IMPLIED
632 encodinganalog CDATA #IMPLIED >
Can anyone give me a hint why this would fail?
This is the definition of parameter entity a.common:
385 <!--************************************************************-->
386 <!-- COMMON ATTRIBUTES -->
387 <!--************************************************************-->
388 <!-- Attributes used on most ead elements -->
389
390 <!ENTITY % a.common
391 'id ID #IMPLIED
392 altrender CDATA #IMPLIED
393 audience (external | internal) #IMPLIED' >
394
395
Thanks in advance for any help, or clues to deficiencies in the xdk parser.
Rick

You can use the DOM2 adoptNode() and ImportNode().

Similar Messages

  • ANN : New Oracle XDK 10g Sample Application

    Hello,
    Check out this new Oracle XDK 10g Sample Application at http://otn.oracle.com/sample_code/tech/xml/index.html that demonstrates the Unicode Support of XDK using the scenario of a Real Estate Portal. This sample application also discusses the XSLT Extensions and illustrates the following features:
    - Encoding XML documents in different character sets ( UTF-8, UTF-16, ISO-8859-1 )
    - Sending and receiving XML documents over HTTP along with character encoding information
    - Using single style-sheet for multilingual HTML page generation with the help of XSLT extension function facility provided by Oracle XDK 10g
    - Storing XML documents in XMLType column of Oracle database along with appropriate encoding
    - Generating XML documents on using Oracle XDK 10g DOM API's along with encoding attribute
    The sample application supports two languages; English and French.
    Regards,
    OTN Team

    I have got the following error when i run the WebServicesAssembler.jar
    D:\Oracle\Oc4j\j2ee\home>java -jar d:/oracle/oc4j/webservices/lib/WebServicesAss
    embler.jar -config etc/config.xml
    Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e path specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:105)
    at java.util.jar.JarFile.<init>(JarFile.java:110)
    at java.util.jar.JarFile.<init>(JarFile.java:52)
    D:\Oracle\Oc4j\j2ee\home>java -jar WebServicesAssembler.jar -config etc/config.x
    ml
    Exception in thread "main" java.lang.InstantiationException: Unknown deployment
    tag in JMS Web Service Example: <option>
    at com.evermind.xml.XMLConfig.parseDeploymentMainNode(XMLConfig.java:293
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAsse
    mblerConfig.java:68)
    at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:268)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:147)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:88)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.init(WsAssemblerConfig.java:30
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:17)

  • Oracle XDK and FOP 0.20.4 not working...

    Hi all,
    We have created a sample application with Apache FOP to obtain a PDF document.
    But, although it works fine with XERCES and XALAN, it doesn4t work with Oracle XDK, why?
    May it be a bug in Oracle XDK? Or do Apache projects implements something non-standard that is used? Or is Oracle who does not implement all the specification?
    This is the sample: (in perfect spanish ;-) )
    You only should change the file locations and the System.setParameters and libraries to use Apache or Oracle XDK.
    Can anybody help us?
    Thanks in advance
    Jose R.
    TESTFO.java:
    package es.aranzadi.fo;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import javax.xml.transform.sax.*;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.SAXParser;
    import javax.xml.transform.sax.SAXSource;
    import java.io.*;
    import org.xml.sax.InputSource;
    import org.xml.sax.EntityResolver;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    import org.apache.fop.apps.Driver;
    import org.apache.fop.layout.Page;
    import org.apache.fop.apps.Version;
    import org.apache.fop.apps.XSLTInputHandler;
    import org.apache.fop.messaging.MessageHandler;
    import org.apache.fop.render.awt.AWTRenderer ;
    import java.net.URL;
    public class TestFo
    public TestFo()
    public static void main (String [] args) throws Exception
    TestFo tf= new TestFo();
    tf.go();
    public void go() throws Exception
    // THIS IS FOR ORACLE XDK
    System.setProperty("javax.xml.transform.TransformerFactory","oracle.xml.jaxp.JXSAXTransformerFactory");
    System.setProperty("javax.xml.parsers.SAXParserFactory","oracle.xml.jaxp.JXSAXParserFactory");
    System.setProperty("org.xml.sax.parser","oracle.xml.parser.v2.SAXParser");
    // THIS IS FOR APACHE XALAN AND XERCES
    //System.setProperty("javax.xml.transform.TransformerFactory","org.apache.xalan.processor.TransformerFactoryImpl");
    //System.setProperty("javax.xml.parsers.SAXParserFactory","org.apache.xerces.jaxp.SAXParserFactoryImpl");
    Driver driver = new Driver();
    driver.setOutputStream(getResultOutputStream());
    driver.setRenderer(Driver.RENDER_PDF);
    Transformer transformer= (TransformerFactory.newInstance()).newTransformer(getXSLSource());
    transformer.transform(getXMLSource(), new SAXResult(driver.getContentHandler()));
    public StreamSource getXSLSource() throws Exception
    return new StreamSource(new File("YOUR_PATH\\myPrueba.xsl"));
    public SAXSource getXMLSource() throws Exception
    File fichero=new File("YOUR_PATH\\myPrueba.xml");
    InputSource is=new InputSource(new FileReader(fichero));
    is.setSystemId("file://YOUR_PATH\\\\myPrueba.xml");
    is.setEncoding("iso-8859-1");
    return new SAXSource(is);
    public OutputStream getResultOutputStream() throws Exception
    File fichero=new File("YOUR_PATH\\pruebafo.pdf");
    return new FileOutputStream(fichero);
    myPrueba.xsl
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions">
    <xsl:template match="/">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block>
    <xsl:apply-templates select="prueba"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>
    miPrueba.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <prueba>
    Hola mundo
    </prueba>

    Sorry, this is the exception:
    java.lang.NullPointerException
    java.lang.NullPointerException
         at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:720)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:304)
         at oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:137)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:263)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:146)
         at oracle.xml.jaxp.JXXMLFilter.parse(JXXMLFilter.java:91)
         at org.apache.fop.apps.Driver.render(Driver.java:481)
         at es.aranzadi.documentos.pruebaFOP.metodoB(pruebaFOP.java:120)
         at es.aranzadi.documentos.pruebaFOP.main(pruebaFOP.java:41)

  • Oracle XDK Java 9.2.0.2.0 installation problem

    Hi,
    I downloaded xdk_java_9_2_0_2_0 and I did change the default connection with my username and password in XSQLConfig.xml file. When I tried to execute XSQL.bat file under bin folder I am getting the error in dos window as follows
    Bad command or file name
    Oracle XDK Java 9.2.0.2.0 Production
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 1, char 1
    Start of root element expected.
    Please suggest me what I need to do...

    This means your XSQL page is not well-formed XML document. Please check the syntax in your .xsql file.

  • Oracle XDK Java removing security vulnerabilities

    Hi All,
    I am looking for removing security vulnerabilities that may be associated with XML parsers.
    I am looking which version of Oracle XDK Java has removed security vulnerabilities associated with XML Parsing.
    Also what is the latest version Oracle XDK Java is present in market.
    Also is new version are backward compatible. Do we need to see is any change in API level occurs.
    Currently we are using Oracle XDK Java 10.2.0.2.
    Just a description of security vulnerabilities that may be associated with XML parsers are
    "The vulnerabilities are related to the parsing of XML elements with unexpected byte values and recursive parentheses, which cause the program to access memory out of bounds, or to loop indefinitely. The effects of the vulnerabilities include denial of service and potentially code execution. The vulnerabilities can be exploited by enticing a user to open a specially modified file, or by submitting it to a server that handles XML content.:
    Regards
    Atul Parti

    Which JVM is the security tool complaining about (what is the directory path, for example)?
    My guess is that the tool is complaining about the older JVM that Oracle installs in order to run the Oracle Universal Installer and the other Java-based installation tools.  If that's the case, those JVMs do not generally represent a security issue because they are not running anything on a day-to-day basis.  They're only used by things like the OUI which only get invoked when someone wants to do something like install new software.  Ideally, you'd be able to have the conversation with the security folks and explain that those older JVMs exist only for the limited purpose of running the OUI and the other configuration tools. 
    If the security folks want you to upgrade the Java version (as opposed to just installing patches to the older JVMs), that has a decent probability of breaking the various installation and configuration tools.  That may not have much impact on a day-to-day basis but may make administration tasks in the future more challenging. 
    Justin

  • Oracle XDK License

    Hi,
    If I have the runtime / production licese for Oracle Database 10g, then do I automatically get a license for Oracle XDK, 10g. Or do I have to pay more to get XDK license.
    Cheers,
    Gurpreet.

    You pay extra for what's shown below. XML database comes in addition to the basic license.
    Oracle Enterprise Edition Options
    These options for Oracle Database Enterprise Edition extend the power of the Oracle database in secure data management, transaction processing and data warehousing.
    Real Application Clusters
    Partitioning
    OLAP
    Data Mining
    Spatial
    Advanced Security
    Label Security           
    Enterprise Managers
    Diagnostics Pack      
    Configuration Management Pack
    Tuning Pack
    Change Management Pack

  • How to Dowload Oracle XDK

    PLZ, any one can help me out. From where can i download ORacle XDK. Iam using 9iJDEVELOPER and Oracle 8i as databse.
    regards
    Rajkumar Patel

    Hi Rajkumar,
    You can download XDK from the following link:
    http://otn.oracle.com/tech/xml/content.html
    Note: The XDK download is available under the "Downloads" section in the right frame on the above link. You can download XDK for Java or C or C++ or PL/SQL as required by you.
    Thanks
    Shefali

  • Oracle XDK for C

    I working whith Oracle XDK library. I want to copy document's fragment to another document.
    How do I can make it ?

    You can use the DOM2 adoptNode() and ImportNode().

  • Reports registraion in oracle Apps 11i - Language problem

    Hello,
    I have registered a parametric report in Oracle Applications 11i. It completed successfully but output is in French language not US. What to do with to resolve this issue? I have tried its output with Text type format but problem with this format is logo & formatting of report disappears. I want to report in PDF Format and US Language, Can anyone help plz!
    Thanks,
    Regards!

    Thanks for the reply.
    I copied all the files (gnumake.exe, cc.exe, link.exe, which.exe) to windows\system32 folder. Still getting the same problem.
    I am aable to run the same commands from cmd prompt and through cygwin but when rapidinstall runs they are not working.
    G:\>which cmd
    /cygdrive/c/WINDOWS/system32/cmd
    G:\>which gnumake
    /cygdrive/c/WINDOWS/system32/gnumake
    G:\>which cc
    /cygdrive/c/WINDOWS/system32/cc
    G:\>which link
    /cygdrive/c/WINDOWS/system32/link

  • VERY Basic Questions about Oracle eBusiness - what "languages" are used?

    Please forgive the very basic nature of this post- (I have been in systems (IT) for over 20 years, so I do have lots of systems experience, but no exposure to this particular software.)
    So here are the basic questions - I assume that much of the data base logic is written in PL/SQL, but what other tools / languages are the applications written in?
    (Oracle Forms, Oracle Reports, Java, C, something else?)
    With over 20 years and experience with a number of other packages, I can learn a great deal about an application by 1. Looking at the DB structures (charts), 2. looking into DB code (Packages, triggers, procedure, functions) and 3. Seeing the screen shots.
    None of my customers have had Oracle eBusiness - that have had home grown applications or other COTS/packages.
    can anyone suggest a place where an independent person can inexpensively get some exposure?
    My sincere thanks for any answers/suggestions. 

    Hi,
    Please refer to the following links for details about the different database releases and Oracle tools.
    Oracle Timeline
    http://www.oracle.com/timeline/index.html
    http://www.oracle.com/oramag/profit/07-may/p27anniv_timeline.pdf
    Oracle Corporation - Oracle FAQ
    http://www.orafaq.com/wiki/Oracle_Corporation
    Oracle E-Business Suite consists of Application/Database/Client tiers, you can find more details in [Oracle Applications Concepts|http://www.oracle.com/technology/documentation/applications.html] manual.
    Oracle Forms
    http://en.wikipedia.org/wiki/Oracle_Forms
    Regards,
    Hussein

  • Oracle projects-Arabic language

    Hi All,
    I would like to ask about arabic language in oracle projects, users would like to apply oracle projects in Arabic language, but there are several problems appeared during CRP2, and the company that will apply modules said that Oracle doesn't support Arabic language for Oracle projects, what is your opinion? Can I know what is the solution??
    Thank you very much,
    Tasneem

    Please mention the details of the application release, database version and OS.
    Does your application/database characterset support Arabic?
    I would like to ask about arabic language in oracle projects, users would like to apply oracle projects in Arabic language, but there are several problems appeared during CRP2What kind of problems?
    and the company that will apply modules said that Oracle doesn't support Arabic language for Oracle projects, what is your opinion? Can I know what is the solution??I believe Oracle Projects supports NLS (just like other Oracle Apps modules) -- You could log a SR to confirm this with Oracle Support.
    Thanks,
    Hussein

  • Oracle Portal - charts language problem

    I'm using Polish Oracle Portal 3.0 with database 8.1.7. OS is w2k Professional (Polish version). I can't force it to display Polish letters in charts (as subscribes), but !! anywhere else I can write anything I want using Polish language and its O.K. Now I don't know if it's a bug or my fault...

    Type mistake in above response - Please read it as follows -
    1.What kind of text you are displaying as subscribes ( data fetched as result of SQL query or some other text)?
    2.Where are you displaying this text as subscribes in the chart?
    null

  • Oracle XDK License Question

    We have a JMS subscriber application written in C++. We’d like to add XSLT processor to it. This application will use libraries in $ORACLE_HOME/lib particularly libxml10.a and other related libraries to apply XSLT onto XML messages subscribed from JMS queues. This application does not connect to any Oracle database. Is it a problem to use these libraries for this application, as far as licensing is concerned? We many CPUs of Oracle DB EE.
    Thanks.

    If you have a look in the Licencing book you will see that XML / XDK is not mentioned. Whatever is not explicitly excluded is included, so you do not need to purchase addition licence to use the XDK.
    Cheers, APC

  • Oracle XDK for linux?

    Is there any XDK for linux? The only two platforms of XDK are UNIX and NT. BTW, XDK is not included in Oracle 8i, is it? we have to download from ORACLE website and install it after the Oracle 8i is installed? Thanks.
    YuTung

    The Java and PL/SQL XDKs are the same for UNIX on Solaris and Linux. We have separate Linux ports for C and C++. The XDKs are not part of the current 8i release (8.1.6) but have been announced as part of Release 3 (8.1.7).
    Oracle XML Team
    null

  • Oracle XDK 10g for PL/SQL

    Hello,
    Is XDK for PL/SQL exists in current version of XDK 10g?
    What are the plans of Oracle about PL/SQL support for XML?
    Thank you.
    Alexey

    XDK for PL/SQL is not supported for XDK 10g.
    XDK for PL/SQL is supported for XDK 9i.

Maybe you are looking for

  • Mail quits immediately after I open it...what should I do?

    Ok I accidentally posted this in a tiger forum...oops. Anyways, I have my Mail set up as my inbox for my college email address. At first, I didn't encounter any problems with this (for the first 2 months or so), but within the past week I have begun

  • Report Builde Error

    when i am calling stored procedure which is gathering statistics of two tables inside BEFORE PARAMETR FORM SQL> CREATE OR REPLACE PROCEDURE gather_statistics AS   2  BEGIN   3   dbms_stats.gather_table_stats('PKTCL','TMP_VW_INS_OUTSTANDING',cascade=>

  • How do I change the language back to english as it is running in chinese

    How do I change the language back to English as it is running in Chinese?

  • HELP!! Can anyone tell me what causes this problem? UPDATED!!

    I will paste a link below to a screen grab I took of my desktop. I've never seen this before. Could you please tell me what this could be? The best way I could describe it is to describe it as warping effect on various windows. This has occurred when

  • IPhoto Trash Problem

    I have iPhoto 11. v 9.1.5 (615) I have just split off a large section of my Library into another Library with iPhoto Library Manager (great prog bye the way). I now have 86,715 photos to delete from my original Library but when I "Empty iPhoto Trash"