Spaces in an xsl doc

Hi there,
Quite trivial here, but how do I get spaces to show up in an xhtml doc that has consecutive <xsl> elements.
e.g.
<xsl:value-of select="DayHour_slot1"/> <xsl:value-of select="DayHour_slot2"/> <xsl:value-of select="DayHour_slot1"/> <xsl:value-of select="DayHour_slot2"/>
Comes out as
"Mon 16-17Mon 17-18Tues 17-18"
Help much appreciated.
Cheers

I do'd too soon.
Reason I didnt want to use nbsp is cos it's not allowed in the xhtml doc that is produced by the transformation.
I got is tho. I used &#160;
Should work.

Similar Messages

  • [svn] 4488: Attempt to fix the heap-space issue with the doc target.

    Revision: 4488
    Author: [email protected]
    Date: 2009-01-12 12:10:58 -0800 (Mon, 12 Jan 2009)
    Log Message:
    Attempt to fix the heap-space issue with the doc target.
    Also removing some unused code.
    QE Notes: None
    Doc Notes: None
    tests: checkintests
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml
    flex/sdk/trunk/frameworks/projects/wireframe/build.xml
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/PumpStreamHandler.java

    1. Tell more about it, e.g.: OS, a sun jdk or a ibm jdk? 32-bit or 64-bit?
    for ibm jdk, look for *.hpd file within the dir.
    for sun jdk, add startup option -XX:+HeapDumpOnOutOfMemError
    Then analyze them with heap analyzer.
    2.MaxPermSize=1024m so big space for class files, really necessary?

  • How can I remove the header and footer for more space in my Pages docs?

    I could really use the extra space on my docs. How can I get rid of the header and footer?
    Thanks

    Hi Timothy
    Just to detail exactly where to find the options:
    +Inspector > Document > Document > Document Margins > Headers/Footers+
    +commnd option i+ shows and hides your Inspector palette/s.
    Peter

  • Safari pdf printing problem- adding spaces and characters to doc

    when I print some pdf documents, spaces and charactors are added. the document looks fine on the screen and prints fine directly from Adobe Reader. the problem is with Safari and Adobe plugin. same results on 10.4 and 10.3 machines. do not have this problem printing from Firefox. any suggestions
    thanks, david
    G4   Mac OS X (10.4.5)  

    Hi,
    I would appreciate any comments.
    Thanks

  • Not able to use xsl:import in my XSL doc

    Hi,
    I'm using Oracle 9.2.0.6.0 and DBMS_XSLPROCESSOR to transform my XML.
    I build XML using DBMS_XMLDOM methods, build stylesheet using dbms_xslprocessor.newstylesheet,
    then try to transform it using DBMS_XSLPROCESSOR.processXSL.
    It work fine. But if I add <xsl:import href="new_file.xsl"/> to my original xsl file, then dbms_xslprocessor.newstylesheet
    function fails with error:
    [1]: (Error): ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00412:
    Message 412 not found; product=XDK; facility=LPX ORA-06512: at "XDB.DBMS_XSLPROCESSOR",
    line 467 ORA-06512: at "XDB.DBMS_XSLPROCESSOR" ...
    Any ideas??
    Thanks in advance
    Fred

    One idea. Do you have the namespace for the new_file.xsl defined?

  • XSL works on WinNT but not Solaris

    I've got an XSL doc that works great on WinNT with oraxsl but not after I port it to Solaris 5.8 with JDK1.3.1. Why should they perform differently? Is this a config problem on the solaris?
    Solaris is using Oracle XDK 9.0.1.2.0, WinNT is using Oraxle XDK 9.2.0.2.0. Is this the problem? I ftp'd the file from winnt to solaris using ascii mode so it wouldn't garble a byte.
    The error it gets on Solaris is:
    $ java oracle.xml.parser.v2.oraxsl XCBLASN2.xml TransformShipment.xsl OAGASN2.xml
    oracle.xml.parser.v2.XSLException: XSL-1008: Namespace prefix 'date' used but not declared.
    Error occurred while processing XCBLASN2.xml: XSL-1008: Namespace prefix 'date' used but not declared.
    Here is a sample from the XSL doc:
    <?xml version="1.0"?>
    <!-- Stylesheet containing the reusable templates for xCBL to OAGI transformations -->
    <!--xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://www.jclark.com/xt/java/java.util.Date" exclude-result-prefixes="date"-->
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date" exclude-result-prefixes="date"><!--011220ak different xslns for XT or oracle-->...
    <xsl:call-template name="createCurrentDATETIME"/>
    <xsl:template name="createCurrentDATETIME">
    <xsl:variable name="today" select="date:new()"/>
    <xsl:variable name="len" select="string-length(normalize-space(date:toString($today)))"/>
    <xsl:if test="$len &gt; 0">
    <xsl:element name="DATETIME">
    <xsl:attribute name="qualifier">
    <xsl:value-of select="'CREATION'"/>
    </xsl:attribute>
    <xsl:element name="YEAR">
    <xsl:value-of select="substring(date:toString($today),$len - 4,$len)"/>
    </xsl:element>
    <xsl:element name="MONTH">
    <xsl:call-template name="FindMonth">
    <xsl:with-param name="month" select="substring(date:toString($today),5,3)"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:element name="DAY">
    <xsl:value-of select="substring(date:toString($today),9,2)"/>
    </xsl:element>
    <xsl:element name="HOUR">
    <xsl:value-of select="substring(date:toString($today),12,2)"/>
    </xsl:element>
    <xsl:element name="MINUTE">
    <xsl:variable name="var" select="substring(date:toString($today),15,2)"/>
    <xsl:call-template name="Validate">
    <xsl:with-param name="Val" select="$var"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:element name="SECOND">
    <xsl:variable name="var" select="substring(date:toString($today),18,2)"/>
    <xsl:call-template name="Validate">
    <xsl:with-param name="Val" select="$var"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:element name="SUBSECOND">0000</xsl:element>
    <xsl:element name="TIMEZONE">
    <xsl:value-of select="'-500'"/>
    </xsl:element>
    </xsl:element>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>

    I've got an XSL doc that works great on WinNT with oraxsl but not after I port it to Solaris 5.8 with JDK1.3.1. Why should they perform differently? Is this a config problem on the solaris?
    Solaris is using Oracle XDK 9.0.1.2.0, WinNT is using Oraxle XDK 9.2.0.2.0. Is this the problem? I ftp'd the file from winnt to solaris using ascii mode so it wouldn't garble a byte.
    The error it gets on Solaris is:
    $ java oracle.xml.parser.v2.oraxsl XCBLASN2.xml TransformShipment.xsl OAGASN2.xml
    oracle.xml.parser.v2.XSLException: XSL-1008: Namespace prefix 'date' used but not declared.
    Error occurred while processing XCBLASN2.xml: XSL-1008: Namespace prefix 'date' used but not declared.
    Here is a sample from the XSL doc:
    <?xml version="1.0"?>
    <!-- Stylesheet containing the reusable templates for xCBL to OAGI transformations -->
    <!--xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://www.jclark.com/xt/java/java.util.Date" exclude-result-prefixes="date"-->
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date" exclude-result-prefixes="date"><!--011220ak different xslns for XT or oracle-->...
    <xsl:call-template name="createCurrentDATETIME"/>
    <xsl:template name="createCurrentDATETIME">
    <xsl:variable name="today" select="date:new()"/>
    <xsl:variable name="len" select="string-length(normalize-space(date:toString($today)))"/>
    <xsl:if test="$len &gt; 0">
    <xsl:element name="DATETIME">
    <xsl:attribute name="qualifier">
    <xsl:value-of select="'CREATION'"/>
    </xsl:attribute>
    <xsl:element name="YEAR">
    <xsl:value-of select="substring(date:toString($today),$len - 4,$len)"/>
    </xsl:element>
    <xsl:element name="MONTH">
    <xsl:call-template name="FindMonth">
    <xsl:with-param name="month" select="substring(date:toString($today),5,3)"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:element name="DAY">
    <xsl:value-of select="substring(date:toString($today),9,2)"/>
    </xsl:element>
    <xsl:element name="HOUR">
    <xsl:value-of select="substring(date:toString($today),12,2)"/>
    </xsl:element>
    <xsl:element name="MINUTE">
    <xsl:variable name="var" select="substring(date:toString($today),15,2)"/>
    <xsl:call-template name="Validate">
    <xsl:with-param name="Val" select="$var"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:element name="SECOND">
    <xsl:variable name="var" select="substring(date:toString($today),18,2)"/>
    <xsl:call-template name="Validate">
    <xsl:with-param name="Val" select="$var"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:element name="SUBSECOND">0000</xsl:element>
    <xsl:element name="TIMEZONE">
    <xsl:value-of select="'-500'"/>
    </xsl:element>
    </xsl:element>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>

  • Bad XSL Transform?

    Hi.
    I have an XML doc and an XSL doc. In the XSL doc I have this line:
    <input name="COLGROUP" onClick="javaScript:coledit('<xsl:value-of select="BLOCK_INFO_SEQ"/>');" type="button" value="Col groups">
    Of course I have some stuff before and some stuff after. When I merge the XML and XSL docs like this:
    DocumentFragment result = processor.processXSL(xsl, xmldoc);
    And then create the output document, the above line turns into this:
    <input name="COLGROUP" onClick="javaScript:coledit(&#39;xsl:value-of select=" BLOCK_INFO_SEQ="/>&#39;);>" type="button" value="Col groups"/>
    This is an invalid line and it's puting a space between the select=" and BLOCK_INFO_SEQ as well as an = after BLOCK_INFO_SEQ. I don't mind the &#39;'s but losing the < is a pain.
    Any ideas why this is so?
    Thanks,
    Lewis
    null

    The following is a part of what I'm using for my XSL:
    <xsl:template match="/ROWSET">
    <IGIVELIFE>
    <xsl:apply-templates/>
    </IGIVELIFE>
    </xsl:template>
    <!-- ################################### -->
    <xsl:template match="ROW">
    <xsl:element name="ROW">
    <xsl:attribute name="num">
    <xsl:value-of select="@num"/>
    </xsl:attribute>
    <xsl:element name="DRIVE_ID">
    <xsl:value-of select="@IGL_ID"/>
    </xsl:element>
    <xsl:element name="NBCS_ID">
    <xsl:value-of select="ID"/>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    null

  • Xsl variable error not explained in earlier thread

    Steve,
    Thank you so much for your response to my earlier thread, it is difficult to focus on what I am supposed to be doing today, with all the sad news from the east coast.
    Re-visiting this variable issue one more time to try understand what is going wrong with this file.
    Below is a shortened version of the file plus the output from parsing it with xalan, saxon and oracle's two latest versions. As you see it parses fine with xalan and saxon but errors out with oracle's latest version. Should this be looked at again perhaps?
    xml file
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="UtilDataForm.xsl"?>
    <page>
    <dataform target="News.xsql" submit="SubmitButtonTitle">
    <item type="checkboxlist" name="nameOfCheckBoxList" label="CheckBoxList">
    <ROWSET>
    <ROW><VALUE>4</VALUE><DISPLAY>This</DISPLAY></ROW>
    <ROW><VALUE>5</VALUE><DISPLAY>That</DISPLAY></ROW>
    <ROW><VALUE>6</VALUE><DISPLAY>The Other</DISPLAY></ROW>
    </ROWSET>
    </item>
    </dataform>
    </page>
    xsl file
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!--
    | UtilDataForm.xsl: Transform <dataform> structural info
    | into a data-bound HTML Form
    +-->
    <xsl:template match="dataform">
    <xsl:variable name="form-target">
    <xsl:choose>
    <xsl:when test="@target">
    <xsl:value-of select="@target"/>
    </xsl:when>
    <xsl:when test="./target">
    <xsl:value-of select="./target"/>
    <xsl:if test="*">?</xsl:if>
    <xsl:for-each select="*">
    <xsl:value-of select="name(.)"/>
    <xsl:text>=</xsl:text>
    <xsl:value-of select="."/>
    <xsl:if test="position() != last()">
    <xsl:text>&;</xsl:text>
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text> </xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <center>
    <form method="POST" action="{$form-target}">
    <xsl:for-each select="item[@type='hidden']">
    <input type="hidden" name="{@name}" value="{normalize-space(.)}"/>
    </xsl:for-each>
    <table>
    <xsl:for-each select="item[@type != 'hidden']">
    <tr>
    <th align="right"><xsl:value-of select="@label"/></th>
    <td>
    <xsl:choose>
    <xsl:when test="@type='text'">
    <input type="text" name="{@name}"
    value="{normalize-space(.)}">
    <xsl:if test="@size">
    <xsl:attribute name="size">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    </input>
    </xsl:when>
    <xsl:when test="@type='password'">
    <input type="password" name="{@name}"
    value="{normalize-space(.)}">
    <xsl:if test="@size">
    <xsl:attribute name="size">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    </input>
    </xsl:when>
    <xsl:when test="@type='textarea'">
    <textarea class="code" rows="5" name="{@name}">
    <xsl:if test="@size">
    <xsl:attribute name="cols">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    <xsl:value-of select="normalize-space(.)"/>
    </textarea>
    </xsl:when>
    <xsl:when test="@type='list'">
    <xsl:variable name="default" select="default"/>
    <select name="{@name}">
    <xsl:for-each select="ROWSET/ROW">
    <option value="{VALUE}">
    <xsl:if test="VALUE=$default">
    <xsl:attribute name="selected"/>
    </xsl:if>
    <xsl:value-of select="DISPLAY"/>
    </option>
    </xsl:for-each>
    </select>
    </xsl:when>
    <xsl:when test="@ty pe='checkboxlist'">
    <xsl:variable name="name" select="@name"/>
    <xsl:for-each select="ROWSET/ROW">
    <input type="checkbox" name="{$name}" value="{VALUE}">
    <xsl:if test="SELECTED='Y'">
    <xsl:attribute name="checked"/>
    </xsl:if>
    </input>
    <xsl:value-of select="DISPLAY"/>
    </xsl:for-each>
    </xsl:when>
    </xsl:choose>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <input type="submit" value="{@submit}"/>
    </form>
    </center>
    </xsl:template>
    </xsl:stylesheet>
    xalan output
    <?xml version="1.0" encoding="UTF-8"?>
    <center><form action="News.xsql" method="POST"><table><tr><th align="right">CheckBoxList</th><td><input value="4"
    name="nameOfCheckBoxList" type="checkbox"/>This
    <input value="5" name="nameOfCheckBoxList"
    type="checkbox"/>That
    <input value="6" name="nameOfCheckBoxList" type="checkbox"/>The Other
    </td></tr></table><input
    value="SubmitButtonTitle" type="submit"/></form></center>
    saxon output
    <?xml version="1.0" encoding="utf-8"?>
    <center><form method="POST" action="News.xsql"><table><tr><th align="right">CheckBoxList</th><td><input type="checkbox"
    name="nameOfCheckBoxList" value="4"/>This
    <input type="checkbox" name="nameOfCheckBoxList" value="5"/>That
    <input
    type="checkbox" name="nameOfCheckBoxList" value="6"/>The Other
    </td></tr></table><input type="submit"
    value="SubmitButtonTitle"/></form></center>
    oraxsl with xmlparserv2.jar dated 06/19/01 10:09
    <?xml version = '1.0'?>
    <center><form method="POST" action="News.xsql"><table><tr><th align="right">CheckBoxList</th><td><input type="checkbox"
    name="nameOfCheckBoxList" value="4"/>This
    <input type="checkbox" name="nameOfCheckBoxList" value="5"/>That
    <input
    type="checkbox" name="nameOfCheckBoxList" value="6"/>The Other
    </td></tr></table><input type="submit"
    value="SubmitButtonTitle"/></form></center>
    oraxsl with xmlparserv2.jar dated 08/04/01 20:24
    file:/W:/workorders/util/UtilDataForm.xsl: XSL-1031: (Error) Variable not defined: 'name'.
    oracle.xml.parser.v2.XPathException: Variable not defined: 'name'.
    Error occurred while processing W:\workorders\util\FormTest.xsql: file:/W:/workorders/util/UtilDataForm.xsl: XSL-1031:
    (Error) Variable not defined: 'name'.
    Thank you again for your help!
    Ola Kvalvaag
    IS Administrator
    CT&E Environmental Services Inc.

    Yeah!!! It works. Turned out to be a combination of DrKlap's and Martisan's suggestions -- had to change var frame's declaration from JFrame to MyFrame:
        MyFrame frame;Next, created the external class -- but again changed JFrame references to MyFrame:
    public class ShowOnExit extends WindowAdapter {
    //   JFrame aFrame;
       MyFrame aFrame;
       public ShowOnExit(MyFrame f) {
          aFrame = f;
       public void windowClosing(WindowEvent e)
          System.out.println("Why me???" + aFrame.textArea.getText()); // aFrame here not frame !!!
    }This worked. So looks like even though the original code added a WindowListener to 'frame', the listener didn't couldn't access frame's methods unless it was explicitly passed in as a parameter. Let me know if that's wrong.
    Thanks again, all.

  • Want to insert a XSL file's data into a column of type SYS.XMLTYPE??

    Hello Friends
    I want to insert a XSL file's data into a column of a table of type SYS.XMLTYPE. Following is the XSL which i want to add into a table please help in.....
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:fn="http://www.w3.org/2005/xpath-functions">
         <xsl:output method="html" encoding="UTF-8" />
         <xsl:template match="clinical_study">
         <xsl:variable name="status">
              <xsl:apply-templates select='overall_status' />
         </xsl:variable>
    <html>
    <head>
    <title>Summary</title>
    <link href="merckcancer.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
         <div id="trialtop" class="trialtop">
              <div id="trialtophead" class="trialtophead">
                   <H1>Summary</H1>
              </div>
    <!-- start of trial body-->
         <div id="trialmiddle" class="trialmiddle">
                             <span class="trialtitle1"><xsl:apply-templates select='brief_title'/></span>
                   <span class="tealbold">Official Title: </span><xsl:apply-templates select='official_title' />
                   <span class="tealbold" title="ClinicalTrials.gov Identifier">NCT Id: </span><xsl:apply-templates select='//nct_id'/>
    <span class="tealbold">Conditions: </span><xsl:for-each select="//condition[position()!=last()]"><xsl:value-of select="normalize-space(.)" /><xsl:text>, </xsl:text></xsl:for-each>
    <xsl:for-each select="//condition[position()=last()]"><xsl:value-of select="normalize-space(.)" /></xsl:for-each>
    <span class="tealbold">Phase: </span><xsl:apply-templates select='phase' />
    <span class="tealbold">Status: </span><xsl:value-of select="$status" />
    <span class="tealbold">Interventions: </span><xsl:for-each select="//intervention[position()!=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /><xsl:text>, </xsl:text></xsl:for-each><xsl:for-each select="//intervention[position()=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /></xsl:for-each>
    <xsl:apply-templates select='eligibility'><xsl:with-param name="type">short</xsl:with-param></xsl:apply-templates>
    </div><!-- end of middle -->
    </div><!-- end of top-->                         
    <div id="detail" class="detail">
         <div id="detailtophead" class="detailtophead">
              <H1>Details</H1>
         </div>
    <!-- end of detailtop-->
    <!-- start of detail body-->
    <div id="detailmiddle" class="detailmiddle">
    <span class="trialtitle2">Trial Description:</span>
         <span class="trialtitle4"><xsl:apply-templates select='brief_summary/textblock' /></span>
         <span class="trialtitle1">Eligibility: </span>
              <xsl:apply-templates select='eligibility'><xsl:with-param name="type">long</xsl:with-param></xsl:apply-templates>
    </div><!--end of detail middle-->
    </div><!-- end of detail top-->
    <div id="enroll" class="enroll">
    <div id="enrolltophead" class="enrolltophead">
    <H1>Enrollment</H1>
    </div>
    <!-- end of enroll top head-->
    <!-- start of enroll body-->
    <div id="enrollmiddle" class="enrollmiddle">
    <xsl:choose>
                                       <xsl:when test="$status = 'Recruiting'">
         This study has participating centers in a number of locations.
         To take the next step in learning more about participating in this clinical study please call one of these trial contacts.<p/>
         The trial contacts will know this study as <span class="tealbold"><xsl:apply-templates select='//org_study_id'/></span>
         or may know the study under the ClinicalTrials.gov identifier <span class="tealbold"><xsl:apply-templates select='//nct_id'/></span>.<p/>
         <p/>
                                       <xsl:apply-templates select='overall_contact'/>
                                       <xsl:for-each select="location">
                                            <xsl:call-template name='location'/><p/>
                                       </xsl:for-each>
                                       </xsl:when>
                                       <xsl:otherwise>
         This study is not currently Recruiting, it is <xsl:value-of select="$status" />.
                                       </xsl:otherwise>
                                       </xsl:choose>
    </div><!--end of enroll middle-->
    </div><!-- end of enroll -->
    <div id="credit" class="credit">
    <div id="credittophead" class="credittophead">
    <H1>Credits</H1>
    </div>
    <!-- end of credit top head-->
    <!-- start of credit body-->
    <div id="creditmiddle" class="creditmiddle">
                                  Information about this trial has been gathered from ClinicalTrials.gov. Please see
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=http://ClinicalTrials.gov
                                       </xsl:attribute>
                                       ClinicalTrials.gov
                                  </a> for more complete information.<p/>
                                  <xsl:apply-templates select='required_header/download_date'/><p/>
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=<xsl:apply-templates select='required_header/url'/>
                                       </xsl:attribute>
                                       <xsl:apply-templates select='required_header/link_text'/>
                                  </a> <p/>
                                  This trial data was last updated on <xsl:apply-templates select='//lastchanged_date'/><p/>
    </div><!--end of credit body-->
    </div><!--end of credit-->
    </body>
    </html>
    </xsl:template>
    <xsl:template match="brief_title">
              <span class="trialtitle"><xsl:value-of select="normalize-space(.)" /></span>
         </xsl:template>
         <xsl:template match="official_title">
              <span class="tealbold">Official Title: </span>     <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="phase">
              <span class="tealbold">Phase: </span> <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="overall_status">
              <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="eligibility">
              <xsl:param name="type" />
              <xsl:choose>
                   <xsl:when test="$type = 'short'">
                        <span class="tealbold">Eligibility: </span> <xsl:call-template name="ages">
                             <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                             <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                        </xsl:call-template>, <xsl:apply-templates select='gender' />
                   </xsl:when>
                   <xsl:when test="$type = 'long'">
                        <span class="trialtitle">Eligibility: </span>
                             <span class="tealbold">Age: </span> <xsl:call-template name="ages">
                                       <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                                       <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                                  </xsl:call-template>
                             <span class="tealbold">Genders Eligible for Study: </span> <xsl:apply-templates select='gender' />
                             <xsl:text>
                             </xsl:text>
                             <span class="tealbold">Eligibility Criteria: </span>
    <xsl:apply-templates select='criteria/textblock' />
                   </xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="gender">
              <xsl:choose>
                   <xsl:when test=". = 'Both'">Male or Female</xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="normalize-space(.)" />
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="overall_contact">
         <span class="trialtitle">Central Contact: </span>
              <xsl:apply-templates select='./first_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./middle_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./last_name' />
              <xsl:apply-templates select='./phone' />
              <xsl:apply-templates select='./email' />
         </xsl:template>
         <xsl:template name="ages">
              <xsl:param name="min" />
              <xsl:param name="max" />
              <xsl:choose>
                   <xsl:when test="($min != '') and ($max != '')">Between <xsl:value-of select="$min" /> and <xsl:value-of select="$max" /></xsl:when>
                   <xsl:when test="($min != '') and ($max = '')"><xsl:value-of select="$min" /> and Above</xsl:when>
                   <xsl:when test="($min = '') and ($max != '')">Under <xsl:value-of select="$max" /></xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="brief_summary/textblock">
              <span class="trialtitle">Trial Description: </span> <xsl:call-template name="substitute">
    <xsl:with-param name="string" select="." />
    </xsl:call-template>
         </xsl:template>
         <xsl:template name="location">
              <span class="trialtitle"><xsl:apply-templates select='.//country' /><xsl:apply-templates select='.//state' /></span>
              <xsl:apply-templates select='./facility/name' /><xsl:apply-templates select='.//city' /><xsl:apply-templates select='.//zip' /><xsl:apply-templates select='.//status' />
              <xsl:apply-templates select='./contact' />
         </xsl:template>
         <xsl:template match="contact">
              <span class="tealbold">Site Contact: </span>
              <xsl:apply-templates select='first_name' />
              <xsl:apply-templates select='middle_name' />
              <xsl:apply-templates select='last_name' />
              <xsl:apply-templates select='phone' />
              <xsl:apply-templates select='email' />
         </xsl:template>
         <xsl:template match="criteria/textblock">
              <xsl:call-template name="substitute">
         <xsl:with-param name="string" select="." />
         </xsl:call-template>     
    </xsl:template>     
         <xsl:template match="facility/name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="country"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="city">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="zip">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="state">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="status">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="first_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="middle_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="last_name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="phone">Phone: <xsl:value-of select="normalize-space(.)" />
    </xsl:template>     
         <xsl:template match="email"><xsl:if test='. != ""'>EMail: <xsl:value-of select="normalize-space(.)" />
    </xsl:if></xsl:template>     
    <xsl:template name="substitute">
    <xsl:param name="string" />
    <xsl:param name="from" select="'&#xA;'" />
    <xsl:param name="to">
    </xsl:param>
    <xsl:choose>
    <xsl:when test="contains($string, $from)">
    <xsl:value-of select="substring-before($string, $from)" />
    <xsl:copy-of select="$to" />
    <xsl:call-template name="substitute">
    <xsl:with-param name="string"
    select="substring-after($string, $from)" />
    <xsl:with-param name="from" select="$from" />
    <xsl:with-param name="to" select="$to" />
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$string" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Please do as early as possible..
    thanks in advance

    Hi I tried with below querry but iam getting an error message?
    SQL> Insert into temp_clob_tab
    2 SELECT XMLELEMENT("soap:Envelope",
    3 XMLATTRIBUTES ('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
    4 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd",
    5 'http://schemas.xmlsoap.org/soap/envelope/' as "xmlns:soap"),
    6 XMLELEMENT("soap:Body"),XMLELEMENT("AddListing",
    7 XMLATTRIBUTES ('http://www.christielites.com' as "xmlns" )),
    8 XMLELEMENT ( "SCOMCODE",a.SCOMCODE), XMLELEMENT ( "SLOCCODE",SLOCCODE),
    9 XMLELEMENT ( "DSTART",DSTART),XMLELEMENT ( "DEND",DEND),XMLELEMENT ( "SECODE",SECODE),
    10 XMLELEMENT ( "IAVAIL",IAVAIL),XMLELEMENT ("IOWNED",IOWNED),XMLELEMENT ("SPOSTTRANS",SPOSTTRANS))
    11 from LiteExchangeAvailablity a;
    SELECT XMLELEMENT("soap:Envelope",
    ERROR at line 2:
    ORA-00932: inconsistent datatypes: expected CLOB got -

  • Converting XML in WML using XSL Processor from XMLParser v2

    When trying to concert an XML doc into WML, it seems like the XSL Processor is removing some WML tags. Below are the XML doc and XSL doc I am using :
    The XML DOC
    <?xml version="1.0"?>
    <ROWSET>
    <ROW id="1">
    <NAME>RestaurantName</NAME>
    <ADDRESS>RestaurantAddress</ADDRESS>
    <PHONE_TYPE>Fixed</PHONE_TYPE>
    <PHONE>0112345678</PHONE>
    <PRICE>60</PRICE>
    <MENU>Salad, Pizza</MENU>
    <DESCRIPTION>Very good restaurant</DESCRIPTION>
    </ROW>
    <ROW id="2">
    <NAME>SecondRestaurantName</NAME>
    <ADDRESS>SecondRestaurantAddress</ADDRESS>
    <PHONE_TYPE>Fixed</PHONE_TYPE>
    <PHONE>0187654321</PHONE>
    <PRICE>60</PRICE>
    <MENU>Salad, Fish</MENU>
    <DESCRIPTION>Godd restaurant</DESCRIPTION>
    </ROW>
    </ROWSET>
    The XSL DOC
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <WML>
    <CARD>
    <xsl:apply-templates/>
    </CARD>
    </WML>
    </xsl:template>
    <xsl:template match="ROWSET">
    <xsl:for-each select="ROW">
    <xsl:value-of select="NAME"/>
    <xsl:value-of select="ADDRESS"/>
    Phone : <xsl:value-of select="PHONE"/>
    Price of the menu : <xsl:value-of select="PRICE"/>
    You can order : <xsl:value-of select="MENU"/>
    <xsl:value-of select="DESCRIPTION"/>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    The
    tag are removed by the XSL Processor ; In fact it seems that any tag contained within <xsl:template match="ROWSET"> and </template> is removed. This does not occurs with other XSL processor (such as lotusxsl).
    Is there something I'm doing wrong ??

    Your examples works correctly for me using the XSLT engine that comes with release 2.0.2.6 of the Oracle XML Parser "v2" for Java.
    Are you working with this latest release?

  • Could not reserve enough space for card marking array

    # java -d64  -Xms1024M -Xmx2048M -version
    Error occurred during initialization of VM
    Could not reserve enough space for card marking array

    You may be running out of swap space.
    I suggest you review this doc first:
    Troubleshooting Java[tm]: Error Occurred During Initialization of VM: Could not reserve enough space for object heap (Doc ID 1260764.1)

  • How to Add Carriage Return After PageBreak using XSL code?

    Hi,
    I have created one RTF Template for Check printing. My requirement is to print check on next page if total number of invoices exceeds certain value.
    I achieved this and used below condition in my RTF Template.
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>=$lpp"><xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
    "lpp" is global variable whose value is set at the start of template. Now i also want to add some space after pagebreak in my Template.
    Like presently, check prints at the top of page, so i want to print it after leaving 9-10 lines blank.
    Can anyone please help me to achieve this?
    Thanks
    Amit

    Hi,
    I tried below syntax but its working only for first page, its not giving space for second page
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>700pt</xsl:attribute></xsl:if>
    I want to combine it with page-break. Like i need specific space only after page break. I tried to combine both, but its not working. Any inputs on these?
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>100pt</xsl:attribute>
    <xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
    Thanks
    Amit
    Edited by: user11982820 on Apr 14, 2010 5:52 AM

  • 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

  • Preserving Line and Tab Spaces in XML File

    Hi all,
    Question is in detail
    I want to preserve spaces in my XML Document.
    XML File is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <desc xml:space = "prserved">          AAA&#xD;
    &#xD;
    Customer Id: [ customer_id ]&#xD;
    Customer Id: [ customer_id ]&#xD;
    Customer Id: [ customer_id ]&#xD;
    Customer Id: [ customer_id ]&#xD;
    Customer Id: [ customer_id ]&#xD;
    </desc>
    Output of the XML File Should be like this
    AAA
    Customer Id: [ customer_id ]
    Customer Id: [ customer_id ]
    Customer Id: [ customer_id ]
    Customer Id: [ customer_id ]
    Customer Id: [ customer_id ]
    i want same output that what you see above, when i am converting xml file to pdf file.
    First, i am generating XML File dynamically
    Second, i am writing XSL File(Predefined)
    Third, Using FOP, i am converting XML to PDF(By Using XSL File)
    Here is My XSL File
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:preserve-space elements="desc"/>
    <xsl:template match="/">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <fo:layout-master-set>
              <fo:simple-page-master master-name="simple">
                   <fo:region-body margin-left = "2cm" margin-right = "2cm" margin-top = "2cm" margin-bottom = "2cm"/>
              </fo:simple-page-master>
         </fo:layout-master-set>
         <fo:page-sequence master-name="simple">
              <fo:flow flow-name="xsl-region-body">
                   <xsl:apply-templates select="desc"/>
              </fo:flow>
         </fo:page-sequence>s
    </fo:root>
    </xsl:template>
    <xsl:template match="desc">
    <fo:block font-weight="bold" color = "brown"><xsl:value-of select="."/></fo:block>
    </xsl:template>
    </xsl:stylesheet>
    i used (space preserving) attributes in XML File and XSL File also. But i am getting below output.
    AAACustomer Id: [ customer_id ]Customer Id: [ customer_id ]Customer Id: [ customer_id ] Customer Id: [ customer_id ]Customer Id: [ customer_id ]
    Please help me.

    Thanks for your Response
    I want to preserve space when i convert xml file to pdf. So we need to use FO
    attributes.
    <fo:block wrap-option="no-wrap" white-space-collapse="false"><xsl:value-of
    select="."/>
    </fo:block>

  • xsl:if test on the element name of the following sibling?

    Hi all. I need to test whether the following sibling of the reference node, is a certain element.
    How can I do it? I need something like
    <xsl:if test="following-sibling='br'">
      <fo:block space-after="10pt">
    </xsl:test>I want XHTML
    elements to become <fo:block>s for FOP, but obviously, the first one just breaks a line, so it should have no "space-after", but subsequent ones leave blank lines, so need 10 (or whatever) points..
    Thanks!

    More delving around got me:
    name(following-sibling::*[position() = 1])For the name of the following element.

Maybe you are looking for

  • MSI GF4 Ti 4200 Td not worked!!

    Hallo I have new computer P4 2GHz, 2 x 512 DDR (266MHz), 80 GB HDD, GF4 Ti4200 128 mB DDR (MSI), MSI 845e Max2 BLR (mth..). Win 98 and Win Me not worked!!! Why????? Win XP and Win2000 running ok.

  • Adding SSD cache to Envy 4t-1000

    Hello, a couple months ago I purchased an Envy 4t-1000 laptop, I have since then installed an additional 4GB of RAM and have began to wonder wether it would be possible to add an SSD (in addition to my current Hard drive). I know Envy laptops can be

  • Oracle BPM Studio with JDK 1.6

    Hi, regarding to the the release notes of the Oracle BPM 10.3.1 (http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/relnotes/release_notes_OracleBPM10gR3.htm) the studio runs now with a JVM 1.6. But after I installed it seems to me that it is st

  • Transmit/AJA/Playback monitor

    Hello, In CS5.5 when i selected "Computer monitor only" in AE it would only display on my computer monitor. When ever i selected AJA it would play thorugh the AJA but with degraded render times. (So i always kept it on "Computer moinitor only" becuas

  • Re installed win xp on presario s3200xp and unable to get updates

    installed xp on presario s3200nx desktop, unable to download sp,s or get any updates. Computer is dragging bad.