Xslt to rtf question

hi all,
is it possible to seed a data/process from an xslt file to an rtf file? if so, can anyone give me documents or point me to the right place where i can learn this.
thanks
allen

thanks, sorry about that. I was not satisfied with the output results.
Now I found the reason why the above stylesheet was not generating wanted results.
Stylesheet is correct. The reason is that I transformed generated fo document into a
W3 Document, then transform it again into a xml String, fo tags are lost during this process.
The results I want should look like the following:
<fo:block> Paradise Lost</fo:block>

Similar Messages

  • XSLT for RTF's  ?

    Hi Experts
    This is regarding a specific scenario where I have to generate RTF files as reports on the output side of an interface invoving SAP Xi 3.0
    the scenario is as follows
    SAP XI receives data from an Outbound proxy and the files that have to be created are of the nature : 5 .txt and 5 .csv and 5 .RTF's ,  we have planned to use multi maping but i have two main questions
    a) Can we use just one mapping for .txt and .csv files , since the source data is the same and both formats are almost the same , and one mapping seperately for RTF formats ??
    Since we plan to create these 15 files only at the adapter level so i think File Content Conversion will be the main player
    b) Do we have to use XSLT mapping for creating report files in RTF format ?? is the normal File adapter shipped with XI 3.0 unable to cater to this ..???
    I am new to XSLT so wanted to know how difficult is it ...and the creation of these  RTF files ...considering the fields in the mapping are just 7 ..which need to be written on to RTF files
    Kindly help
    Thanks
    Dev

    Hi Dev,
    >>However it would be great if you can help me with some links on XSLT mapping specific to creating RTF documents
    or otherwise
    Try google, but just for start you can see these links
    http://articles.techrepublic.com.com/5100-22_11-5078001.html
    http://p2p.wrox.com/xslt/46457-xslt-rtf.html
    >>I mean how can we use the same in receiver determination to create RTF format documents
    Did you mean interface mapping used in Interface determination?? You need to use this XSLT mapping in the receiver communication channel... On how to call the XSLT mapping in receiver channel refer these blogs:
    https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]
    Regards
    Suraj

  • Very simple XSLT string replacing question

    Hi,
    This is a really simple question for you guys, but it took me long, and i still couldn't solve it.
    I just want to remove all spaces from a node inside an XML file.
    XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <root insertedtime="2008-05-01T14:03:00.000+10:00" pkid="23421">
       <books>
          <book type='fiction'>
             <author>John Smith</author>
             <title>Book title</title>
             <year>2 0  0 8</year>
          </book>
       </books>
    </root>in the 'year' node, the value should not contain any spaces, that's the reason why i need to remove spaces using XSLT. Apart from removing space, i also need to make sure that the 'year' node has a non-empty value. Here's the XSLT:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
        <xsl:strip-space elements="*"/>
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="//books/book[@type='fiction']">
            <xsl:copy>
                <xsl:apply-templates select="@*"/>
                <xsl:attribute name="id">101</xsl:attribute>
                <xsl:call-template name="emptyCheck">
                    <xsl:with-param name="val" select="year"/>
                    <xsl:with-param name="type" select="@type"/>
                    <xsl:with-param name="copy" select="'true'"/>
                </xsl:call-template>
                <xsl:value-of select="translate(year, ' ', '')"/>
            </xsl:copy>
        </xsl:template>
        <!-- emptyCheck checks if a string is an empty string -->
        <xsl:template name="emptyCheck">
            <xsl:param name="val"/>
            <xsl:param name="type"/>
            <xsl:param name="copy"/>
            <xsl:if test="boolean($copy)">
                <xsl:apply-templates select="node()"/>
            </xsl:if>
            <xsl:if test="string-length($val) = 0 ">
                <exception description="Type {$type} value cannot be empty"/>
            </xsl:if>
        </xsl:template>
    </xsl:stylesheet>The 'emptyCheck' function works fine, but the space replacing is not working, this is the result after the transform:
    <?xml version="1.0" encoding="utf-8"?>
    <root insertedtime="2008-05-01T14:03:00.000+10:00" pkid="23421">
       <books>
          <book type="fiction" id="101">
             <author>John Smith</author>
             <title>Book title</title>
             <year>2 0 0 8</year>2008</book>
       </books>
    </root>The spaced year value is still there, the no-space year is added outside the 'year' tags'
    anyone can help me, your help is extremely appreciated!
    Thanks!

    You should add a template for 'year' :<xsl:template match="year">
    <year><xsl:value-of select="translate(.,' ','')"/></year>
    </xsl:template>and remove the translate call in the 'book' template.
    It would be better to add a 'priority' attribute at each template so it would be explicit which template to use because match="@*|node()" could be interpreted by another transform engine as the unique template to be used !

  • XSLT with RTF

    Anyone written out a table of contents before with XSLT & xml.
    I have a document with many sections, want a TOC entry for each section
    for some reason this code does not work properly no output. But if i take away the tc & tcn tags it prints out the value. Please help
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>
    <xsl:template match="/">
    <xsl:text>{\rtf1</xsl:text>
    <xsl:text>{\tc-</xsl:text>
    <xsl:for-each select="Proposal/Section">     
    <xsl:text>{\tcn-</xsl:text>
              <xsl:value-of select="Name"/>
    <xsl:text>}</xsl:text>          
    </xsl:for-each>
    <xsl:text>}</xsl:text>
    <xsl:text>}</xsl:text>
    </xsl:template>
    </xsl:stylesheet>

    The last line doesn't produce intented output. But if we read from file, as in last-but-one line, it works fine. I sense some deliberation of being cryptic, "intended output".
    Is there something wrong in directly converting from source?There should not be.
    But the problem can be looked from this angle: namely, the last line is done without the intervention of an intermediate step of passing through an identity transformation and reloading whereas the last-but-one line does.
    You can do this so that you can check the output now coincide with the "intended output" or not.
    //start from your first two lines
    javax.xml.transform.Transformer transformer = tFactory.newTransformer();
    DOMSource source=new DOMSource(doc);
    DOMResult domresult=new DOMResult();
    Document doc2=null;
    DOMSource source2=null
    transformer.transform(source, domresult);
    doc2=(Document)domresult.getNode();
    source2=new DOMSource(doc2);
    //your line
    transformer = tFactory.newTransformer(new StreamSource(new StringReader(XSLT))); // XSLT is XSLT String.
    // Does it work fine (according to your sense) now?
    //This should produce the same output as your last-but-one line being your "intended output" without passing through saving and reloading physical file and all done in memory.
    transformer.transform(source2, new StreamResult(new FileOutputStream("C:\\tmp2692xslt.xml")));Edited by: tsuji on Feb 29, 2012 7:19 AM
    Edited by: tsuji on Feb 29, 2012 10:03 PM (edited another typos on naming of variable result/domresult, sorry!)

  • XSLT Beginner's question

    One XML documents should be inserted as a subnode of the another one. Both are strings in ABAP. How to do this simple ? Thanks"!

    Hi Boskovic
    I think you try to transform ABAP data to XML. If so I suggest following way to set nodes in XLM file.
    1. Create class with the required format.
       For example you can put Sales Order Header information in one parent node in XML.
       Then you can put all sales order item information as sub nodes for the parent node.
       To do so you have to declare 2 itabs in your class. One for header and second is for items.
    2. Populate itabs in class implementation.
    3. create object reference for your class now.
    4. CALL TRANSFORMATION statement with your class object reference.
       Now source is ABAP data. Result is XML.
    5. I think this will meet your requirement.
    If not Please explain your question more next.
    Bala
    Note: Award points in helpful.

  • JEditorPane, RTF question

    Is it possible to save a StyledDocument which contains embedded images? The reason that I ask is that there was a post somewhere that said that the document would save but would not be able to save the images within it!
    Any advice would be great!
    Thanks

    Hey bbritta,
    Thanks, that did it. I guess it helps to read the docs more!!

  • OSB XSLT trasformations with input parameter

    Hi,
    how can I pass input parameters at XSLT trasformation in Assign activity?
    Thk
    L.

    Hi checked these links, but I didn't solve my problems :-(.
    I have this xslt resource:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
    <xsl:template match="/">
         <xsl:param name="in_stringSearch"/>
         <fields>
              <xsl:for-each select="//*[starts-with(text(),$in_stringSearch)]">
                   <field>
                        <xsl:for-each select="ancestor-or-self::*">
                             <xsl:text>/</xsl:text>
                                  <xsl:value-of select="$in_stringSearch"/>
                             </xsl:for-each>
                   </field>
              </xsl:for-each>
         </fields>
    </xsl:template>
    </xsl:stylesheet
    I created an assign activity, in the expression field I selected xslt resource and linked above xslt resource, my question is, how I can pass 'in_stringSearch' to xslt from assign?
    Thk
    L.
    Edited by: user8874385 on 7-gen-2011 4.12
    Edited by: user8874385 on 7-gen-2011 4.13

  • Printing : Multiple XSLT

    One more question on printing. I know that this is not directly related to ApEX, but this seems to be the only place where I get good responses :-) (thanks).
    How can we specify which XSLT to use in the JSP. For example, I can see that htmldb_example.xslt is hardcoded in the JSP. I have different XSLT for different report regions and formats. ( i have already created the separate XSLT, and it is working with FOP and am able to render the PDFs). All I want now is to specify which XSLT to use for which region. Do I have to define separate JSP files for each combination ? Or is there any way to take the XSLT name from a parameter. ( Am sorry that I don:t work on javascript / xml / xsl.., I had adapted on the very good example jsp and xslt, hence the question )

    It depends how the print spool is set up for your device, combining multiple jobs into a single job then it won't necessarily understand to eject the 'unused' page. Some software will send a multi-copy print run as a series of individual jobs, some will send it as one.

  • Converting to text/xml

    Hi,
    I get this error in sxmb_moni: "Delivery Exception: invalid content type for SOAP:TEXT/HTML."
    I have set the ContentType with the messageTransformBean in the SOAP receiver adapter. but I also need to set parameter "Do not use SOAP envelope", add the SOAP envelope in mapping (e.g with a simple XSLT).
    my question is how/where i set the soap envelope in my xslt mapping? the request (source) is an external definition of type .xsd. should I put the soap envelope here:
    xmlns="urn:sap-com:document:sap:rfc:functions/soap-envelope"
    targetNamespace="urn:sap-com:document:sap:rfc:functions/soap-envelope
    thanks

    >
    Sonny Chaos wrote:
    > Hi,
    > I get this error in sxmb_moni: "Delivery Exception: invalid content type for SOAP:TEXT/HTML."
    >
    > I have set the ContentType with the messageTransformBean in the SOAP receiver adapter. but I also need to set parameter "Do not use SOAP envelope", add the SOAP envelope in mapping (e.g with a simple XSLT).
    >
    > my question is how/where i set the soap envelope in my xslt mapping? the request (source) is an external definition of type .xsd. should I put the soap envelope here:
    > xmlns="urn:sap-com:document:sap:rfc:functions/soap-envelope"
    > targetNamespace="urn:sap-com:document:sap:rfc:functions/soap-envelope
    >
    > thanks
    Refer my blog - /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

  • XML and database of documents

    Please help to a newcomer to XML:
    I intend to create XML based database of documents and present
    it on Web.
    Documents are of fixed structure however few elements will be up
    to ;K of size. They will be static.
    Total size of a document is less then 4K, expect some 10,000+
    entries ?
    Need to
    - Search in DB by keywords and also support free search in
    documents. Once found and selected,full document is displayed.
    - Create discussion topic with threads, where contributions may
    have pointers to selected elements of these documents and these
    links are higlighted.
    Please advise how to work on it and also how to handle inserts
    into DB.
    - Should one store the whole documents including element tags as
    CLOB ?
    Data will be prepared from scratch so my though is to
    prepare some templates to be used by a XML editor to prepare
    XML files. Create DTD (or use an existing one) and use parser
    (which one is suitable?) to validate correctness.
    Q1: Some elements ttheoreticallyv ask for being handled as
    attributes. There are, however some 50+ possible values and I
    donFt think a DTD should be prepared to handle this by itself!
    Is this appropirate ?
    Q2: How to insert data ? Are there tools available or should
    one process data using Java or PL/SQL and then insert into
    appropriate tables?
    Q3: Use interMedia to search DB, then XSQL to retrieve relevant
    data and present via XSL ?
    Thanks !
    Peter
    null

    Hi,
    Thank you for your answer,
    Actually this is the way I'm doing the merge process today: using Java code with DOM to merge all documents to one XML document.
    I'm looking for ways to not using the DOM parsing becasue it is very expensive in CPU and memory (DOM is the worst XML parser in a performance point of view).
    SAX parsing is also not appropriate because the merge process that I need to do is vey complicated.
    This is the reason why I thought of using XSLT.
    My question is if XSLT can do the work or is it way off?
    Thanks,

  • IOS 8 Pages app crashes a lot, dictation VERY bad now. Any solutions?

    With the upgrade to iOS 8 on my iPad Mini, the current version of the Pages app crashes quite frequently and this isn't solved by a hard reboot. Dictation is extraordinarily bad and crashes more than the app itself does.
    My primary hope is that Apple will see this post (and others like it) and get around to fixing the app so I don't have to pay $19 for a tech support fee to register my complaint about bugginess, just to have them tell me that, 'there's nothing they can do until the app gets updated, but thanks for the $19 bucks.' Regrettably when a Pages app update a year or two ago caused the user to have to hit the delete key constantly to remove automatic double-spacing, an Apple support rep told me that was how it is supposed to work. (Later it was repaired.)
    My question to which I expect no actual answer is, Can this be repaired with the current version of iOS and Pages?
    My second question is, What are the best, most reliable apps for creating RTF files on an iPad which don't have the performance problems of Apple's own Pages app?

    James-
    Thanks for the solid reply! You have been helpful and I understand why you have answered my points as you have. Here's a little more info so my original questions might make more sense and you can see why I have been helped but I still have issues.
    I had done the iPad reset numerous times. It doesn't really do anything to change the behavior of the Pages app. Some documents just seem to crash repeatedly. And this happens without regard as to whether or not I'm trying to use dictation at the time.
    Deleting and reinstalling the app could be a problem if what I have read about others using Pages in iOS 8 is accurate. I have read that there is a problem with the Pages files being properly backed up to the cloud. I can't afford to lose documents and I'd hate to have a delete and reinstall add a new level of problems.
    While my problems may not be widespread among your colleagues, I have read about them on several blogs and here in the Apple community, though I don't spend a lot of time here. So, maybe not widespread, but I don't think "rare" either.
    My problem with dictation crashing does seem to be widespread enough that I found several threads about it (after this post) and found that the workaround is to press the Return key prior to each dictation, then just go back and clean up all the unnecessary returns. This is working for now, but it's tedious.
    As for the RTF question, my workflow is to type up scripts on my iPad and share (via email) with others as Word or RTF files. The reason for my question was/is to solicit input from others here regarding their favorite RTF capable apps. While I can certainly find many of these apps myself, using the iTunes store search, suggestions from happy users is generally a good place to start. If there are no suggestions, I'll certainly download and try a number of them myself.
    Thanks again for your role in this community and reaching out to offer assistance to someone you've never met.

  • Xslt graph in a rtf template. Can an external variable be used inside the graph definition?

    I'm working with BI Publisher 10g, building an rtf template that would display a table and a graph by iterating on one of the xml tags from the input file.
    I got the table working using am xslt variable set when the xml tag associated value changes (DATAGROUPID).
    <?for-each:(/DATA/SITE/SITE_DATA)?> <?sort:DATAGROUPID;'ascending';data-type='number'?>
    <?xdoxslt:set_variable($_XDOCTX,'SITE',DATAGROUPID)?>
    <?for-each:(/DATA//DIMS/LOCALES[LOCALE = 'en']/TEXT)?><?sort:DIMNAME;'ascending';data-type='text'?>
    <?xdoxslt:set_variable($_XDOCTX,'DIMID',DIMID)?>
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    <?end for-each?>
    chart:
    <Graph seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_VERT_PERCENT" autoLayout="AL_AS_NEEDED">
    <LegendArea visible="true" automaticPlacement="AP_NEVER" position="LAP_BOTTOM"/>
    <SeriesItems>
    <Series id="0" color="#FF0000"/>
    <Series id="1" color="#FFFF00"/>
    <Series id="2" color="#00FF00"/>
    </SeriesItems>
    <MarkerText visible="true" markerTextPlace="MTP_CENTER">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    <Y1ViewFormat>
    <ViewFormat decimalDigit="0" decimalSeparatorUsed="true" decimalDigitUsed="true"/>
    </Y1ViewFormat>
    </MarkerText>
    <LegendText>
    <GraphFont name="Arial" size="20" bold="false" italic="false" underline="false"/>
    </LegendText>
    <Y1TickLabel>
    <GraphFont name="Arial" size="12" bold="false" italic="false" underline="false"/>
    </Y1TickLabel>
    <O1TickLabel wordWrapEnabled="false" tickLabelStaggered="false">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    </O1TickLabel>
    <LocalGridData colCount="{count(xdoxslt:group(/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM, 'DIMID'))}" rowCount="3">
    <RowLabels>
    <Label>Unfavorable        </Label>
    <Label>Neutral</Label>
    <Label>Favorable</Label>
    </RowLabels>
    <ColLabels>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Label>
    <xsl:value-of select="DIMNAME"/>
    </Label>
    </xsl:for-each>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PUNFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PNEU != 0]/PNEU"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>
    <?end for-each?>
    So, on the table this line gets the correct variable from the input file:
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    How can I replicate that logic inside the table definition?
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    Input data looks like this:
    <DATA>
    - <SITE>
    - <SITE_DATA> 
    <DATAGROUPID>1032817</DATAGROUPID>  
    <DATAGROUPNAME>My Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>88</PFAV>  
    <PNEU>13</PNEU>  
    <PUNFAV>0</PUNFAV>
    - <ITEM> 
    <ITEMID>40</ITEMID>  
    <PFAV>100</PFAV>  
    <PNEU>0</PNEU>  
    <PUNFAV>0</PUNFAV>  
    </ITEM>
    </DIM>
    </YEAR>
    </SITE_DATA>
    - <SITE_DATA> 
    <DATAGROUPID>1032816</DATAGROUPID>  
    <DATAGROUPNAME>Your Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>71</PFAV>  
    <PNEU>25</PNEU>  
    <PUNFAV>4</PUNFAV>  
    I can include a complete sample on request, I thought this would be enough to illustrate the issue.
    I'll appreciate any help you can provide.

    I kept researching, I found some possible solution in this blog:
    https://blogs.oracle.com/xmlpublisher/category/Oracle/Templates/RTF
    so, I created a local SITE variable inside every cell to get the external SITE info:
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:variable name="SITE" select="{xdoxslt:get_variable($_XDOCTX,'SITE')}"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA[DATAGROUPID = $SITE]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PFAV"/>
    </Cell>
    but I get this error at run time:
    oracle.xdo.parser.v2.XPathException: Error in expression: '{xdoxslt:get_variable($_XDOCTX,'SITE')}'.
        at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
        at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
        ... 14 more
    What am I doing wrong?

  • Question about JSP, XSLT and JDOM

    hi, folks. Let's say within page1.jsp, i have <jsp:include page="page2.jsp" flush="true"> On the other hand, i have a servlet helper class which queries the database, then converts the ResultSet object into a JDOM Document object. My question is i want to make the transformed output of the JDOM Document and XSLT template to be a partial content of the page2.jsp page. How can i get this done properly? I have no problem of doing the transformation, but just dont know how to concatenate the output with the rest content of page2.jsp. Hope i clearly explained the question. Any advice is greatly appreciated.
    //code fragment on page2.jsp
    <td valign="top" width="788">
        <font size="3"><br>  
            <p>
           //i want put the transformed results here
           </p>
         </font>
    </td>

    this is a fragment of my testing program, which transform direct to response output stream. but i dont want put this bounch of java code within page2.jsp. do i some other way around to get it done?
    Document myDocument = createDocument();
                   TransformerFactory tFactory = TransformerFactory.newInstance();
                // Make the input sources for the XML and XSLT documents
                org.jdom.output.DOMOutputter outputter = new org.jdom.output.DOMOutputter();
                org.w3c.dom.Document domDocument = outputter.output(myDocument);
                javax.xml.transform.Source xmlSource = new javax.xml.transform.dom.DOMSource(domDocument);
                StreamSource xsltSource = new StreamSource(new FileInputStream("d:/tomcat/webapps/project/car.xsl"));
            //Make the output result for the finished document
                StreamResult xmlResult = new StreamResult(response.getOutputStream());
                //StreamResult xmlResult = new StreamResult(System.out);
            //Get a XSLT transformer
            Transformer transformer = tFactory.newTransformer(xsltSource);
            //do the transform
                transformer.transform(xmlSource, xmlResult);

  • XSLT, XML Question???

    I've recently found that I can use XSLT to transform XML docs into SQL using x-path... Is there any documentation out there referencing a transformation using x-query???? I've searched the web but have not seem much on this...
    Any direction would be greatly appreciated.

    XSLT doesn't use XQuery. So it's not surprising you haven't found much documentation about using XQuery in XSLT. You might want to direct questions like this one to an XSLT forum rather than a Java forum.

  • XSLT mapping for 856 question

    Ramesh,
    I hate to keep bugging everyone but i have another question.
    I am trying to transform data into an X-12 856 document (outbound). I have most of the looping and everything working. My only issue is how do you handle the parent child relationships in the HL01/02 ? Since xpath does not let you increment a variable how can you keep the count of the HL loops let alone tell the HL02 (parent's HL01) We are using a SOPI scenario and the items need to be subordinate to the appopriate pack level.
    I really appreciate all the time and awnsers you have given me so far :)
    Thank you in advance,
    Jaden

    Is there a tutorial on how to use the XSLT Data Mapper? I can't seem to find it, I'm using JDeveloper 11g preview 2. I ran the studio version 10.1.3.1.0, but I can't find it either.
    I found a document on XSLT Data Mapper, but it seems like they are for WSDL mapping. Is it possible to map between two XMLs/XSD?
    http://download.oracle.com/docs/cd/E10291_01/doc.1013/e10295/xslt_mpr.htm#BABBCIAI

Maybe you are looking for

  • My monitor is not recognized correctly before I'm logged in.

    I have a Dell U24H14 monitor. Connected with a Mini DP to DP port cable. In preferences I've set the monitors to extends. Not duplicate. This is al working just fine. BUT: When I boot my MacBook, with the monitor connected, half way during the boot p

  • How can I transfer a project to my iPad to continue editing in the imovie app?

    I have created a project on my macbook in imovie and want to transfer it to my ipad to continue editing.  This way, I don't have to travel with my laptop, I can take my ipad instead.  I have tried several methods, but nothing seems to work.  I've pub

  • Using 2 catsearch in where clause

    Hi all, I have problem using 2 catsearch in where clause, am not sure if there is any solution this. i have created a simple test data as below:- -- Test Code create table cust_catalog ( id number(16), firstname varchar2(80), surname varchar2(80), bi

  • Employee number is mandatory at item level

    Dear experts I want employee nuber mandatory at item level at the time of saving order , pls give me ur suggestion while customising incomplition log.  pls help me out Regards vikas

  • Cannot open layers in trial of elements 10...help

    Hi, I am unable to open layers in the trial version of elements 10...is this correct and if so it's bloody useless as a trial as i want to use it for smart filters with viveza...any ideas...thanks!! angus