SVG Example Source - XSQL

Anyone from Oracle that could post/provide the source to the XSQL demo at:
http://209.246.1.89/xsql/demo/svg/svgdemo.html
Very interested in the stylesheet being used.
Thanks!
- Rick
null

It's included in the demos that comes with the Oracle XSQL Pages publishing framework.
Download the XDK for Java, version 8.1.7.1 production or 9.0.0.0.0 beta, and look in the ./xdk/demo/java/xsql/svg
Chapter 16, "Extending XSQL and XSLT with Java", in my Building Oracle XML Applications book dissects and explains how to do a similar bar-chart example, but in a slightly more modular way than the original demo I wrote was coded.
Steve Muench
Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
Author, Building Oracle XML Applications

Similar Messages

  • XSQL SVG Example questions

    The SVG example provided with the XSQL servlet is excellent and illustrates at least 5 different (and very useful) techniques. Congrats to whoever came up with it.
    This one example shows SVG, named templates, use of xsl:variable, use of xsl_param, use of xsl:with-param, use of xsl:call-template and the apparent use of java classes from a jar file ala java server pages.
    The example also raises several questions:
    1. The example uses two namespace declarations I haven't seen before -
    xmlns:Color="http://www.oracle.com/XSL/Transform/java/java.awt.Color"
    and
    xmlns:Integer="http://www.oracle.com/XSL/Transform/java/java.lang.Integer"
    These appear to be allowing the use of Java classes in some jar file similar to the way Java server pages might do it.
    It this correct? Is this because these two classes were built-in to the XSQL servlet? What other classes can be used? All of them? From any jar file? Is more documentation available?
    2. What does the 'doctype=system="svg-19990812.dtd"' line do? There is no such DTD on my system but the demo works fine. There are references to DTDs with similar names in the FOP samples and in Adobe's samples but the name is slightly different.
    3. Why is the media-type image/svg? The SVG 1.0 spec dated 2 Nov 2000 in section 1.2 says the SVG mime type is "image/svg+xml".
    4. Why is there no namespace declaration for the svg tag or any of the svg related tags? Samples from other vendors seem to always have a declaration.
    Thanks again for a great piece of code.
    null

    Rick,
    You'll find a further-refined, and fully-explained version of the SVG example in Chapter 16 of Building Oracle XML Applications. This chapter covers the use of XSLT extension functions and illustrates how to use Java extension functions with the Oracle XSLT engine.
    [list=1]
    [*]The two namespaces you list are the way that the Oracle XSLT engine allows you to map extension functions in a namespace to methods of a Java class. This example illustrates using two different built-in classes of the JDK, java.awt.Color and java.lang.Integer. These are not specific to (or built-in in any way to the) XSQL processor or the XSLT engine, but are base classes in the JDK. You can use any Java extension functions in your XSLT stylesheets. The only requirement is that you (1) get the namespace correct to assign a namespace to the appropriate fully-qualified classname, and (2) make sure the classes you want to use are in the CLASSPATH.
    [*]The <xsl:output> attribute doctype-system provides a value to be used for the SYSTEM URI of the <!DOCTYPE in the transformed output. The particular value was required by the SVG draft at the time I built the demo. It must be handled by a special entity-resolver built into the SVG Viewer that you're using, which explains why not having on your system as a physical file doesn't stop the demo from working.
    [*]The media-type is image/svg instead of image/svg+xml because the SVG demo was built before the final draft of SVG went out. This value was apparently changed in one of the final drafts. It appears that the Adobe SVG viewer registers itself as the handler for both.
    [*]See http://www.w3.org/TR/SVG/struct.html#NewDocument. The spec appears to allow both unqualified use of <svg> as well as namespace-qualified <svg:svg> when SVG is embedded within another document.
    [list]

  • SAP E-Commerce 5.0 - Examples and Tutorials Guide  : examples source files

    Hi everyone,
    Where can i find examples source files of the "SAP E-Commerce 5.0 - Examples and Tutorials (Dev./Ext.) " Guide ?
    Thanks & Regards

    You can get the JAVA files source code from the <drive>:\usr\sap\<SID>\DVEBMGS00\j2ee\cluster\server1\apps\sap.com\crm~b2b directory, you should be able to find the src.zip file which contains the source code for the Action & Business object files.
    You can access the JSP files from the <drive>\usr\sap\CD5\DVEBMGS00\j2ee\cluster\server1\apps\sap.com\crm~b2b\servlet_jsp\b2b\root
    OR
    You can import through NWDI into your NWDS.
    Let me know if you need further details.
    Thanks
    Srini Sandaka

  • How Can I get personal java example source?

    i want to know how to program with p-java.
    How Can I get personal java example source?
    and where can i get them?

    pjava is pretty much the same as regular java 1.1.x, so you could just look at any java examples. www.javasoft.com has a learning center with tutorials if that's what you're looking for

  • Having problem in getting JaveEE tutorial example source

    I have tried to follow the link below to get example source, unfortunately it doesnt work, can someone show me how to get or send it to my email.
    http://docs.oracle.com/javaee/6/tutorial/doc/gexaj.html#giqtt
    Thanks~

    Please provide your platform OS and version, jdk version and the version of any tools you are using (netbeans, glassfish, etc).
    Also, what happens when you follow the instructions titled' To Obtain the Tutorial Component Using the Update Tool' at the link you provided?
    Java EE 6 Tutorial Component
    The tutorial example source is contained in the tutorial component. To obtain the tutorial component, use the Update Tool.
    To Obtain the Tutorial Component Using the Update Tool
    1.Start the Update Tool.
    From the command line, type the command updatetool.
    On a Windows system, from the Start menu, choose All Programs, then chooseJava EE 6 SDK, then choose Start Update Tool.
    2.Expand the GlassFish Server Open Source Edition node.
    3.Select the Available Add-ons node.
    4.From the list, select the Java EE 6 Tutorial check box.
    5.Click Install.
    6.Accept the license agreement.
    After installation, the Java EE 6 Tutorial appears in the list of installed components. The tool is installed in the as-install/docs/javaee-tutorial directory. This directory contains two subdirectories: docs and examples. The examples directory contains subdirectories for each of the technologies discussed in the tutorial.

  • Can't find example source for Secure Thin JDBC Connection Sample

    I've found information about an aspect of JDBC usage that I desperately need, but can't find the example source associated with it. The page is:
    http://www.oracle.com/technology/sample_code/deploy/security/files/secure_thin_driver/readme.html
    It would be useful to have the link to the example source JAR directly on the page.
    Any assistance you could provide would be greatly appreciated.
    Regards,
    Peter

    Hi Peter,
    the page you post has a link to jar file at http://www.oracle.com/technology/sample_code/deploy/security/files/secure_thin_driver/secure_thin_driver.jar
    this jar has many example source codes. Just unzip it... or unjar it typing jar xvf SecureThinDriver.jar

  • SVG example

    Hi
    anyone has any example of html / irpt code how I could view the SVG object.
    1. I have SVG dynamic object
    2. I have a simple transaction for it
    3. How do I see it in my webpage??
    thanks.

    Many thanks
    I want to do it different way, I want to call the Runner service directly in the html. I have created the transaction and save the png file.
    http://chsemsapd201:51000/XMII/Runner?Transaction=Demo_Graphic/test&Outputparameter=OutputImage&Content-type=image/png" name="test
    1. The transaction is being called and the image was created but I do not see my image in the web. Does above
    2. Does anyone know where in the help file I could find the usage of Runner ???? I search it but could not find it.
    I also tried this way
    1. Created a BLS to save new immage - succesfull (isee the file)
    2. Created a Xcute for this BLS - succssfull
    3. in HTML 
         <APPLET NAME="test" WIDTH="1" HEIGHT="1" CODE="iCommand" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
              <PARAM NAME="QueryTemplate" VALUE="Demo_Graphic/xcute">
         </APPLET>
         <img src="/XMII/CM/Demo_Graphic/test.png" >
    4. I see the picture but it does not update the status. (it was old picture). But If I see the picture directly in Workbench it has the new value
    any idea?
    Edited by: Seng Kiang Hoe on Sep 24, 2010 11:03 AM

  • SVG in ADF

    Hi folks,
    I want to embed some interactive SVG graphics in my ADF application.
    So when a user clicks on an object in SVG I have somehow to propagate the event to the ADF/JSF domain to navigate the view objects.
    I read some papers from Frank regarding Applet/ADF interaction, tried to do something similar with SVG-didn't work yet.
    Anyone has experience with SVG?
    Thanks,
    Kresimir

    As an alternative you might consider using xsql:
    XSQL SVG Example questions
    SVG Example Source - XSQL
    in cooperation with ADF.
    NA
    http://nickaiva.blogspot.com

  • XSQL Paging Example Questions - XMLBOOK

    Hi all,
    I run example NewsCategorySimple.xsql?p=2&id=1 from XMLBOOK (S.Muench pag. 650), but it doesn't show stateless paging. shows data, but not: Page 1 of 4 Next - Total 19.
    I run over WNT4/Sp5, Ora816/R2, WEBDB/IAS, XSQL Utility (Examples is good), I don't have jdev 3.1 (is necesary?), my evironment variable CLASSPATH is add c:\xmlbook\samples\ch17\classes;....
    Examples http://localhost/orxmlapp/samples/ch17/store.html is good
    I think what configure Jserv (jserv.conf or jserv.properties) is the problem. can anybody help me
    Thanks..

    thanks, Steve
    now is ok, but i have an other problem, in the URL: http://ias/orxmlapp/Examples/ch17/
    I see the main page (index.html) and the message:
    "No stocks selected" and "You have not selected any news categories... Preferences for roy-ayala". (XMLBOOK pag. 684, Fig. 17-23)
    I added: wrapper.classpath=C:\xmlbook\samples\ch17\classes
    wrapper.classpath=C:\xmlbook\samples\ch06\classes
    in jserv.properties.
    and run all script in ch06 / ch17
    what do you think
    [email protected]
    null

  • Xsql pages not displaying properly

    Hi,
    I have downloaded & installed the XSQL Servlet as mentioned in the document. I have apache web server with apache jserv. Also I have the access DB & for the example (helloworld.xsql) below am using "Student" data source name & "Contact" table name. I get a blank page when I view the example on IE 5.0. I have given below the XSQLConfig.xml, helloworld.xsql & the html files(when viewed on the browser). Can anybody tell me what the problem could be?
    Thanks in advance,
    -rani
    XSQLConfig.xml:
    <connection name="demo">
    <dburl>jdbc:odbc://prog61.planet.net:Student
    </dburl>
    <driver>sun.jdbc.odbc.JdbcOdbcDriver</driver>
    </connection>
    helloworld.xsql:
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    SELECT 'Hello World' AS greeting FROM Contact
    </xsql:query>
    html file:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
    <BODY><XMP></XMP></BODY></HTML>

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by H.Ozawa:
    Try executing it from the commandline.
    Java oracle.xml.xsql.XSQLCommandLine helloworld.xsql<HR></BLOCKQUOTE>
    Hi,
    I have the exact problem. I can run it from the command line but from the browser i get blank page. Any ideas what i should do next!!
    thanks
    Syed
    null

  • Dynamic WHERE clause in .xsql pages

    I'm just getting started with XSQL and would like to know if you have more example source code available, or if anyone else knows of a good source.
    I'm trying to build a simple search page which accepts values that would normally form the where clause in an SQL statement and send them to an XSQL page which returns the results. The main problem is that I don't know how to specify the column names dynamically.
    Please let me know if you've come across this before, I'm sure this is not an unusual problem.
    P.S. When's the XML book coming out?

    See the "adhoc query" example that comes with the XSQL Servlet in the ./demo/adhocsql directory.
    Your query can be:
    <xsql:query columns="col1,col10" where="1=1">
    SELECT {@columns}
    FROM table
    WHERE {@where}
    </xsql:query>
    for example, where the columns and where attribute provide default values for the columns and where parameters. If the user passes in either or both of the parameters in the URL, they override the defaults.

  • XSQL/XSL deployment on Tomcat question

    I have been running my XSQL pages within the default Oracle/Apache/JServ environment. This is where I 'install' my source xsql/xsl files in the htdocs directory of Apache.
    I have now recently upgraded my environment so that it now consists of Tomcat 4.x and Apache.
    My question is, what deployment strategies are available to me? For example, do I have package my xsql/xsl files into a .war package or can I simply move my xsql/xsl source files into a certain directory very similar to how I use to do before.
    Any help greatly appreciated.

    I deployed both on Apache (JSP,XSQL) and I have another PC with Apache as Proxy.
    It works fine. I dont know the performance when many users try to connect.

  • XSQL/XML/XSL Portlet

    How can I use XSQL in Oracle Portal, for different display types? All examples use the old fashioned JSPs or Servlets. We are willing to use XML/XSL technology, but we do not know how to satisfy the requirements for different display types while using these technologies. Where can we find examples utilizing XSQL/XML/XSL technologies? Or does Oracle keep these technologies apart from the portal technology?

    I have already written application in XSQL and XSLT.I want to convert it into oracle portlet.I tried to use URL portlet.Using URL portlet The links are converted to javascript:submitURL2166(' http://servername/root/filename.xsql') and working fine but there are few javascripts call also on the page which are getting converted like this :
    "javascript:submitURL2166('javascript:popupwindow2("filename.xsql",123,0);')"
    and when I click on those links I get following ERROR trace in logs
    ERROR: Failed to handle HTTP Request
    oracle.portal.provider.v2.security.AccessControlException: unknown protocol: javascript
    at oracle.portal.utils.v2.ContainerException.fillInStackTrace(Unknown Source)
    at java.lang.Throwable.<init>(Throwable.java:195)
    at java.lang.Exception.<init>(Exception.java:41)
    at oracle.portal.utils.v2.ContainerException.<init>(Unknown Source)
    at oracle.portal.provider.v2.PortletException.<init>(Unknown Source)
    at oracle.portal.provider.v2.security.AccessControlException .<init>(Unknown Source)
    at oracle.portal.provider.v2.render.http.URLRenderer.renderBody(Unknown Source)
    at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
    at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp (Unknown Source)
    at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke (Method.java:324)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.2.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:782)
    at com.evermind[Oracle Application Server Containers for J2EE 10g ( 9.0.4.2.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.2.0)].server.http.HttpRequestHandler.processRequest( HttpRequestHandler.java:794)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.2.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind[Oracle Application Server Containers for J2EE 10g ( 9.0.4.2.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind[Oracle Application Server Containers for J2E
    I want to know how these javascripts call can be handled while using url portlets or there is any other way to convert xsql and xslt application in oracle portlet .
    I will have to use
    <inlineRendering>true</inlineRendering>
    in provider.xml because I want to get contents in same portlet.
    Below is my provider.xml
    <provider class="oracle.portal.provider.v2.http.URLProviderDefinition">
    <providerInstanceClass>oracle.portal.provider.v2.http.URLProviderInstance</providerInstanceClass>
       <session>true</session>
       <passAllUrlParams>true</passAllUrlParams>
        <portlet class="oracle.portal.provider.v2.http.URLPortletDefinition">
          <id>2</id>
          <name>XsqlPortletURL</name>
          <title>XsqlPortletURL</title>
          <description>Portlet Description</description>
          <timeout>100</timeout>
          <showEditToPublic>false</showEditToPublic>
          <hasAbout>false</hasAbout>
          <showEdit>false</showEdit>
          <hasHelp>false</hasHelp>
          <showEditDefault>false</showEditDefault>
          <showDetails>false</showDetails>
          <renderer class="oracle.portal.provider.v2.render.RenderManager">
             <showPage class="oracle.portal.provider.v2.render.http.URLRenderer">
             <contentType>text/html</contentType>
             <pageUrl>http://servername/Root/file_name.xsql?cus_id=306826</pageUrl>
             <filter class="oracle.portal.provider.v2.render.HtmlFilter ">
              <inlineRendering>true</inlineRendering>
             <headerTrimTag><body</headerTrimTag>
             <footerTrimTag>/BODY></footerTrimTag>
             </filter>
             </showPage>
           </renderer>
       </portlet>
    </provider>
    Any help will be greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • [XSQL 1000]Debugging for xsql:insert

    Dear Colleagues,
    Looks to me as the awareness upon the usefulness of XSQL servlet for posting FORM submissions has raised recently, and thus the need for even more documentation and examples as currently provided for the specific task.
    I have successfully used the OracleXMLSave class for posting in the database of XML data, however I had difficulties in achieving the same for an FORM post.
    I have consulted the following sources:
    - release notes for version 1.0.0.0(S.Muench)
    - example code (xsql/demo/document)(S.Muench)
    - Oracle XML handbook (ISBN: 007212489X)
    - XML forum in technet discussion groups.
    Nevertheless, I could not find explicitly reported on how to simply see what the internal format of the XML was for a specific form submission that I was developing.
    The workaround I made for the topic is to include in the xsql file which does the posting, an href which references an xsl which then should extract the content as the spec says it is formatted and then returns it ot the browser for visual inspection.
    Nevertheless, would there be a better solution (to see what the Servlet has generated before submitting for insertion) it would be great to know.
    Looking forward your comments
    and very many compliments to Oracle and to Steve Muench (and colleagues) for the really useful and powerful system they have developed.
    Regards
    Sincerely
    Luca

    Dear Colleagues,
    following the instructions from Steve as in his posting of January 10th in support to the topic "Generating XML from HTML form", I have just written an action handler that "does the job" of showing the XML that the servlet has internally generated (or at least I believe so) before doing the internal OracleXMLSave call.
    I attach hereafter the code as well as what I have done to get it to work and will appreciate feedback .
    OS Linux (Suse 6.3)
    HTTPD Apache 1.3.9 (off-the shelf from Suse 6.3) made on Nov 13,1999
    SERVLET Tomcat 3.1
    JAVA jdk1.2.2
    ORACLE 8.1.6 (also called 8iR2)
    1) save the appended document in "GetPostedDocument.java"
    2) compile the java code
    I have done this with the jdk1.2.2 on Linux, installed under /usr/lib/jdk1.2.2, and after coyping all the jar distributed in the xsql servlet 1.0.0.0 to the local compiling directory
    /usr/lib/jdk1.2.2/bin/javac -classpath "/usr/lib/jdk1.2.2/lib/classes.zip:xmlparserv2.jar:.:oraclexsql.jar:oraclexmlsql.jar:servlet.jar" GetPostedDocument.java
    3) copied GetPostedDocument.class to the tomcat lib location, and made sure it had the right permissions, namely to /usr/local/httpd/jakarta-tomcat/lib as a+rx
    4) stopped and started the httpd + servlet
    In my setting (that is the default I believe for tomcat 3.1), any file placed in the tomcat's lib directory is automatically loaded on startup in the CLASSPATH
    rcapache stop
    rcapache start
    5) added to the xsql page handling the post,
    the following xsql action handler
    <xsql:action handler="GetPostedDocument"/>
    6) reloaded the calling xsql page
    What happens now is that upon submission I get back XML code which has been submitted ... exactely what I wanted. Perhaps is not what everybody needs, but it is already for me a starting step to proceed with debugging of my XSL to understand why the feeding into Oracle did not work (clearly the fault of the reformatting XSL which did not generate OracleXMLSave "canonical format").
    Thankyou and Compliments, Steve, for such a beatiful package ! It is REALLY USEFUL.
    Luca
    -------------------GetPostedDocument.java----
    import oracle.xml.xsql.*;
    import org.w3c.dom.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.sql.*;
    import java.util.*;
    import java.net.URL;
    import java.io.PrintWriter;
    public class GetPostedDocument extends XSQLActionHandlerImpl {
    public void handleAction (Node rootNode) throws SQLException {
    try {
    org.w3c.dom.Document converted= ((XSQLServletPageRequest)getPageRequest()).ge
    tPostedDocument();
    URL pageURL = new URL("file:///root/bingo.xsql");
    XSQLRequest req= new XSQLRequest(pageURL);
    req.setPostedDocument(converted);
    req.process(new PrintWriter(System.out),new PrintWriter(System.err));
    catch (Exception exs) {
    this.reportError(rootNode,exs.getMessage());
    exs.printStackTrace();
    public void init(XSQLPageRequest xsqlreq, Element element) {
    super.init(xsqlreq,element);
    }

  • Data Federator- Merging two source tables

    Hi,
    I have two identically structured source tables and i need to merge them together to a target table.
    For Example:-
    Source Table1=  { (A,10), (B,11), (C,12) }
    +
    Source Table2=  { (D,15), (E,16), (F,17) }
    Target Table=  { (A,10), (B,11), (C,12), (D,15), (E,16), (F,17)}
    Can you please help on how achieve this in data federator.
    Thanks in advance.

    For Merge - Create a target table with your desired end columns A - E.  Create 2 seperate mappings and map the respective columnns from each source.
    For Join - Create a target table with your desired end columns A - E.  Create 1 mappings and map the respective columnns from each source and also creating the necessary relationship between tables.

Maybe you are looking for