Problem in formatting with XSLT

Hi -
I am using xslt to format my xml file. Below is teh code that i worte. The structure and teh xslt file are both shown below. The airport has an attribute called name. The problem is while displaying the text in the record element, I should also display the airport name. Can you please let me know how to do this? The code that I used in my xslt which is <xsl:value-of select="root/state/city/airport/@apt_ident" />
prints the same value for all the records.
<root>
     <state>
          <city>
               <airport>
                    <record/>
                    <record/>
                    <record/>
               <airport/>
               <airport>
                    <record/>
                    <record/>
                    <record/>
               <airport/>
          </city>
          <city>
               <airport/>
                    <record/>
                    <record/>
                    <record/>
               <airport/>
               <airport>
                    <record/>
                    <record/>
                    <record/>
               <airport/>
          </city>
     </state>
     <state>
     </state>
     <state>
     </state>
</root>
// The xslt file
<xsl:template match="/">
  <html>
  <body>
  <table border="1" bordercolor="white" cellspacing="0" width="100%" style="font-family: Tahoma; font-size: 8pt;" >
  <th align="Left">Airport ID</th>
  <th align="Left">Title1</th>
  <th align="Left">Title 2</th>
     <xsl:for-each select="root/state_code">
     <xsl:for-each select="./city_name">
     <xsl:for-each select="./airport_name">
     <xsl:for-each select="./record">
<tr>          <td><xsl:value-of select="root/state/city/airport/@apt_ident" /></td>
          <td><xsl:value-of select="chart" /></td>
          <td><xsl:value-of select="flight" /></td>
</tr>
     </xsl:for-each>
     </xsl:for-each>
     </xsl:for-each>
     </xsl:for-each>
     </table>
     </body>
     </html>
</xsl:template>

Ok...I think you have a little bit bigger issue...I am not sure (cause I didn't test it), but I do not think you need to do the nested loops..Once you loop over state you have a elements of "state" available for you to manipulate.
try this (and I apologize if it is wrong)
<xsl:template match="/"> 
<html> 
<body> 
<table border="1" bordercolor="white" cellspacing="0" width="100%" style="font-family: Tahoma; font-size: 8pt;" > 
<th align="Left">Airport ID</th> 
<th align="Left">Title1</th> 
<th align="Left">Title 2</th>     
<xsl:for-each select="root/state_code">
<tr>     
<td><xsl:value-of select="state/city/airport/@apt_ident" /></td>
<td><xsl:value-of select="chart" /></td>
<td><xsl:value-of select="flight" /></td></tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>

Similar Messages

  • Problem in working with xslt filter

    Hi All,
    I have created some XSLT filters to display the XML file as the HTML. It was working fine before. but suddenly there's an error.
    After applying the XSLT filter to the content. When i clicked on the content to see the output it is throwing " 500 INTERNAL SERVER ERROR -- Contact System Administrator ".
    I tried to find the error in the log : Below is the log for the same::
    Error##Plain###Cannot instantiate user <anonymous>#
    #1.5#0011254E4B6500460000001F00001C0800044066D387C4F6#1196710286640#com.sapportals.wcm.WcmException#sap.com/irj#com.sapportals.wcm.WcmException.WcmException(118)#IntranetApprover#35##idbportst_TST_3777850#IntranetApprover#01477b00a1d511dc8c660011254e4b65#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain###Error downloading from URL: wcm://etc/filter/idbfilters/author.xsl, No user in context com.sapportals.wcm.util.urlcontentaccess.URLContentAccessException: Error downloading from URL: wcm://etc/filter/idbfilters/author.xsl, No user in context
    at com.sapportals.wcm.util.urlcontentaccess.URLContentAccess.readContent(URLContentAccess.java:263)
    at com.sapportals.wcm.util.urlcontentaccess.URLContentAccess.readContent(URLContentAccess.java:281)
    at com.sapportals.wcm.service.pipeline.producer.ProducerFromUrl.getData(ProducerFromUrl.java:54)
    at com.sapportals.wcm.service.pipeline.processor.XSLTProcessor.process(XSLTProcessor.java:141)
    at com.sapportals.wcm.service.pipeline.Pipeline.handle(Pipeline.java:269)
    at com.sapportals.wcm.service.pipeline.XSLTPipeline.handle(XSLTPipeline.java:118)
    at com.sapportals.wcm.service.pipeline.XSLTPipeline.handle(XSLTPipeline.java:134)
    at com.sapportals.wcm.repository.filter.xslt.XsltFilter.getContent(XsltFilter.java:150)
    at com.sapportals.wcm.repository.filter.xslt.XsltFilter.getInputStream(XsltFilter.java:90)
    at com.sapportals.wcm.repository.runtime.CmFilterHandler$VaryingContentWrapper1.getInputStream(CmFilterHandler.java:1050)
    at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:113)
    at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:132)
    at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.internalHandle(WDGetHandler.java:364)
    at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handle(WDGetHandler.java:253)
    at com.sapportals.wcm.protocol.webdav.server.WDServlet.doGet(WDServlet.java:777)
    at com.sapportals.wcm.protocol.webdav.server.WDServlet.service(WDServlet.java:458)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:331)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    can anyone please help me in this regard, it is very urgent.
    Thanks in advance,
    Kavitha.

    unaswered

  • Problem with portlets with XSLT generating dynamic portal compatible links

    Hi,
    We're using XSLT to transform XML data to HTML in a portlet. The problem is that
    the XML contains headlines and we need to create links to the complete article,
    which has to be displayed in the same portlet. How do I create a portal comaptible
    link with XSLT? In the JSP you can use the netui tag library like:
    <netui:anchor action="..">
    link
    <netui:parameter name="id" value="{id}"/>
    </netui:anchor>
    but how can I achieve this with XSLT? We tried generating the xsl with a jsp,
    but this doesn't work since the data entered in the value attribute of the netui:parameter
    tag will be encoded causing the XSL transformer to fail.
    Is there an easy solution to this? Or can XSLT only be used with very simple content?
    Ard

    We're trying to display some news headlines, clicking a headline has to invoke
    an action to display the complete article in the same portlet (using pageflow).
    When displaying the articles we use XSLT like (this is a JSP generating XSLT):
    <?xml version="1.0"?>
    <%@ page contentType="text/x-xslt"%>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <xsl:template match="items">
    <xsl:apply-templates select="item"/>
    </xsl:template>
    <xsl:template match="item">
    <nobr>
    <%-- ###### Here we need an action link, with the title as a request parameter
    ###### --%>
    <xsl:value-of select="@title"/>
    </nobr>
    </xsl:template>
    </xsl:stylesheet>
    The XML is like:
    <items>
    <item title="some title"/>
    <item title="some other title"/>
    </items>
    We need to generate a portal compatible link which invokes an action (show_details)
    with the title of the article as a request parameter.
    I know how to do this in a JSP, but since the data is in XML we like to do this
    with XSLT.
    Can you help?
    Subbu Allamaraju <subbuATBeaDOTCom> wrote:
    Could you elaborate (perhaps with some xsl snippet generated by jsp)
    the
    failures you were getting with xslt?
    Subbu
    Ard van der Scheer wrote:
    Hi,
    We're using XSLT to transform XML data to HTML in a portlet. The problemis that
    the XML contains headlines and we need to create links to the completearticle,
    which has to be displayed in the same portlet. How do I create a portalcomaptible
    link with XSLT? In the JSP you can use the netui tag library like:
    <netui:anchor action="..">
    link
    <netui:parameter name="id" value="{id}"/>
    </netui:anchor>
    but how can I achieve this with XSLT? We tried generating the xsl witha jsp,
    but this doesn't work since the data entered in the value attributeof the netui:parameter
    tag will be encoded causing the XSL transformer to fail.
    Is there an easy solution to this? Or can XSLT only be used with verysimple content?
    Ard

  • I am trying to print keynote slides in handout format with notes.  The notes cutoff.  Is there a solution to this problem?

    I am trying to print keynote slides in handout format with notes.  The notes are cut-off.  Is there a solution to this problem?

    You can also turn off the automatic capitalization if you find it gets in the way too often: 
    Settings -> Keyboard -> Auto-Capitalization
    Regards.

  • I bought the production premium , cs6 , and I download it and registered with out any problem , I formatted my computer then I downloaded the collection , now everything else working only after effect is not working , what shall i do

    I bought the production premium , cs6 , and I download it and registered with out any problem , I formatted my computer then I downloaded the collection , now everything else working only after effect is not working , what shall i do

    did ae install without problem? check the install logs to be sure (Troubleshoot with install logs | CS5, CS5.5, CS6, CC)
    if it did, what do you see when clicking the executable?

  • Quicktime pro -I have exported two mp4 to web formats with no problems.  all of a sudden it is now stopping and shutting down.  I am on a pc with windows 7  Help!

    Quicktime pro -I have exported two mp4 to web formats with no problems.  all of a sudden it is now stopping and shutting down.  I am on a pc with windows 7  Help!

    Is the problem limited to a specific file that you're exporting?

  • Facebook network in GraphML  format (using XSLT)

    hello,
    facebook developer platform provides a java api that allows us to extract friends list into java List of friends ids.
    my goal is to find a way to format facebook friends list data into GraphML format.this graphml file will be used to draw a Graph .
    I think using XSLT is the best solution to produce this graphml format.
    my xslt skills are very basic , so i need help to write a xslt style sheet file that takes as input the xml list of facebook friends ids and produce as output the graphml file of this friends facebook list.
    i would also appreciate any other suggestion to solve above described problem.
    thanks.

    Here is the error messages from PTSpy:
    The gist seems to be a connection to the host is not able to be made for some reason.
    196 06-14 12:30:06 Warn WebDownloaderParallel.dll 2696 2640 WebDownloaderParallelCommon.cpp(34) Error in CPTHttpRequestParallel::get_Response. The request is not yet finished. The request failed to connect to the host for an unknown reason..
    197 06-14 12:30:06 Warn Common Library 2696 2640 PTCommon.cpp(977) ***SetError *** (0x80044f65): The request is not yet finished. The request failed to connect to the host for an unknown reason.
    198 06-14 12:30:06 Warn Gadget Providers 2696 2640 HttpGadgetProviderObject.cpp(891) Warning in CHttpGadgetProvider::raw_GetHTMLText : the response object could not be created. The error reported was 0x80044f65
    199 06-14 12:30:06 Warn Common Library 2696 2640 PTCommon.cpp(977) ***SetError *** (0x80044633): Error in CHttpGadgetProvider::raw_GetHTMLText, The Portal Server could not retrieve the content for this gadget because of a connection error with the host. If this problem persists, please alert a system administrator.

  • Unwanted Default Formatting with import XML

    I have a problem of unwanted default formatting with import XML. Under InDesign CS6, I  import XML with merge mode.
    One frame is difficult to apply with the placeholder, I should put the XML element A inside by hand. InDesign automatically applies the character style of the child element B to the following text in element A.
    I tried the steps of this article http://indesignsecrets.com/fixing-unwanted-default-formatting.php/comment-page-1#comment-5 62875
    But it doesn't work for me.
    Dose anyone have an idea? Thanks.

    Kasyan, I agree with you!
    So this is what i did in xslt.
    First I added the following namespace to the stylesheet.
    xmlns:file="http://www.jclark.com/xt/java/java.io.File"
    This is not supported by indesign, you have to do this with a parser. I used saxon to parse the xml.
    And this is the part for the existing file lookup.
    If the file exists the image is placed as a href, if it doesn't exist i put the name of the image between brackets. In this case we can see in which image doesn't exist.
    <xsl:choose>
         <xsl:when test="file:exists(file:new(string($imagefile)))">                                         
              <xsl:element name="Articleimage">
                   <xsl:attribute name="href">file://../images/<xsl:value-of select="Properties/Property[@field = 9]"/></xsl:attribute>
              </xsl:element>
          </xsl:when>
          <xsl:otherwise>
              <xsl:text>[</xsl:text><xsl:value-of select="Properties/Property[@field = 9]"/><xsl:text>]</xsl:text>
          </xsl:otherwise>
    </xsl:choose>
    I hope it helps for others.
    Good luck!
    Glen

  • Can SAX be used with XSLT

    I'm having Java memory problems with 8.1.7 when using a large
    XML file and creating a XML DOM. One solution I may have found
    is to use SAX which will create seperate trees for each
    ROWSET/ROW instead of building the entire tree in memory like
    DOM. But I can't figure out how to use SAX with XSLT. I want
    each record written to the same text file using a XSLT
    template. Anyone know how to do this?

    The solution can be found in the XMLLoader application written
    by Steven Muench, in his book "Building Oracle XML
    Applications". It is also somewhere online under the book's
    O'Reilly pages but I don't have the exact URL.
    The solution is basically that the SAX model is used to parse
    the large file and build a DOM tree as each node is
    encountered. When the SAX model detects the closing tag of a
    subdocument (probably what would be in your <ROWSET></ROWSET>
    tags) then the current DOM tree is used to perform the proper
    database operation. Then the SAX parser goes on with life until
    it finds the next complete subdocument, etc. Pretty slick.
    XMLLoader takes as an argument, the stylesheet you want to apply
    to the data, so you can transform your XML data into something
    that now has the Oracle canonical format on the fly.
    There are numerous posts in this newsgroup regarding XMLLoader,
    and Muench regularly answers questions here as well.
    Good luck!
    Mike

  • Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls

    We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue.  I can give you the responses to your questions you have requested in that thread:
    Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
    Version of the .NET Framework - MS .NET Framework 3.5 SP1
    How did you deploy? - Installed CR 2008 SP1 runtime with msi package
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
    How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
    Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
    CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
    CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
    We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
    Please let me know if you need anything additional.
    Phil
    "Invalid export DLL or export format" with Crystal Reports 2008
    Posted: Sep 27, 2008 12:36 AM       E-mail this message      Reply 
    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    Exporting a Crystal Report to Excel or RTF format
    .NET application using the Crystal Reports 2008 runtime (version 12.0)
    error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    Server Operating System
    Version of the .NET Framework
    How did you deploy?
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    How many libpng10.dll files are on your system? List all instances.
    Any additional comments
    What We Know
    The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
    This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.

    Hi,
    I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
    Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
    So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Crpe32.dll        3/1/2008 version 12.0.0.683
    Crxf_xls.dll       3/1/2008 version 12.0.0.683
    Crxf_rtf.dll         3/1/2008 version 12.0.0.683
    crdb_oracle.dll  3/1/2008 version 12.0.0.683
    libpng10.dll       3/1/2008 version 1.0.30.0             122880 bytes
    There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
    Oracle 11.1.0.6 is the DB for the reports.
    Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
    Any idea to fix this issue?
    Thanks
    Kin H Chan

  • How can i create a printable format with Java

    Hello....
    First, my english is not good, but this is possibly my last hope!! I have a program with EJB's, JBoos and a MySql database! The program shows the data from the database and you can do something with these data. Now my problem to print this data. I want create a formular which will be print! I've treid ut with docbook and the javax.print library.
    The first problem is: with linux docbook works very fine. I transform the sgml-file in many formats with "db2pdf or db2ps......"
    but the javax.print library don't find any printservice! I've J2EE 1.4.1 where the bug canceld from the earlier version!
    So the next problem is: with windows the javax.print library works fine! I find the printservices and can print *.ps or *.pdf! But i can't transform the sgml-file in Postscipt or PDF!
    I've tried to solve this problem for two weeks now, but without any success.
    Now my Question is: have somebody experiences with this problem and can help me or is there another possibility to solve my problem!!!
    Thanks
    FIPS

    seems to be important!
    k, do this.
    1. ur english is wonderful for a programmer, are u US :)
    2. i will suggest u create an XML file.
    then u can print it and do the hell with it.
    so : java ==> XML ==> what ever u want.
    and if u can also what ever u want ==> XML ==> java.
    this works also fine.

  • Possible with XSLT mapping?

    Hi,
    I have source xml structure of format
    <Header fld1 fld2 fld3
    fld4 fld5 fld6  ><line   fld7 fld8 fld9 </line></header>
    Header occurence is 1---unbounded
    and line occurence is 0---unbounded
    and line items can exist or not for some header items.for some headers items can be single or multiple.
    I get xml files on sender side and need to convert to flat files ,so I am using sender file CC on sender and receiver file CC with FCC on the receiver side.
    I am able to get with receiver file FCC ,I know FCC can support two level heirarchies only.
    header1
    header2
    header3
    header n
    line x
    line y
    line z
    line n
    so i dont know to which header values the item values belong to.I need to get
    this structure
    header1....(if no items)
    header2....(let say 2 items)
    linex
    liney
    header3...(no items)
    header4....(one item)
    linez
    header n.....(again no items)
    so I have another Xi guy,he told me that we can achieve this by using a XSLT mapping rather than gaphical mapping which I am using now.
    so can we get the structure what I wanted with XSLT mapping or is it nothing with mapping and it is with adapter?(I think its nothing with mapping)
    I know we may get the required output structure by writing a module program and call that in the receiver file adapter.
    suggestions please.
    thank you,
    regards,
    Babu

    udo,
    sorry if I put in confusion with my structures of both source and target.I am trying to give little eloberate
    I have source  xml data like this.
    <Header1 fld1=1234 fld2="name1" fld3='SAP1"
    fld4='000" fld5=0 fld6="sdn1"</header>...............no line items here
    <Header2 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value1 fld8=value2 fld9=value3 /line><line fld7=value4 fld8=value5 fld9=value6 /line></header>.....two line items here
    <Header3 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value7 fld8=value8 fld9=value9 /line></header>......one line item here
    Header4 fld1=12345 fld2="name2" fld3='SAP2"
    fld4='0006" fld5=01 fld6="sdn2"</header>.......no line items here
    I want target flat file structure like this considering "~" (tild)as delimiter
    1234name1SAP100000~sdn1 ...................> flatfile values for header1(no item values for this header1)
    123nameSAP000~sdn..........................> flat file values for hader2
    value1value2value3...........................>line item values for header2
    value4value5value6...........................>line item values for header2(two line item values for this header2)   
    123nameSAP000~sdn..........................>values for hader3
    value7value8value9...........................>line item values for header3(one item values for this header3)
    12345name2SAP2000601~sdn2..................>values for header4(no item values for this header4)
    ................... like for n header values.

  • Using transform api with xslt and DOM Nodes

    Hi,
    when trying to transform a xml document with xslt using the javax.xml.transform api
    providing an element node of a previously parsed document, I find that absolute
    paths are not recognized.
    The following program shows what I am basically doing (the class can be executed
    on the command line providing a stylesheet and xml instance):
    import java.io.*;
    import org.w3c.dom.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import javax.xml.parsers.*;
    class Transform {
    public static void main(String [] args) throws Exception {
         TransformerFactory tfactory = TransformerFactory.newInstance();
         Transformer transformer = tfactory.newTransformer(new StreamSource(args[0]));
         DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder parser = dfactory.newDocumentBuilder();
         Document doc = parser.parse(args[1]);
         Element domElem = doc.getDocumentElement();
         // workaround
    //     StringWriter out = new StringWriter();
    //     Transformer id = tfactory.newTransformer();
    //     id.transform(new DOMSource(domElem),new StreamResult(out));
    //     String xml = out.toString();
    //     transformer.transform(new StreamSource(new StringReader(xml)), new StreamResult(System.out));
         transformer.transform(new DOMSource(domElem), new StreamResult(System.out));
    transformer.clearParameters();
    If I use this on e.g.
    xsl:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output indent="yes" encoding="ISO-8859-1" method="xml"/>
    <xsl:template match="/">
    <xsl:value-of select="/foo/bar"/>
    </xsl:template>
    </xsl:stylesheet>
    xml:
    <foo>abc<bar>def</bar></foo>
    I get
    <?xml version="1.0" encoding="ISO-8859-1"?>
    abcdef
    instead of
    <?xml version="1.0" encoding="ISO-8859-1"?>
    def
    I think this is due to the fact, that the transformation does not recognize
    any absolutely adressed xpath correctly.
    From what I read in the API docs, I think what I'm doing should be ok.
    So: did I misunderstand something or is this a bug in the java libraries?
    I'm using j2sdk 1.4.1_01 on i386 linux.
    If I use the commented code (serializing the xml and doing the transformation
    with a StreamSource, that has to be parsed again), everything's fine.
    Of course it would be easier to parse the file directly in the example but in the
    real program, I already have a dom tree and want to transform a part of it.
    Any help appreciated.
    Thanks, Morus

    why?
    that's all the point of XSL: define what part of your
    XML you want in your XSL templates, there is no need
    to prepare a sub-DOM of your DOM.
    Ok. Right. That's an alternative.
    The problem remains, that there are some stylesheets originally written
    for the current solution and though they should work with the whole document
    as well, it's not certain.
    Actually I don't know if this ever worked. I did neither write this code nor maintained the system so far.
    btw. you would be faster by giving a StreamSource to
    your transformation.Probably yes. But that would imply to rewrite a lot of code.
    What is happening is:
    there is a SOAP answser containing a xml document as the result parameter.
    The SOAP answer is parsed (I guess by the soap classes already) and the
    result xml is extracted. That's where the element node I'm trying to transform
    stems from.
    Besides, I still don't see why DOMSource takes any node if only document nodes
    work.
    Thanks, Morus

  • Problem in working with Video

    I have problem in working with Opening and editing video
    When I tried to open :
    Could not complete your request , because it is not right kind of document [ for every format of video ]
    When I import as video :
    it creates as many layers as there are frames in the video
    Please help
    Thank you

    Video is like Image formats, but on steroids. Also, many formats, such as AVI can have 100's of different CODEC's inside them. It is almost like having a JPEG, that contains a TGA, or a TIFF, or a PCX, or any number of what we see as other formats. It can be daunting, but let's start at the beginning.
    For a discussion on formats, such as AVI, MOV, WMV, etc., see this article: http://forums.adobe.com/thread/440037?tstart=0
    As CODEC's are the "building blocks" of AV files, this article is good too: http://forums.adobe.com/thread/546811?tstart=0
    As you see from that first link, the format is just a "wrapper," and can contain all sorts of "stuff." That FAQ Entry will tell you how to "peek inside" the wrapper. That is what we need, as Mylenium asks. If you can let us know all about the faulting files, maybe someone can help you.
    Also, PS has somewhat limited Video support, both on Decode and Encode, so, and depending on what you have, you might have to convert that/those file(s).
    Good luck,
    Hunt

  • Issue with xslt transform

    I'm having a problem with xslt transformations.
    I'm sending a DOMDocument to be transformed into a varchar2. The transformation was into html and I was then printing the returning varchar2 to a web page, along the lines of...
    htp.prn(Xslt.transform(domdoc, xslt.stylesheet( l_stylesheet_bfile)));
    I subsequently broke the varchar2 32k limit so I started playing with transforming into a dom instead of a varchar, then writing the dom to a clob and the printing the clob to the web page in 32k chunks.
    I noticed this produced different results than the first method. Now I'm assuming that this is not because xslt is doing the transformations differently but because it's trying to put my html into a well-formed DOMdocument. I have noticed, though, that things like & #160; seemed to have disappeared.
    Just wondering if I'm doing something wrong, and also any reason why the transform functionality doesn't have an output option of CLOB?
    Thanks
    Jason

    What is the DB version?

Maybe you are looking for