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

Similar Messages

  • 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

  • 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

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

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

  • 'Format Payment Instructions with Text Output' program ending in error

    Hi All,
    'Format Payment Instructions with Text Output' program of the payment cycle is completing in to error.
    error is:
    length of the output - baos::4914
    After formatting, periodicSeq is null or empty.{}
    length of the output - baos::4914
    Exit: iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCommon()
    Saving format output.
    Enter: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
    Querying file system output attributes
    ppDir: null
    ppExt: null
    ppPre: null
    File system output settings that override the concurrent program default: {}
    Exit: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
    Enter: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
    Concurrent request output file name: /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/out/o19301342.out
    Opened file in append mode: /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/out/o19301342.out
    Exit: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
    Enter: iby.scheduler.FDExtractAndFormatting.saveFormatOutput()
    Nov 25, 2009 7:59:16 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.ApplicationModuleCreateException: JBO-25222: Unable to create application module.;
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModuleInternal(OAApplicationModuleFactory.java:476)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModule(OAApplicationModuleFactory.java:608)
    at oracle.apps.iby.util.OAAttachmentServerUtilsWrapper.<init>(OAAttachmentServerUtilsWrapper.java:35)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.saveFormatOutput(FDExtractAndFormatting.java:450)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:421)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:251)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    ## Detail 0 ##
    oracle.adf.mds.exception.MDSRuntimeException: Unable to load metamodel definition because the mmd file file:/NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml is invalid.
    /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml (No such file or directory)
    at oracle.adf.mds.internal.ElementData.<init>(ElementData.java:113)
    at oracle.adf.mds.internal.MElementImpl.<init>(MElementImpl.java:480)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.getSubstitution(JBODefManagerHelper.java:240)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.getSubstitution(JBODefManagerHelper.java:178)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.listBindings(JBODefManagerHelper.java:124)
    at oracle.adf.mds.jbo.JBODefManager.listBindings(JBODefManager.java:100)
    at javax.naming.InitialContext.listBindings(InitialContext.java:406)
    at oracle.jbo.mom.DefinitionManager.findSubstituteName(DefinitionManager.java:451)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:411)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:358)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:340)
    at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:700)
    at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)
    at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:401)
    at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModuleInternal(OAApplicationModuleFactory.java:428)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModule(OAApplicationModuleFactory.java:608)
    at oracle.apps.iby.util.OAAttachmentServerUtilsWrapper.<init>(OAAttachmentServerUtilsWrapper.java:35)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.saveFormatOutput(FDExtractAndFormatting.java:450)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:421)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:251)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    An error occurred. Roll back any changes.
    Done roll back changes.
    Request completed in error.
    Has anybody came across this error. If yes, what needs to be done to resolve this error?
    Thanks in advance for your help.
    Thanks Again,
    Sachin

    Hi,
    oracle.adf.mds.exception.MDSRuntimeException: Unable to load metamodel definition because the mmd file file:/NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml is invalid. Please see if (Note: 556812.1 - R12 Error When Running The Payment Format: JRADElementList.xml is Invalid) is applicable.
    Regards,
    Hussein

  • 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

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

  • 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

  • My phone does not show contact names for country and area code while having in coming calls. Although, I have endorsed the name with numbers. How do I the problem. My one is a iphone 3s device with updated os. Please text to help

    My iphone does not recognize saved contact number while having incoming calls due to country and area code as auto prefix. How do i fix the problem. How do i ensure that the phone recognize calls with and without the country and area code. Please text to help.

    1) Open the Phone and dial *228. This is a Verizon over-the-air programming number.
    2) When the system answer press 1 for "Program or activate your phone"
    3) Wait for the call to disconnect. You should get a prompt stating something like, "Settings updated."
    4) Open the Task Manager and kill the Phone, Message, and Contacts Applications
    5) Wait a few minutes (I waited 3 just to be extra safe)
    6) Open the Message App to verify the fix

  • HT4623 updated "successfully" to iOS7 on my 4S but now it takes FOREVER to recognize each keystroke - even to type in passcode.  also takes forever to type a single key in text.  HELP.

    updated "successfully" to iOS7 on my 4S but now it takes FOREVER to recognize each keystroke - even to type in passcode.  also takes forever to type a single key in text.  HELP.

    Adjusting the date or time didn't do anything for me either. I'm guessing my two options are to either do the full restore from scratch and not apply any backup ... Or possibly wait for an iOS update that might resolve this issue.
    I'm not that much of an avid twitter user that I need it implemented natively in all my devices - so for now I'll probably value all my game save data, internal settings in apps e.t.c. over that functionality (or over the amount of work it would be to get me back to where I am now after a full wipe). I'll see what happens after the next iOS delta update. I'll reevaluate the full wipe after that if the issue hasn't been resolved

  • 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

  • Xsl:text

    xsl:text elements always are shown as errors in xslt. It appears that the dtd being used by JDeveloper is wrong. Can someone at Oracle respond to this and tell me either where a good dtd is, and how to get jdeveloper to recognize it, or when a patch will be available. Incorrectly flagging xsl:text is making the syntax validation within the code editor useless.
    TIA,

    In JDeveloper 10g <xsl:text> gets added.
    Which Jdev version produces xsl:text error?

Maybe you are looking for

  • How to use one stream by two or more threads?

    Hey guys, i have got a little problem and do not know how to solve it. i hope you guys can are able to help me. i have opened a bluetooth socket connection. now i want to use these streams by three or more threads. one thread should only read from an

  • "Send" button not working in Mail

    Picked up Leopard on an iMac two days ago. Some of the time when I compose a new email, Mail works fine--I click "send" once I'm through typing and out it goes. Other times--like this morning--I try to send an email and the "send" button is transpare

  • Website search engine

    Hello, I was wondering how to build a search engine to search inside a website like the Yahoo shopping website has with the possibility to select a department and have the product from the search displayed on a nice page? http://shopping.yahoo.com/ A

  • What is the best way to update flash for my ipad?

    J

  • Hellp Boot Camp

    I have one. question I have macbook with Mac OS 10.6 and I wanted to install windous. I opened butkamp for partition and he wrote to me that he can not share the drive and offered me to erase the Mac. and my question is if I install the Mavericks wak