XSL text output problem

Hi:
I was trying to output a text from a XSL with XML file, It seems that it spits out all the values from xml file inbetween all the element tags. But all I really need is just a small chunk of it. Does any one know how to get rid of the extra stuff from the generated text?
Thanks

Cross-posted: http://forum.java.sun.com/thread.jsp?thread=419800&forum=33&message=1860339

Similar Messages

  • Xsl text output help

    I would like to use an xsl transform to output an xml dom tree as a text file.
    I have tried using <xsl:output method="text" media-type="text/plain"/>
    and I use <xsl:text > to output text but my resulting file only contains the following line:
    <?xml version="1.0" encoding="UTF-8"?>
    Anyone know what I am doing wrong?
    Thank you,
    --Elliot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    It should work fine. Just check if template matchings are correct. Seems some xslt problem; post your translator and xml file so somebody can help
    Message was edited by:
    winay

  • XSL disable-output-escaping problem

    When using the Java xslsample example to perform an XSLT transformation, we are trying to generate characters such as '<' in the output stream. However the following code fragment taken from the XSLT working draft:
    <xsl:text disable-output-escaping="yes"><</xsl:text>
    generates &#60; to the output stream.
    Any ideas?
    David
    null

    Never mind! I found the overloaded ProcessXSL member functions that output rather than transform.
    All cool now!

  • Delimited output problem at the time of writing in to text file

    Hi ,
    I am using matrix stayle design for my reports when i am generating reports in delimited format i am getting Delimited output problem(DR.Watson ERROR) at the time of writing in to textfile.

    Hi,
    Try with new desformat delimiteddata which is available with Report 6i patch 11.
    Thanks
    Oracle Reports Team

  • XSL-TEXT: how to import subtemplates in XSL and use xdofx tags?

    Hi,
    I am working on a BI Publisher Report (XML Publisher 5.6.3 in EBS) to generate labels on a label printer. The output needs to be in plain text format, therefore I decided to use the XSL-TEXT template and create my own XSL translation.
    In principle this works pretty fine, but there are two things that worry me a bit:
    1. Does anybody know how I could import other XSL files, like sub-templates in RTF? The problem I have is that I don't know the URI or the sub-template. At the moment I store those other XSL files in the OA_MEDIA folder, but this is not really nice. In RFT you can refer to subtemplates with some xdofx commands... this brings me to my second question:
    2. In RTF templates you can use the Oracle specific XML tags, including the <xdofx:%> and <xdoxslt:%> tags. Does anybody know if and how I can use them in XSL templates?
    Any ideas are highly appreciated!
    regards,
    David.

    Hi Vetsrini,
    1. but what is the absolute path for my subtemplates if I store them in the Template Manager? How can I refer to them?
    This is what the manual says for RTFs:
    >
    Enter the Import Syntax in the Primary Template
    Import the subtemplate to the primary template by entering the following syntax in the
    primary template. The import syntax tells the XML Publisher engine where to find the
    subtemplate RTF in the Template Manager. This syntax may be entered anywhere in the
    template prior to the call-template syntax:
    <?import:xdo://APPCODE.TEMPLATE_CODE.lang.TERR?>
    where
    APPCODE is the Application code you assigned to the subtemplate in the Template
    Manager. For example, if you associated this template with the Receivables application,
    enter "AR".
    TEMPLATE_CODE is the template Code you assigned to the subtemplate in the Template
    Manager. For example, AR_CommonComponents.
    >
    sounds good and easy to me. But I don't have a RTF template. I have just a plain XSLT and those XML Publisher tags do not work there. So how do I get the absolute path of my XSLT templates stored in the Template Manager?
    2. I've included the namespace, no error anymore. But the syntax does not result in actions:
    <xsl:value-of select="xdoxslt:substr((PRODUCT_NAME),1,2)"/>
    {code}
    This does not substring() my string, the full string is returned. But anyway, I don't get an error message anymore. Maybe I just used the wrong XDOXSLT function... I need to search for a list of XDOXSLT functions, but that's not very urgent for now. I think I can do the most with plain XSL and inside the DB itself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • XSL file include problem.

    Hi Friends,
    We are facing problem while include our file inside XSL.
    we have code like below
    <xsl:for-each select="givingLanding/briefPageInclude">
                                  <xsl:variable name="pageUrl" select="pageUrl" />
                                       <xsl:choose>
                                            <xsl:when test="not($pageUrl = '') ">
                                                 <!-- <xi:include href="{$pageUrl}"/> -->
                                                 <xsl:text disable-output-escaping="yes"><#include file="</xsl:text>
                                                 <xsl:value-of disable-output-escaping="yes" select="pageUrl" />
                                                 <xsl:text disable-output-escaping="yes">"></xsl:text>
                                            </xsl:when>
                                       </xsl:choose>
                             </xsl:for-each>Here we tried two ways two attach file but none of them attach the given file. ( here it will render XSL --> XHTML output)
    Can anybody have idea how to include file ? ( in such loop structure)
    Thanks

    It's a little hard to quess what you're trying to do based on the XSLT you posted.
    You can't xsl:include a document whose URL is determined at run time in XSLT. The normal pattern is to generate the stylesheet using XSLT to insert the path, then apply that generated stylesheet.
    In XSLT2 you can fetch a document whose URL is determined at run time, and operate on that, if that's what you're trying to do. See the [document function|http://www.w3.org/TR/xslt#document]
    XSLT questions are better asked on the [Mulberry XSL list |http://www.mulberrytech.com/xsl/xsl-list/].

  • CPU usage while generating text output from reports

    hi
    while we attempt to generate the text (delimited) output from reports and when the query fetches more than 1500 rows, the cpu usage stays around 100% for long time paralysing the operation...
    we faced the problem when we attempted to generate text output for around 10000 records.
    any suggestions?
    ravi kumar chandran

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

  • Creating a text output using XML Publisher

    Hi All,
    Recently i created a  report for my client using XMl Publisher. The Data Definition was XML and the template type was RTF and i got the output in a PDF format. All was going smoothly until the client decided at the last moment that they wanted to print this in a dot matrix printer!
    I've read some articles on XSL- Text layout templates. But i can't get my head around it (I'm Functio-Technical as opposed to Techno-Functional )
    How do i convert my RTF template to give me a text output?
    Miranga

    From what I know, you will have to create another template based on "XSL" layout or eText layout (both of them require different coding methods). The RTF can not create text outputs even in 11g. This is based on my experience so far. You can create RTF output (available by default) based on the current layout that you use for PDF and see if it can be printed in a dot matrix printer though.

  • Open Text output of a Report in Excel  - Bad format

    Hi All,
    We have a report in Oracle Apps 11i(11.5.10) with Text as output format. We would like to open the file in Excel format.
    We have done the recommended setups from the metalink note ID 316752.1.
    Output is generated in Excel, but the format is not proper. Column level data is not displayed on Cell wise in the Excel, instead all the output is
    dispalyed in single column in the Excel.
    Any pointers on how to format the output to align each column in the output to the individual cell in the Excel.
    Or else.. how to generate the output to Excel file?
    Regards,
    Ram

    user504044 wrote:
    Helios,
    Kind regards for the reply.
    I have surfed all the notes. My problem is.. I can open the text output in Excel. But the format is bad.
    Output is nor properly alinged to the cells in the Excel.
    And being the report is .RDF, any way we can do on the format?Hi Ram,
    1. Are you using XML publisher to get the excel output?
    2. If yes did you set the layout to excel when you run the concurrent request on the SRS screen?
    Thanks
    Shailendra
    >
    Regards,
    Ram

  • Generating TEXT output from RTF template/reports

    Hi ,
    We have been working with XML Publisher for a long time now.. and we have come across some requirements such as
    1. Page break in TXT report output
    2. Page Headers after every 'X' lines in TEXT output.
    This was easily achieved with RTF template and PDF/HTML/RTF output, but not with TEXT output in eTEXT template.
    So we started looking into two approaches
    1. Generate TXT from PDF/RTF/HTML output(generated from RTF template), though it will addon to the time, but we are looking for this approach. We are looking for some JAVA api's which can help us to extract text from PDF/HTML/RTF while preserving the format.
    2. Pass the TXT generated by eTEXT template to our custom util , which will split the report in diff. pages.This will get complex as we recieve more and more reports.
    We have also tried hacking the RTF parser used in XML P so as to get a TXT output or using XSL-FO objects in eTEXT parser, but we could not get anything of our help.
    Does anyone have any pointers in this.
    regards
    Gaurav

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

  • Executing a native process and getting the text output

    Hi,
    I have the following problem.
    When I execute a native DOS process (lets say a batch file), and
    expect some text output from this process I use the following code:
    String command = "test.bat";
    Process process = runtime.exec(command);
    BufferedReader rd = new BufferedReader(new InputStreamReader(process.getInputStream()));
    String s = new String();
    while((s = rd.readLine())!=null) {
         out.println(s + "<br/>" );
    The problem is that as long as rd.readLine() does not return null, the page does not display the result. When the process crash, sometimes nothing return.
    I would like to display the output as it comes, i.e. line by line.
    I have no clue on how to do that except writting the output in a text file, and reading the text file with a page that reload every x seconds.
    I do not beleive this is a good solution.
    Additionaly, I may have a huge output. It seems to make the process
    to hang. Is there a was to fix it.
    Could someone give me some hints.
    Regards,
    Arnaud.

    I am having the same problem...did you ever solve it?

  • XSL disable-output-escaping

    Hi,
    I have the next part of an XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <idiomas>
         <element>
              <titol><![CDATA[Angl�s]]></titol>
              <url>/google.com</url>
              <alt><![CDATA[Change to Angl�s]]></alt>
              <language>en</language>
         </element>
    </idiomas>
    I want to obtain the next html code transforming the XML with an XSL to HTML code:
    <a title="Canviar a Castell�">Castellano </a>
    <a title="Change to Angl�s">Angl�s </a>
    but I obtain the next one:
    <a title="Canviar a Castell�">Castellano</a>
    <a title="Change to Angl�s">Angl�s</a>
    because I don't know HOW CAN I MAKE THE "disable-output-escaping" in elements like href, title, lang or xml:lang
    It seems that the "disable-output-escaping" only is available for xsl:value-of and xsl:text
    This is part of 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:output method="html" version="4.0" encoding="UTF-8" indent="yes"/>
    <a href="{url" title="{alt" tabindex="80" lang="{language}" xml:lang="{language}">
         <xsl:value-of select="titol" disable-output-escaping="yes"/>
    </a>
    Anyone know how can I "disable-output-escaping" in elements accessed as {url}, {alt} ...
    Thanks in advance.
    Xavi
    Message was edited by:
    ffelipei_
    Message was edited by:
    ffelipei_

    First of all thanks for answer the question.
    You are right, the forum software has changed the text I wrote.
    I don't know how can explain what I want to said, but I will try.
    In my question I wrote:
    I want to obtain the next html code transforming the XML with an XSL to HTML code:
    <a title="Canviar a Castell�">Castellano </a>
    <a title="Change to Angl�s">Angl�s </a>
    but I obtain the next one:
    <a title="Canviar a Castell�">Castellano</a>
    <a title="Change to Angl�s">Angl�s</a>
    This text is partially ok.
    The two first lines of HTML are ok. The other two are ok partially, because the title attribute has been escaped.
    I will use the next symbol "_" following the ampersand "&" to prevent escaping of forum software.
    The last lines would be:
    <a title="Canviar a Castell&_amp;agrave;">Castellano</a>
    <a title="Canviar a Angl&_amp;egrave;s">Angl&_egrave;s</a>
    In the title I obtain after xsl transformation a "double encoding of entities".
    Thanks

  • XSL:Text img ... Breaks in transformation

    Hi
    I am sure this is a nobrainer. I am using Java to transform an XML document on the server. What I want to do however is to transform values to a corresponding image on the server. eg Database has value 2 stored. The XSL style sheet then transfroms this to <img src="2">.
    I am using the following
    <td class="tableText"><xsl:text><img src="</xsl:text><xsl:value-of select="PRICE"/><xsl:text>"></xsl:text>I have tried using the disable-output-escaping flag and it doesn't seem to make much difference. If I substitute < for < then this is treated as text by the browser. I am sure I am being stupid so please stop me going mad.

    What you have shown there is not even valid XML, as you are not allowed to have the character < in an attribute. You have to escape it by typing &lt; instead. However, your comments "If I substitute < for < ..." indicate that you probably haven't shown what you actually have, because you don't know how to type the input so that it displays correctly in HTML.
    To get a < character, you must type "&lt;". And if you want to see "&lt;" you must type "&amp;lt;".
    So try again, and show us what you actually have.

  • xsl:text not preserving whitespace

    When I try to use <xsl:text> to put spaces into the output of a transform, it does'nt work. Leading/trailing spaces gets stripped and a single space by itself gets dropped altogether.
    This is using the PL/SQL XSLT on an XMLType in 9.0.2.
    If I run the same transform on the same data but using XALAN XSLT it works fine.

    Was that supposed to read:
    <xsl:text>& amp;#xa0;</xsl:text>?
    (I added whitespace so you could see the ampersand, but that's not a non-breaking space, that's an actual printable character.
    I later found a solution that worked in this thread:
    Cannot get to print NEWLINE in XMLTransform using XSLT
    Posted: May 2, 2007 10:16 AM
    Cannot get to print NEWLINE in XMLTransform using XSLT
    Thanks,
    Eric

  • SQL data transformed by XSL-TEXT template

    Hi,
    please, how can I transform data retrived by SQL query using XSL-TEXT template (need to generate text file using rpad/lpad XSL function)? There is no problem if the data set is 'XML file', with setting the data set as SQL querry I'm lost..
    Thanks for all replies.
    Rad

    Hi,
    problem solved by using data template.
    Rad

Maybe you are looking for

  • Transfer of Production Version

    Hi Gurus, i am trying to transfer the Production Versions of a Material to an other System via IDoc. I am using BD10 for transfering.. The relevant Segment E1MKALM in MATMAS05 is filled with all data from the source. But in the Target Systen tge Prod

  • Calendar Meeting Invite from Outlook 2010 to iCal

    Hello, I am very VERY new to Macs and to be honest Calendar invites in general (Came from a Lotus Domino environment). I have come across an oddity that I am almost sure is related to the content of the .ICS file generated by Outlook and then sent to

  • Using MPEG Streamclip for Mac. Help me if you can

    Hi, I've found out about MPEG Streamclip in Apple Discussions. I opened Streamclip for the first time and converted an .mpg file to .mov file by clicking File>Export to Quicktime. It successfully converted quickly and I opened it w/ Quicktime and was

  • How can I access the Edit preferences performance use Graphics Processor option through the jsx scri

    I want to runa a script with and without GPU options. I made an actionto click on the Edit>Preferences>Performace>use graphics processor checkbox. But now I want to check wether the checkbox is ticked or not to determine i should use it for a with GP

  • Listing my contacts by the last name

    Right now my Droid phone lists all the contacts by the first name.  It is in sync with my google email contacts that are listed by the last name.  Can I change this so the contacts are listed by last name on my Motorola Droid.  I know I can easily do