XSQL to XSL params passing problem

I'm trying to pass some parameters from XSQL to processing XSL, but I am unable to pass string constants. To make it clear:
XSQL:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="some.xsl" ?>
<qry xmlns:xsql="urn:oracle-xsql" connection="orcl8">
<xsql:set-stylesheet-param name="from" value="{@f}" />
<xsql:set-stylesheet-param name="where" value="{@w}" />
<xsql:set-stylesheet-param name="orderby" value="{@o}" />
<xsql:query max-rows="{@mr}" skip-rows="{@sr}" null-indicator="yes">
<![CDATA[
select * from {@f} where {@w} order by {@o}
]]>
</xsql:query>
</qry>
XSL (most of code omitted to save space):
SELECT * FROM <xsl:value-of select="$from"/>
WHERE <xsl:value-of select="$where"/>
ORDER BY <xsl:value-of select="$orderby"/>
If I pass w=FIELD='some string' (and even when I use &apos; ) all parameters passed to the XSL come empty. Everything without apostrophes comes in just fine, but appearance of apostrophes or their escaped equivalents causes all parameters to get in empty. Query is executed correctly though.
Am I doing something wrong or there's a bug in XSQL processor (or maybe what I'm trying to do is simply impossible - I just started to learn XML/XSLT and not sure I'm getting everything right...)?
regards,
Bob.
null

In my xsql I run various SQL statements. Some of these select configuration type details for that user/session. So the returned XML includes business data and some configuration data.
My main XSL uses these values to determine which templates to process. I use xsl:choose.
It does mean a big choose statement but it works fine.
Matt

Similar Messages

  • Xsql:set-session-param

    I experience a problem with exception arising when I try to set session parameter and then to post to a page with insert-request.
    Here is exception message:
    XSQL-018: Unexpected Error Occurred processing stylesheet null
    oracle.xml.parser.v2.XMLDOMException: Node of this type cannot be added.
    at oracle.xml.parser.v2.XMLDocument.checkChildType(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.parser.v2.XMLDocument.appendChild(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.parser.v2.XMLDocument.appendChild(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.xsql.XSQLStylesheetProcessor.processToDocument(XSQLStylesheetProcessor.java:66)
    at oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:82)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java, Compiled Code)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java, Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java, Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    Using 1.0.4.1 production xsql servlet.
    Code to set param:
    <xsql:set-session-param name="issuethesid" value="aaa" only-if-unset="yes"/>
    Code for the page producing error
    <?xml version="1.0"?>
    <!--?xml-stylesheet type="text/xsl" href="coastbasepost.xsl"?-->
    <page connection="coastbase" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-request-params/>
    <xsql:insert-request
    table="domain"
    transform="coastbaseinsert.xsl"/>
    <xsql:set-page-param name="CURRENTID">
    SELECT ID_SEQ.CURRVAL FROM DUAL
    </xsql:set-page-param>
    <xsql:include-param name="CURRENTID"/>
    </page>
    Works everything but insert-request.

    This error usually occurs when your transformation produces an illegal XML fragment.
    If you temporarily rename the transform attribute to transformXXX so that the inbound XSLT transformation is not performed, does the stack trace go away?

  • Xsl:param

    I run XSL-script from Java-servlet using XML parser v.2.0.2.9.
    I want to pass the node list to stylesheet script. How can i do it?? For example:
    XML -------------
    <root>
    <leaf>1</leaf>
    </root>
    XSL -------------
    <xsl:param name='new_leaves'/>
    <xsl:template match='leaf'>
    <xsl:copy-of select="$new_leaves"/>
    </xsl:template>
    When servlet runs XSL-script it passes parameter by setParam(...).
    The result XML-file must be something like:
    Result XML ------
    <root>
    <leaf>2</leaf>
    <leaf>3</leaf>
    </root>
    When parameter is literal value then all right. The problem rises when i want to pass the node list for a parameter.
    Thanks

    Cannot be done directly to the best of my knowledge.
    You could pass a value which is a space-separated list of numbers, then write an XSLT recursive template to parse the space-separated list of numbers and turn it into the XML fragment you're trying to create.

  • XSL transform sort problem in 1.5

    I am having problems applying an XSL transform to some XML data I have under the 1.5 JRE.
    Under 1.4.2 (and in several tools and browsers), the transform works correctly. In 1.5,
    <xsl:sort...> directives don't seem work correctly. Here's a simplified version of my
    code. Assume that the generateXMLReport outputs an XML document to a stream.
    public void generateHTMLReport( OutputStream out, String strXslSheet ){
         File f = new File( strXslSheet );
         if( f.exists() ){
              ByteArrayOutputStream bos = new ByteArrayOutputStream();
              // Generate the XML data we will work from
              generateXMLReport( bos );
              bos.flush();
              // Convert the XML to HTML by applying an XSL transform
              ByteArrayInputStream bis = new ByteArrayInputStream( bos.toByteArray() );
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Transformer transformer = tFactory.newTransformer( new StreamSource( strXslSheet ) );
              transformer.transform( new StreamSource( bis), new StreamResult( out ) );
    }Here's an XSL template:
    <xsl:template name="totalTable">
         <xsl:param name="matchSet"/>
         <xsl:variable name="maxValue">
         <xsl:for-each select="$matchSet">
         <xsl:sort select="total" data-type="number" order="descending"/>
         <xsl:if test="position() = 1">
              <xsl:value-of select="number( total )" />
             </xsl:if>
             </xsl:for-each>
             </xsl:variable>
    </xsl:template>If I remove the sort directive, I get the first value in the list, as I would expect.
    Other 'for-each' loops behave similarly. The problem in 1.5. When I run against 1.4.2,
    the transformation works fine.

    Show us the code please. Not the WHOLE code, just an example that demonstrates what you're seeing. I've never seen the problem you're encountering, but I rather doubt that it's a failing in the api. More than likely it's a semantic of how you're doing the listener but that's a guess on my part. Let's see what you have and go from there.
    PS.

  • XMLTansform and xsl:param values

    Hello,
    I would like to know if it is possible to pass xsl:param values when calling XMLTransform(xml, xsl).
    If not, is there another way to render an XML with an XSL that takes parameters?
    Thank you.

    RDC has been deprecated since version 9 meaning no new functionality has been added to it. Cascading Parameters were added in CR 11.
    There is no set of API's to access these types of Parameters at this time.

  • XSL param filter for character length?

    Hi I am using a xsl a transformation and using a param filter to only show 4 items (Works great!) but I would only like to show the first 50 Characters of the Article... is there a param filter I could pass to do this? or Would I need to make a new XML node to show?
    Thanks for any help!
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="UTF-8"/>
    <xsl:param name="ItemsPerPage" select="4" />
    <xsl:template match="/">
    <xsl:for-each select="dataroot/item[position() &lt;= $ItemsPerPage]">
    <xsl:sort select="date" order="descending"/>
      <h3><xsl:value-of select="title" disable-output-escaping="yes"/>
        </h3>
       <h5><xsl:value-of select="location"/> :
      <xsl:value-of select="date"/></h5>
       <h5><xsl:value-of select="author"/></h5>
        <xsl:value-of select="article" disable-output-escaping="yes"/>
          <xsl:value-of select="image"/>
           <xsl:value-of select="link"/>
    <br class="clearfloat" />
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    IsleA-Row2_Seat7

    Try this:
    <xsl:value-of select="substring(article, 1, 50)" disable-output-escaping="yes"/>
    AFAIK, that will cut it off at 50 characters. An alternative that might be more elegant is to select the first sentence and add an ellipsis like this:
    <xsl:value-of select="substring-before(article, '. ')" disable-output-escaping="yes"/>
    <xsl:text>... </xsl:text>

  • Can we use xsl:param element in XSLT mapping...?

    Hi Guys
    Can we use <xsl:param> element in XSLT mapping in XI..?
    Is there any documentation out there for XSLT mapping?
    Thanking in advance

    Hi,
    Check this link for an example:
    https://www.sdn.sap.com/sdn/url.sdn?res=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/6c514a4f-0501-0010-038c-994da5200215
    Regards,
    Sridhar

  • Any way to access params passed in URL  implementing JSR 168 on Oracle Appl

    I'm trying to access the params passed through URL like : http://hostname:7777/portal/page/portal/Wes%20store%20Sample/OnlyOnePortal
    webStoreId=100&Id=10000
    I have create a portlet with jsp implementing JSR 168 on Oracle Application Server 10g
    But unable to access them in either actionProcess() as well as render() using actionRequest and renderRequest as well.
    I wonder will this possible with JSR 168 to access params passed in URL in any way
    Can any body help me do this

    access params passed in URL  implementing JSR 168 on Oracle Application Ser

  • Help: on using xsl:param

    I am working on some xsl codes to do transformation,
    I have some codes like this:
    <xsl:template match="mytemplate">
    <xsl:param name="myparam"><xsl:number value="count()"/></xsl:param>
    function myfunction_{$cid} ()
    <!--I want the function name shows as "function myfunction_5 ", (5 is return value of count()).-->
    </xsl:template>
    Any help is greatly appreciated!

    Why would you use <xsl:param> to do that? Try this instead:
    function myfunction_<xsl:number value="count()"/> ()
    Or if you saw an example of an attribute value template somewhere else and tried to use it without understanding it, how about this:
    <xsl:variable name="cid"><xsl:number value="count()"/></xsl:variable>
    function myfunction_{$cid} ()
    Finally, what does this have to do with Java? There are plenty of active XSL mail lists where you would be much more likely to get a useful answer.

  • Xsl:param question

    hi in my xsl
    I have something that is like
    <xsl:param name="x" select="@somevalue"/>
    that @somevalue is suppose to have a value assigned to it (so it is dynamic).......but I can't figure out how it might work
    can someone provide my some info as to how @ this works in the xsl world....
    basically I want to know how i can assign value to that @somevalue...
    jaxb...?!
    thanks

    Are you asking what the @ character means? It's a shortcut for the attribute axis, so basically "@somevalue" means "the somevalue attribute of the context node".

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Question about xsql:set-page-param

    Hi!
    I have construction like this:
    <xsql:set-page-param name="ptk1" value="{@some_value}">
    where {@some_value} contains national characters. And in ptk1 I have only question marks. If I use {@some_value} directly, for example <xsql:query ...> <![CDATA select ... where field={@some_value} ]]> </xsql:query> it works fine. I have
    <?xml version="1.0" encoding="windows-1251" ?> in my xsql page.
    Is it possible to get set-page-param working with national chars?
    Thank you very much.

    You've identified a bug in how parameter values are retrieved. I've filed Bug#1920676 to get this fixed.
    Currently character set conversion is done between the servlet engine's default character set and the character set of the XSQL page template. The bug occurs because the character set conversion is being done in certain circumstances when it is not actually required.
    Will post a status update when we've identified a fix.

  • Xsql:set-page-param from multirow select into array variable

    I'd like to set an XSQL page array variable to the result of a query that returns multiple rows.
    Can I do something like this:
    <xsql:set-page-param name="users[]">
    select username from all_users
    </xsql:set-page-param>
    The documentation only mentions usage like
    <xsql:set-page-param name="users[]" value="SCOTT SYS SYSTEM"/>

    The set page param is only designed to look at the first column of the first row of its query results.
    If you supplied a PL/SQL function that would return the list of users as a space-or-comma-separated string, then you could use:
    select your_function() as user_list from dual
    and then add the treat-list-as-array="yes" attribute to achieve this.

  • Parameter passing problem between TS-LabView

    Hi
    I am getting crazy with this problem. Basically I have a vi, in which you can change some parameters of a step type. I put this step type into a seq, open the Edit substep (the problematic vi), and I can change some parameters, respectively: Compare, Command, Command_params and MasterData (see attached image). When I press the OK button in my "Edit" vi, the parameters are saved into the TS variables of my step type, without failure.
    The problem pops up only, when I push the CANCEL button, I expect that all the TS parameters keep the original value. This is the case...except one variable, called "Compare". All the others keep the previous values, so Command, Command_params and MasterData are ok. "Compare" is initialized to empty string :-(
    Originally "Compare" was a Boolean, it was always initialized to FALSE, when I clicked the cancel button.  I thought that is the problem.
    Then I changed it to Ring. It was initialized always to 0.
    Then I tried numeric, enum etc, always was initialized to 0, or in case of string, an empty string.
    Why is it so? I attached my vi, you can look into it.
    Attachments:
    params.jpg ‏42 KB
    Edit_APM_ATAPI.vi ‏222 KB

    Hi,
    In your first frame, you have connected all the other inputs to there respective outputs using local variables except for one, Compare and Compare out.
    Shouldn't you connect this together so the output picks up what you have inputed to the VI.
    What are you inputing into Compare, because if you are passing an empty string then that control seems to except the empty string, Even though you have the setting Allow Undefined strings disabled.
    I'm using LabVIEW 7.1
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • 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

Maybe you are looking for