Chaining stylesheets with XSQL!

I am attemping to post a form to an XSQL page and insert the parameters into an Oracle database. The easiest way to do the tranformation is to apply a stylesheet to the XML generated automatically by the XSQL servelet and then apply another stylesheet to the result of the first transformation. I guess my real question is how can I apply a series of XSLT stylesheets in succession with each one operating on the results of the previous transformation?
Thank you in advance for your time,
Jason Long

Dear Steve,
My problem is that the <OPTIONS>...</OPTIONS> is not present in the orginal post. I am having a problem selecting this node in order to apply ext:xmlMarkup. The following is the exact code I am trying to use:
This is the stylesheet that I am applying to the posted request. This works just fine.
addItem.xsl
<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ext="http://www.oracle.com/XSL/Transform/java/MarkupExtensions"
exclude-result-prefixes="ext">
<xsl:output method="xml" indent="no" />
<!-- Root template -->
<xsl:variable name="sku" select="//sku" />
<xsl:template match="/">
<ROWSET>
<ROW>
<xsl:apply-templates select="//sku | //quantity | //specialRequests | //customerID"/>
<OPTIONS>
<xsl:apply-templates select="//dropDown | //checkbox | //addOn"/>
</OPTIONS>
</ROW>
</ROWSET>
</xsl:template>
<xsl:template match="dropDown">
<dropdown id="{substring-before(text(),'|')}" value="{substring-after(text(),'|')}" />
</xsl:template>
<xsl:template match="OPTIONS">
<OPTIONS>
<xsl:value-of select="ext:xmlMarkup(*)" />
</OPTIONS>
</xsl:template>
<xsl:template match="addOn">
<addOn sku="{text()}" />
</xsl:template>
<xsl:template match="checkbox">
<checkbox value="{text()}" />
</xsl:template>
<xsl:template match="dropDown">
<dropdown id="{substring-before(text(),'|')}" value="{substring-after(text(),'|')}" />
</xsl:template>
<xsl:template match="quantity">
<QUANTITY><xsl:value-of select="//quantity" /></QUANTITY>
</xsl:template>
<xsl:template match="specialRequests">
<SPECIAL_REQUESTS><xsl:copy-of select="//specialRequests/text()" /></SPECIAL_REQUESTS>
</xsl:template>
<xsl:template match="customerID">
<CUSTOMER_ID><xsl:value-of select="//customerID" /></CUSTOMER_ID>
</xsl:template>
<xsl:template match="sku">
<SKU><xsl:value-of select="//sku" /></SKU>
</xsl:template>
<xsl:template match="submit" />
</xsl:stylesheet>This is the XSQL page I am sending the request to for insert into the DB.
addItem.xsql
<?xml version = '1.0'?>
<root xmlns:xsql="urn:oracle-xsql" connection="connJMLIE">
<xsql:insert-request
table="cart"
transform="addItem.xsl" />
</root>Every column is added except OPTIONS. This is null if any "<" are present. This is why I am trying to use ext:xmlMarkup.
My problem is how do I apply the OPTIONS template to the results of the addItem.xsl in order to escape "<" and add the data as I intended?
Thank you for your time Steve,
Jason

Similar Messages

  • XMLTABLE() with XSQL and XSL

    HI Gentlemen,
    I have an XMLTYPE table with data loaded in it, which I would like to query with JDeveloper, formatted. For normal relational tables it works fine. However, for an XMLTYPE table, where--in addition--XMLTABLE() must be involved, I only get the constant text portions, not the selected values. (Note that the same works with XML instances file and XSL stylesheet excellently, without JDeveloper.) My question is: How can I reference a coulumn in an XMLTABLE() table that is constructed during query?
    Included is the following:
    (1) XSQL file in JDeveloper
    (2) XSL stylesheet file in JDeveloper
    (3) Output of XSQL from JDeveloper when the <?xml-stylesheet...> is commented out
    Please help if you have an idea.
    (1) XSQL file under public-html
    <?xml version="1.0" encoding='windows-1252'?>
    <?xml-stylesheet type="text/xsl" href="untitled1.xsl" ?>
    <page xmlns:xsql="urn:oracle-xsql" connection="gksconnection">
    <xsql:query xmlns:xsql="urn:oracle-xsql" >
    SELECT
    des.ziffer,
    des.kap_bez,
    des.bereich,
    des.kapitel,
    des.abschnitt,
    des.kurztext,
    des.langtext,
    des.quittungstext
    FROM
    z p,
    XMLTable(XMLNAMESPACES('urn:ehd/001' as "n1", 'urn:ehd/go/001' as "n2"),
                        'for $i in /n1:ehd
    where $i/n1:header/n1:provider/n1:organization/n1:id/@EX eq "46" and
                        $i/n1:body/n2:gnr_liste/n2:gnr/@V eq "01700V"
                   return $i/n1:body/n2:gnr_liste/n2:gnr[@V="01700V"]'
    PASSING p.xml_document
    COLUMNS
    ziffer      VARCHAR2(12) PATH '@V',
    kap_bez VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/@DN',
    bereich VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/n2:bereich/@DN',
    kapitel VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/n2:kapitel/@DN',
    abschnitt VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/n2:abschnitt/@DN',
    kurztext      VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kurztext/@V',
    langtext      VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:langtext/@V',
    quittungstext VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:quittungstext/@V') des
    <!-- select * from z -->
    </xsql:query>
    </page>
    (2) XSL stylesheet under public-html
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ehd="urn:ehd/001" xmlns:pe="urn:ehd/go/001">
    <xsl:output encoding="ISO-8859-1" method="text/html" />
    <xsl:template match="/page">
    <html>
    <head>
    <title>EBM Ziffer</title>
    </head>
    <body style="font-family:verdana;color:black">
    <h2><xsl:text>Ziffer: </xsl:text>
    <xsl:value-of select="@V"/>
    </h2>
    <table border="1">
    <tr>
    <td><xsl:text>Gültigkeit</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:gueltigkeit/pe:service_tmr/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bezeichnung Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bereich</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Abschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:abschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Unterabschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:uabschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Block</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:block/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kurztext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kurztext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext (Fortsetzung)</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext_continued/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Quittungstext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:quittungstext/@V"/></td>
    </tr>
    </table>
    <!-- Anmerkungen-Liste -->
    <h3><xsl:text>Anmerkungen</xsl:text></h3>
    <table border="1">
    <xsl:for-each select="pe:allgemein/pe:anmerkungen_liste/pe:anmerkung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Leistungsinhalt-->
    <h3><xsl:text>Leistungsinhalt</xsl:text></h3>
    <table border="1" >
    <tr>
    <th><xsl:text>Komplex</xsl:text></th>
    <th><xsl:text>Leistung</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:leistungsinhalt/pe:komplex">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td>
    <xsl:for-each select="pe:leistung">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Bewertungsliste -->
    <h3><xsl:text>Bewertungen</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Bewertung</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Gebührenordnung</xsl:text></th>
    <th><xsl:text>Leistungserbringerart</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    <th><xsl:text>Versorgungsgebiet</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:bewertung_liste/pe:bewertung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:gebuehrenordnung/@V"/></td>
    <td><xsl:value-of select="pe:leistungserbringerart/@V"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    <td><xsl:value-of select="pe:versorgungsgebiet/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Zeitbedarfliste -->
    <h3><xsl:text>Zeitbedarfliste</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Zeit</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:zeitbedarf_liste/pe:zeit">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Prüfzeit -->
    <h3><xsl:text>Prüfzeit</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Zeitangabe</xsl:text></th>
    <th><xsl:text>Zeiteinheit</xsl:text></th>
    <th><xsl:text>Profiltyp</xsl:text></th>
    </tr>
    <tr>
    <td><xsl:value-of select="pe:allgemein/pe:pruefzeit/@V"/></td>
    <td><xsl:value-of select="pe:allgemein/pe:pruefzeit/@U"/></td>
    <td><xsl:value-of select="pe:allgemein/pe:pruefzeit/pe:zeitprofilart/@V"/></td>
    </tr>
    </table>
    <!-- RLV -->
    <h3><xsl:text>RLV</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Kennzeichen</xsl:text></th>
    </tr>
    <tr>
    <td><xsl:value-of select="pe:allgemein/pe:rlv/@V"/></td>
    </tr>
    </table>
    <!-- Leistungsgruppe -->
    <h3><xsl:text>Leistungsgruppe</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Code</xsl:text></th>
    </tr>
    <tr>
    <td><xsl:value-of select="pe:allgemein/pe:leistungsgruppe/@V"/></td>
    </tr>
    </table>
    <!-- Fachgruppen-Liste -->
    <h3><xsl:text>Fachgruppen</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Versorgungsbereich</xsl:text></th>
    <th><xsl:text>Fachgruppe</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:bedingung/pe:fachgruppe_liste/pe:versorgungsbereich">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td>
    <xsl:for-each select="pe:fachgruppe">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Ausschlußiste -->
    <h3><xsl:text>Ausschlußliste</xsl:text></h3>
    <table border="1" >
    <tr>
    <th><xsl:text>Bezugsraum</xsl:text></th>
    <th><xsl:text>Ziffer</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:regel/pe:ausschluss_liste/pe:bezugsraum">
    <tr>
    <td><xsl:value-of select="@U"/></td>
    <td>
    <xsl:for-each select="pe:gnr_liste/pe:gnr">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    (3) XSQL output without stylesheet
    -<page>
    −<ROWSET>
    −<ROW num="1">
    <ZIFFER>01700V</ZIFFER>
    −<KAP_BEZ>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregelun g und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </KAP_BEZ>
    <BEREICH>Arztgruppenübergreifende allgemeine Leistungen</BEREICH>
    <KAPITEL>Allgemeine Leistungen</KAPITEL>
    −<ABSCHNITT>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregel ung und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </ABSCHNITT>
    −<KURZTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </KURZTEXT>
    −<LANGTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin, Mikrobiologie und Infektionsepidemiologi e, Transfusionsmedizin und ermächtigte Fachwissenschaftler der Medizin für die Erbringung von Laborleistungen gemäß den Richtlinien des Gemeinsamen Bundesauss
    </LANGTEXT>
    −<QUITTUNGSTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </QUITTUNGSTEXT>
    </ROW>
    </ROWSET>
    </page>
    Please apologize that the stylesheet has considerably more than the XSQL query--this is going to be extended when the technique works.
    Thank you, kind regards
    Miklos HERBOLY

    Perhaps you could consider using the XMLType instead of varchar2 for the db columns, thus avoiding use of XMLTABLE() altogether.
    Consult for example the source code of :
    http://www.amazon.com/Oracle-XSQL-Combining-Publish-Dynamic/dp/0471271209
    You might also try posting to a more specialized forum such as:
    http://forums.oracle.com/forums/category.jspa?categoryID=51
    NA
    http://nickaiva.blogspot.com
    Edited by: Nick Aiva on Jan 21, 2011 9:17 PM

  • Printing with xsql and css or xsl and fop

    How to incorporate css or css2 with xsql?
    I want some sample files. What is FOP? How can we use it for printing and print view

    Thanks for your reply. I know FOP. How to run it with tomcat3.2 and xsql?
    I already onto css1 and css2. XSLT stylesheets are working fine for me. But for taking print outs using the paged media with css2 i require some help. Currently I am reading Oracle XML Applications by Steve Muench from o'reilly.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    See the XSQL Servlet examples. Most of the demos have XSLT stylesheets that generate HTML which includes references to CSS stylesheets.
    FOP is the Apache Formatting Object Processor.
    See the XSQL Release notes for information on using FOP with XSQL Pages for rendering PDF files from database queries.<HR></BLOCKQUOTE>
    null

  • Character problems with xsql:include-xsql reparse="yes"

    I have a problem retrieving XML-fragments from CLOB columns.
    Danish ISO-8859-1 characters (aelig, oslash, aring) are returned as "?" from Apache/Jserv when using xsql:include-xsql reparse="yes".
    My platform is Solaris9/Oracle-9.2.0.2/XDK-9.2.0.4.
    Database characterset is we8iso8859p1.
    I'm using the Apache/Jserv that comes with Oracle 9.2.0.1.
    Steps to reproduce problem:
    -- Table data:
    create table tab1 (id number,clob_col clob);
    insert into tab1 values(1, '<x>fxe</x>');
    /*inserted characters are aelig(230), oslash(248), aring(229)*/
    commit;
    -- test.xsql:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <testdata xmlns:xsql="urn:oracle-xsql" connection="pnrtest">
    <xsql:include-xsql reparse="yes" href="inc.xsql" />
    </testdata>
    -- inc.xsql:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="unquote_clob_col.xsl"?>
    <xsql:query
    xmlns:xsql="urn:oracle-xsql"
    connection="pnrtest"
    tag-case="lower"
    >
    select clob_col
    from tab1
    </xsql:query>
    -- unquote_clob_col.xsl:
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="ISO-8859-1"/
    <xsl:include href="identity.xsl"/>
    <xsl:template match="clob_col">
    <clob_col>
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </clob_col>
    </xsl:template>
    </xsl:stylesheet>
    -- identity.xsl:
    <!-- The Identity Transformation -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!-- Whenever you match any node or any attribute -->
    <xsl:template match="node()|@*">
    <!-- Copy the current node -->
    <xsl:copy>
    <!-- Including any attributes it has and any child nodes -->
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    -- Notes:
    Running test.xsql works fine with XSQL command-line, but FAILS through Apache/Jserv (danish characters are returned as "?").
    inc.xsql works fine through XSQL command-line and Apache/Jserv, problem only happens with xsql:include-xsql reparse="yes" (e.g. test.xsql).
    xsql:include-xml works fine, but I cannot use this, bca. in my real business case I'm selecting more than one row from the database.
    I've checked and double-checked my jserv.properties several times, and believes it to be correct.
    The xsql:include-xsql reparse="yes" technique works fine in our Solaris9/Oracle-8.1.7/iAS-1.0.2.2 environment.
    Any suggestions ?
    -- Peter ([email protected])

    If I put the following line in jserv.properties:
    wrapper.env=LANG=en_US.ISO8859-1
    the problem with xsql:include-xsql reparse="yes" seems to go away.
    Really strange, since Oracle products in my experience normally only uses NLS_LANG, not LANG.
    Also, we're accessing several databases with different charactersets from the same ApacheJserv installation, so I don't understand why LANG (or NLS_LANG) should be set to a particular value.
    Can anybody explain ?
    -- Peter

  • Using xsl stylesheet with List View Web Part to display custom text

    Hi 
    i have an xsl stylesheet with sharepoint listview webpart. The list view shows some items based on a filter. I want to display custom text such as "No Items" when there are zero items in the list view using the xsl stylesheet. How do i achieve
    this. I have spent hours searching but couldnt find the exact answer. Please help me out. I am a light user not a hard core developer so I dont use Visual Studio. Thanks in advance

    Hi 
    I have customised the list view webpart using a custom xsl file by including it in the xsl link of the list view webpart. So i think i need to include the condition in the xsl file itself else it wont work. Since the list view webpart isnt using the default
    xsl. Please let me kknow if you have any idea about including a condition in xsl to check if there are not items in view. 
    The code of the xsl is included below.
    <!--
    This section is the set up and can be used at the top of any external XSLT stylesheet file
    -->
    <xsl:stylesheet
    xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
    version="1.0"
    exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
    <table>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowview"></xsl:call-template> 
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
        <tr>
      <td><img height="78" width="60"><xsl:attribute name="src"><xsl:value-of select="@Photo"/></xsl:attribute></img></td>
        <td>
        <table style="margin-left:10px;">
        <tr><td><xsl:value-of select="@FullName"/></td></tr>
        <tr><td><xsl:value-of select="@DOBinWords"/></td></tr>
        </table>
        </td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>

  • EP 7 Portal stylesheet with WD ABAP

    We run a WD WD ABAP application and want to use the EP 7 stylesheet with the iView:
    - we use the WD iView
    - Stylesheet -> ur
    - Supply Portal Stylesheet -> yes
    a) What values are possible for stylesheet. "ur" does not mean anything to me. We have tried our own stylesheet there (value "demo") but it did not show any effect (we got an error).
    b) I have used a personalized stylesheet, but it did not show any effect. the portal layout changed but the WD ABAP not.
    Any idea.

    Thanks for the answer, already a good direction. However it does leave a couple of questions open:
    T1: From your thread Best practice creating an Corporate Design (Layout) with a web dynpro I understand that I can use WDTHEMEROOT with sap_chrome etc.
    A) These are the styles from the WebAS ABAP, right? Means the styles in the MIME repository there.
    B) What do I have to do when I want to use my own style. I have successfully imported a style sheet into the WebAS and used with sap-cssurl. Are there any restrictions where I have to import the css (the path on WebAS) so I can use it with WDTHEMEROOT
    T2: Style sheet of Portal
    I still have the style sheet value in the iView of the portal (value "ur"). I have absolutely no clue, what values I could use there. I can only tell that I have tried to set my own style there which resulted in an error.
    Is there any complete documentation about this topics, besides some SDN posts I did hardly find anything.

  • Attribute Change Run in Process Chain failed with SQL 942 error

    Hi,
    Attribute change run in th eprocess chain failed with the message " SQL Error 942" and ran succesfully after repeating the step.Searched in Forums for similar error but the solutions were not apt.
    Any pointers would be of great help!!
    Thanks in advance,
    Bhagyarekha.

    Hi Bhagyarekha,
    The reason behind that error could be:
    An attempt is made to activate a characteristic whose compounding was replaced and whose navigation attributes were simultaneously deleted. The replacement of the compounding temporarily deletes the M view of the characteristic during internal activation. The process of deleting navigation attributes involves converting the attribute SID tables. However, the M-view of the characteristic, which has just been deleted, is needed for this conversion.
    Check this SAP Note:
    Note 684405 - Replacing the compounding and deleting navigation attr.
    Hope it helps.
    Veerendra.

  • How to build shopping bag with XSQL

    I am building a site for a store, and need a shopping bag, how can I do it.
    I am using WNT/4/Ora816/IAS/XSQL.
    I am working with XSQL pages and XSQL Action Handler and with technical implementing requirements (oracle.xml.xsql.XSQLActionHandler).
    What do you sugest?, any example.
    thanks

    OTN has a sample app that might interest you:
    B2B with XML simulates the interaction between entities in an international hotel reservation system. As customers make and cancel room reservations, the app stores the data in a virtual shopping cart.
    Enjoy,
    -rh

  • Proxy login with xsql servlet

    Has anyone written a Custom Connection Manager for the xsql servlet? It seems useful to support proxy/lightweight sessions with xsql servlet. Has anyone tried this?

    It won't work because iPlanet 4.1 has a broken implementation of the Servlet API's getRealPath() method, the method that XSQL Servlet uses to resolve virtual paths into absolute paths.
    I just debugged a complaint that it didn't work with iPlanet this week and this was the result I found.
    Their path resolution works for their own JSP implementation, but not for any other servlet.

  • Character encoding with xsql

    I have a similar application running to the xsql document demo. However, when I am pulling the xml clob out of the database, the character set is incorrect and the xml is not parsed correctly.
    Instead of a "<" in the returned xml source, I get the following characters:
    & # 6 0 ;
    (No spaces in between them).
    I seem to have this problem regardless of what type of field I pull the data out of (varchar2, char).
    Whats going on here?
    null

    Thanks for all your help! I just have encountered one more problem blocking me from completing this.
    I use the following two xsql pages:
    <?xml version='1.0'?>
    <?xml:stylesheet type="text/xsl" href="doctorv3_IE5.xsl" ?>
    <xsql:include-xsql connection="demo" xmlns:xsql="urn:oracle-xsql"
    href="doc_detail.xsql?id={@id}"/>
    and
    <?xml version="1.0" encoding="Windows-1250" ?>
    <?xml-stylesheet type="text/xsl" href="clob.xsl" result-type="text/xml"?>
    <xsql:query connection="demo" rowset-element="" row-element="" max-rows="1"
    xmlns:xsql="urn:oracle-xsql">
    select /* x.xml_clob */ x.xml_clob DOC
    from user_xml x
    where x.ihc_user_id= {@id}
    </xsql:query>
    combined with the following two stylesheets
    doctorv3_ie5.xsl:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
    <xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
    <xsl:template match="/">
    <head>
    <title>Sample XSL Stylesheet for Doctor Viewing Data</title>
    </head>
    <body>
    <center>
    <table width="100%" height="5%" border="5" cellspacing="0">
    <tr>
    <td bgcolor="#000077"><font size="+5" color="#FFFF00"><b><center>CLINICARE Patient Data</center></b></font></td>
    </tr>
    </table>
    </center>
    <p>
    <br></br>
    </p>
    <center>
    <table width="90%" height="5%" border="5" cellspacing="0">
    <tr>
    <td colspan="2" bgcolor="#000077"><font size="+3" color="#FFFF00"><b><center>Demographic Data</center></b></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>Surname</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatName"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>First Name</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatFirstName"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" heigh45t="18" width="30%"><font size="+2" color="#FFFF00"><b>Gender</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatGenderCode"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" heigh45t="18" width="30%"><font size="+2" color="#FFFF00"><b>Date of Birth</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatBirthDtm"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" heigh45t="18" width="30%"><font size="+2" color="#FFFF00"><b>Personal Health Number</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatIDNum"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>Address</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatPrimAddress/PatPrimAddressStreet"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF 00"><b>Postal Code</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:apply-templates select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatPrimAddress/PatPrimAddressPost"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>City</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatPrimAddress/PatPrimAddressCity"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>Phone Number</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatPrimAddress/PatPrimPhoneNum"/></font></td>
    </tr>
    </table>
    </center>
    <p>
    <br></br>
    </p>
    <center>
    <table width="90%" height="5%" border="5" cellspacing="0">
    <tr>
    <td colspan="2" bgcolor="#000077"><font size="+3" color="#FFFF00"><b><center>Primary Care Physician</center></b></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>Surname</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:apply-templates select="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhysName"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>First Name</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:apply-templates select="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhysFirstName"/></font></td>
    </tr>
    <tr>
    <td bgcolor="#000077" height="18" width="30%"><font size="+2" color="#FFFF00"><b>Specialty</b></font></td>
    <td bgcolor="#FFFFFF" height="18"><font size="+2" color="#000077">
    <xsl:apply-templates select="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhys"/></font></td>
    </tr>
    </table>
    </center>
    <p>
    <br></br>
    </p>
    <center>
    <table width="90%" height="5%" border="5" cellspacing="0">
    <tr>
    <td bgcolor="#000077"><font size="+3" color="#FFFF00"><b><center>Patient History</center></b></font></td>
    </tr>
    </table>
    </center>
    <p>
    <br></br>
    </p>
    <xsl:for-each select="PatientSummary/HEALTHITEMS/PHYSICALEXAMS" order-by="HExamDate">
    <hr></hr>
    <p><font color="#000077" size="+1"><b>Notes Entry Date:</b><xsl:value-of select="HExamDate"/></font></p>
    <p><font color="#000077" size="+1"><b>Doctor's Name:</b><xsl:value-of select="HExamExaminerName"/></font></p>
    <p><font color="#000077" size="+1"><b>Doctor's Number:</b><xsl:value-of select="HExamExaminerNUM"/></font></p>
    <xsl:for-each select="HExamItem">
    <p><font color="#000077" size="+1"><b>Category Description:</b><xsl:value-of select="HExamItemIDName"/></font></p>
    <p><font color="#000077" size="+1"><b>Category Code:</b><xsl:value-of select="HExamItemIDCode"/></font></p>
    <p><font color="#000077" size="+1"><b>Notes Entry:</b></font></p>
    <xsl:for-each select="HExamText">
    <dd><font c olor="#000077" size="+1"><xsl:value-of/></font></dd>
    </xsl:for-each>
    </xsl:for-each>
    </xsl:for-each>
    <p>
    <br></br>
    </p>
    <center>
    <table width="90%" height="5%" border="5" cellspacing="0">
    <tr>
    <td bgcolor="#000077"><font size="+3" color="#FFFF00"><b><center>Lab Test History</center></b></font></td>
    </tr>
    </table>
    </center>
    <p>
    <br></br>
    </p>
    <xsl:for-each select="PatientSummary/HEALTHITEMS/TESTS/CLINICALTESTS" order-by="HExamDate">
    <hr></hr>
    <p><font color="#000077" size="+1"><b>Report Date:</b><xsl:value-of select="PHProbNum"/></font></p>
    <p><font color="#000077" size="+1"><b>Report Time:</b><xsl:value-of select="DXProcSpecTypeCode"/></font></p>
    <p><font color="#000077" size="+1"><b>Requisition #:</b><xsl:value-of select="DXOrdIDNum"/></font></p>
    <xsl:for-each select="DXClinLabTest">
    <p><font color="#000077" size="+1"><b>Test Name:</b><xsl:value-of select="DXClinLabTestName"/></font></p>
    <p><font color="#000077" size="+1"><b>Result Comments:</b></font></p>
    <xsl:for-each select="DXProcReportText">
    <dd><font color="#000077" size="+1"><xsl:value-of/></font></dd>
    </xsl:for-each>
    </xsl:for-each>
    <xsl:for-each select="DXProcNmeasAnalyte">
    <p><font color="#000077" size="+1"><b>Test Value:</b><xsl:value-of select="DXProcNmeasAnalValQty"/></font></p>
    <p><font color="#000077" size="+1"><b>Normality:</b><xsl:value-of select="DXProcNmeasAnalInterpCode"/></font></p>
    </xsl:for-each>
    </xsl:for-each>
    </body>
    </xsl:template>
    <xsl:template match="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhysName">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhysName"/>
    </xsl:template>
    <xsl:template match="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhysFirstName">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhysFirstName"/>
    </xsl:template>
    <xsl:template match="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhys">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PRIMECAREPHYSICIAN/PatPrimCarePhys"/>
    </xsl:template>
    <xsl:template match="/PatientSummary/ADMINISTRATIVE/PATIENT/PatPrimAddress/PatPrimAddressPost">
    <xsl:value-of select="/PatientSummary/ADMINISTRATIVE/PATIENT/PatPrimAddress/PatPrimAddressPost"/>
    </xsl:template>
    </xsl:stylesheet>
    and clob.xsl:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" omit-xml-declaration="yes"/>
    <xsl:template match="@*|node()">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="DOC">
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </xsl:template>
    </xsl:stylesheet>
    If I remove the reference to the doctorv3_IE5 stylesheet, I recieve properly formatted xml code displayed in xml, thanks to the clob.xsl stylesheet. When I try to reference the stylesheet, however, the stylesheet doesn't format correctly - IE5 displays only the XSL stylesheet, not the XSL combined with the XML.
    Saving this xml code to a file and then combining it with the xsl works exactly like in should, but I cannot get the xsql page to combine the two properly.
    Any ideas on whats wrong?
    null

  • How to use ODBC with XSQL servlet??

    I want to use VB6.0 to get result from XSQL Servlet. What can I do with it?
    Any help will be grateful.
    Regards,
    Kelly Chen

    Hi,
    Perhaps you can create your own trust manager. I've found this example in another newsgroup: (please note that this example trusts everyone, but you can modify the trust manager as you wish)
    if (putUrl.startsWith("https"))
      //set up to handle SSL if necessary
      System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
      System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager");
      Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
      //use our own trust manager so we can always trust
      //the URL entered in the configuration.
      X509TrustManager tm = new MyX509TrustManager();
      KeyManager []km = null;
      TrustManager []tma = {tm};
      SSLContext sc = SSLContext.getInstance("ssl");
      sc.init(km,tma,new java.security.SecureRandom());
      SSLSocketFactory sf1 = sc.getSocketFactory();
      HttpsURLConnection.setDefaultSSLSocketFactory (sf1);
    m_url = new URL (putUrl);
    class MyX509TrustManager implements X509TrustManager {
    public boolean isClientTrusted(X509Certificate[] chain) {
      return true;
    public boolean isServerTrusted(X509Certificate[] chain) {
      return true;
    public X509Certificate[] getAcceptedIssuers() {
      return null;
    }Hope this helps,
    Kurt.

  • Thunderbolt daisy chain problem with display

    Hi to everybody,
    being a proud new user of a thunderbolt audio interface Apollo Quad since a couple of days i am struggling to set it up without trouble for my secondary display in my Thunderbolt daisy chain...
    My setup and connections
    MBP Late 2011 17" 16GB RAM running Mavericks and UAD SW 7.11, 1 Thunderbolt port
    Promise Pegasus R4 Thunderbolt RAID drive
    Apple TB display
    Second 26" display connected via DVI/Mini display port adapter
    Erverything worked like a charm prior to inserting the TB audio interface with a Thunderbolt 2 Card into the TB daisy chain. Order of TB connections: MPB -> Apple TB display -> TB Audio interface -> Ext. display via DVI to TB connector.
    Since putting the audio interface (Apollo) in the TB chain Apollo itself, TB display and Pegasus RAID run fine - but the last display behind Apollo only shows "invalid mode" blinking on the display. I tried changing the order of the devices, no change.
    Has anyone an idea what to do?? - I have not exceeded the max number of TB devices (6) allowed to run in sequence. I read here in the forum that an ext display behind Apollo should work and has proven to do so. It has the new option card for TB2 inserted... Does the left/right port matter, which is connected to the display?
    Thanks in advance for any help to get that sorted out!! The last option would be to go remove the TB card and run the Apollo per firewire as I need the second screen.. not the most convincing solution for me though.
    Regards
    Uli

    Hi Ilya,
    I am curious why it only happens for one particular Process Chain. Normally displaying a log has nothing to do with the client settings of SCC4 and/or system settings of SE06. My only guess is that it might be created in this system directly and that the system wants to modify anything here.
    I am quite sure that the system is "closed" and it's not a Development system, e.g. a Production System. Please confirm.
    Anyway, I have one suggestion and that is to check the Object Changeability in the Transport Connection. Go to t/code RSA1, choose the Transport Connection view and click on the push button Object Changeability.
    Here you can see a list of Object Types like RSPT (Process Chain Starter), RSPV (Process Variants), PSPC (Process Chain). If it is set to "Not Changeable", I suggest to change that in e.g. "Everything Changeable".
    Please try that with the above mentioned Object Types for Process Chain related Object Types and see if you are able to display the log w/o the pop-up.
    You can also refer to SAP Note 337950 - Queries (including objects) cannot be edited for more information.
    Thanks,
    Sander

  • Firewire daisy-chain trouble with Leopard. Will a hub help?

    I cannot get reliable daisy-chaining of my external Firewire drives under Leopard. A Firewire drive directly attached to computer will work, but subsequent daisy-chains to this drive will not mount more than half the time. I ended up getting corruption of 2 drives: there appears to sometimes be Spotlight crashes/Finder crashes, and Disk Utility repair failure after a mount fails.
    I have nine FW drives, and I like to keep bootable clones of all 3 of my Macs with the current system and a couple of generations back. Being able to attach only one drive to my 12" G4 Powerbook 1.5GHz makes cloning difficult (I can only clone the internal drive using my Powerbook). If I get a Firewire hub, will my FW connection then be reliable? There seems to be a problem in Leopard as I don't get daisy-chain problems using the same drives under Tiger. The drive activity lights don't even flash when the daisy-chained drive mounts fail under Leopard, so it appears that Leopard is making no attempt to mount the drives. Why would this be? Yet sometimes daisy-chain drives have mounted just fine.
    Makes/models I have tried: Smartdisk Firelite (were sold by Apple), Maxtor OneTouch III, Seagate FreeAgent Pro, and Iomega Black series. I tried various cables.
    Does anyone know what the difference is, from a hardware standpoint, between daisy-chain vs. using a Firewire hub. Would there be an inherent difference using a hub?
    Are the "hubs" with Mac Mini footprints actually true hubs or are they daisy-chains? How about FW drives with built-in FW "hubs": are THEY actually a true hub or a daisy-chain in disguise? (Sorry if these questions seem stupid.) Recommendations for a hub?

    Sorry just noticed I've probably posted this under the wrong forum header

  • There is no display on Apple Thunderbolt display, when Daisy chain connect with six LaCie Little Big Disks.

    Hi, Everyone,
    I have aquestion with Thunderbolt daisy chan.
    I have six LaCie Little Big Disks and Apple Thunderbolt Display to make daisy chan and I got a problem.
    I place the Apple Thunderbolt Display at the end of the chain, and six LaCie Little Big Disks infront, and Apple Thunderbolt Display does not show anything.
    If I plac the dell u2711 (DP1.1) Display at the end of the chain, and six LaCie Little Big Disks infront , dell u2711(DP1.1) displays.
    If I place the Apple Thunderbolt Display at the end of  the chain,and five LaCie Little Big Disks infront. Apple Thunderbolt Displays well.
    Is it because the hardware limitation that Thunderbolt daisy chan can only have maximum 6 Thunderbolt deivce?
    Apple Thunderbolt Display Should be DP1.2, why it doesn’t display?
    My workstation running Windows 7x64 or Windows8.1x64
    Thanks ,Myron

    if you reduce the number of disks to 5 and the display works, I think we'll have your answer.

  • File Upload and Download with XSQL Utility

    Dear all,
    I'm working on a Web-based application to communicate with users.
    This application is based on the XSQL-Utility (XSU).
    Currently I cannot find any possibility to pass an arbitrary
    binary file from the client side to store it in a LOB column
    inside the Oracle RDBMS and vice versa.
    All examples I can find refers to store/read XML-content in CLOB
    columns.
    Thank you for any help.
    Stephan

    Hai Noufal,
        I successfully upload the files to the database.
        For file download i create two views.
       In the first view files are fetched from the database(datatype for the file is image in the database)and it is converted to byte from image.Afterthat the byte is converted to string by using the following code.
    byte source[]=new byte[1024];
                        if(rs.next()){
                             source=rs.getBytes("cv_document_file");
                        String sourcestr=source.toString();
                        wdContext.currentContextElement().setDownloadfile(sourcestr);     
            Now i put the converted string into the second view.In the second view i try to convert the string value into bytes by using the following codes.
    String sourcestr=wdContext.currentContextElement().getDownloadfile();
             byte bs[]=new byte[1024];
             bs=sourcestr.getBytes();
             wdContext.currentDownloadElement().setDownloadfile(bs);
             But it doesn't work and no error.
             Now i am expecting the valuable suggestions from you.
    Thanks in Advance,
    Kind Regards,
    S.V.Selva Bala.

Maybe you are looking for

  • How to unlock my iphone 4s sprint

    I have an Iphone 4s from Sprint Carrier desconected, I want unlock it  becouse i want to send this iphones 4s to Guatemala

  • User exit in Production Confirmation

    Hi Experts, I need to fill the a custom pallet table when the material document is created in transaction CO11N. And I need to do few validations and if those fails I need to reverse the material document. I found few user exits with the material doc

  • Changing billing details

    Hi, I'm moving out of my address and my BT phoneline & Internet Bills are in my name, however my friend who shares the flat is staying here. Would it be possible to switch the account into his name and also switch the direct debit details over to him

  • Can't boot from Ubuntu partition after upgrading to Yosemite

    When i go to Disk Utility the Ubuntu partition appears as it always have, i had installed since Mavericks refind to boot from any partition. Now refind doesn't work and the alt/option key doesn't work either. Does anyone know a way to fix this?

  • ITunes won't play content as it says my monitor is "unauthorized."  ***?

    When I launch a downloaded movie on iTunes and try to play it, I get a message that "protected content is attempting to be played on an unauthorized computer." I have a 27" 1920x1200 Dell connected to a 13" MacBook Pro with Snow Leopard. The monitor