XML to HTML help

This is just for a hobby, thanks for any suggestions or help.
Digitech makes guitar multi-effects pedals and they have a public user forum for sharing preset files to simulate a variety of guitar sounds. The particular products I am interested in are older discontinued models RPx400, RP300A and RP300, the RPx400 uses a USB computer interface to store and share preset files as XML data, the older RP300 and RP300A models have the same effects and user controls but lack the computer interface. By viewing the contents of the XML preset file from the newer unit, one can manually enter the preset into the older models. So in the interest of helping to share some guitar sounds among the small user community of these older model discontinued effects pedals, I was interested in creating a XML to HTML preset patch viewer for the RPx400 files so that RP300 and RP300A users could try them out. (I am not affiliated with Digitech at all).
An example preset file from the RPx400 is here:
http://www.digitech.com/soundcomm/patches/RPx400/Queen.r4p
Another line of GNX effects pedals has a preset viewer on the web, based on a different file format, but is a good example of how I would like to display the HTML to be more human-readable:
preset viewer example
So, I am a little familiar with perl and would lean towards using that, and I would want to set it up as a web page on my Tiger G3 with Personal Web Sharing which I have running with a DynDNS static alias to my dynamic IP.
Any pointers on how to set this up would be most appreciated.

Glen Doggett wrote:
Yes, exactly how I would like to set it up, since I'd like to share this patch viewer with others on my Personal Web Sharing server. I understand how to write the perl, but the part about setting up the CGI I'm not sure about,
Any Perl script can run as a CGI. Look for the CGI.pm module, which should always be installed. It is pretty simple. You get the Apache environment in the Perl %ENV hash when your script is run. If handling a POST request, the query comes in on standard input. The CGI.pm module can handle all of this very nicely.
like what directory to put the perl script, does it matter?
Yes. it has to go into your CGI-BIN directory, wherever your Apache configuration has that configured to be. Getting the cgi-bin directory straight is the hardest part of writing a CGI in Perl. This is the #1 reason why PHP is so popular. The default configuration for PHP allows PHP scripts to run in any directory. The default for Perl requires them to be in the cgi-bin directory. That's the only difference - the default setting.
Is there a good reference book or on-line on the Mac-version of CGI how to set it up?
Yes, but there are probably a few hundred. For this, there is nothing Mac about it. Just look for Apache CGI in Perl on UNIX. I have an ancient book on my desk titled "CGI Programming on the World Wide Web" circa 1996. It doesn't have CGI.pm and the screenshots are Netscape on MacOS 7. Still, it is just out of date, nothing in it is wrong per se.
It should be a 5-10 line Perl script, depending on how many comments you write.

Similar Messages

  • Can't search for the term 'XML' in HTML-Help

    Hi!
    I work with RH8HTML (8.0.0.203), Windows Vista Business SP2 and IE 7.0.6002.18005.
    I've created some topics which include the term XML. When I create the HTML-Help, then search for the term XML, I am shown a message that says Help cannot search for that term. But when I create Web-Help, Help can search for it!
    I have checked the Stoplist and the List of ignored words, but XML is not listed.
    Does anybody have an explanation for this strange behaviour?
    Thanks for helping a help author!
    Kind regards,
    Kurt

    Hi all
    I just tested this in RoboHelp 8 and it was fine on my own system. The message Peter saw seems to be the typical "Click cancel to stop the search." I attempted to capture it on my own PC but it flashes by so quickly that it eludes me.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • HELP: JSP + XML + XSLT = HTML?

    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation I had a JSP
    that contained XML tags... they were filled in at runtime and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer. SAXON checked
    for the inline XSL specified and then used that to transform the document
    into HTML.
    It worked well, but there were some other features missing/not documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library that comes with the
    distribution, but it seems to be very finicky. I followed the directions and
    I got it to do a sort of roundabout transformation. But it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly... that is, if I
    don't hard-code the XSL file in the x:xslt element in the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic specific
    elements/tags that I have to include in the XML file that Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't cause too much
    traffic.

    Craig,
    I've since discovered how to do it with the WL Taglibrary... and have
    moved on =)
    It has to do with the EXTREMELY BADLY documented x:xml tag that can
    appear within the x:xslt tag body...
    So the WL Tag Library allows something like the following.
    (Please note, angled brackets are omitted in this post to prevent html
    parsing)
    [x:xslt stylesheet="sheet.xsl"]
    [x:xml]
    Here is the XML to run the sheet on.
    This should have all relevant XML syntax: the PIs, the doctype,
    root elements etc...
    [x:xml]
    [x:xslt]
    And that DOES work. But not very well. WL, a little prematurely
    incorporated versions 1.2 of Xerces and Xalan in their product -- and
    these versions have some irritating bugs.
    Also -- There tag library doesn't copy the source XML across as UTF-8
    .. so a lot of the Japanese I have embedded there (from a DB) gets
    mangled somewhere in their code...
    AND -- If you hammer a little bit on an JSP/XML that uses the WL Tag
    Library (eg clicking refresh lots of times in IE)... I get huge
    amounts of irritating exceptions appearing in the log files.
    NullPointerExceptions
    XSL Parsing Exceptions
    XML Parsing Exceptions
    but completely unpredictably...
    In my eyes.. the WL XML/XSL Tag Library using the incorporated and
    untouchable Xalan and Xerces (v1.2) is virtually unusable.
    What a pain.
    BUT! Apache offers a similar OPEN SOURCE XSL Tag Library available
    here:
    http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
    And it uses the standard, non-weblogic-incorporated, Xerces and Xalan
    (which means you can provide whatever version you want).. and it works
    impressively well.
    It has almost identical performance as the WL Taglib, and without all
    of the bizarre exceptions being thrown.
    And it does proper passing of the character encoding type!
    If only the taglib did caching though =(
    The performance hit over pure JSP is huge. Almost two orders of
    magnitude. On my desktop box I can get around 500Requests/Sec if I am
    returning HTML direct from a JSP... while if I produce XML that gets
    processed by XSL into HTML the Requests/Sec drops to 5!!!!
    Caching. Caching. And more Caching. A lot of DiskIO is going on with
    the XML/XSL/XHTML chain of events.
    I hope this helps!
    I'd be curious as to what you find out as well.
    Dylan Parker
    On 5 Mar 2001 07:20:00 -0800, "Craig Macha"
    <[email protected]> wrote:
    >
    Yep, I feel Dylan's pain.
    I am trying to accomplish the same thing. A JSP page generating
    dynamic XML content and then utilizing an XSLT stylesheet to transform
    all the content into XHTML.
    Does anyone have some examples that show exactly how to accomplish
    this? Can I do this with WLS and the XML taglib that comes with
    it? Or do I have to move on to something like Cocoon to get this
    capability?
    Any insight would be greatly appreciated.
    Thanks,
    Craig Macha
    "Dylan Parker" <[email protected]> wrote:
    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the
    JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation
    I had a JSP
    that contained XML tags... they were filled in at runtime
    and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer.
    SAXON checked
    for the inline XSL specified and then used that to transform
    the document
    into HTML.
    It worked well, but there were some other features missing/not
    documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library
    that comes with the
    distribution, but it seems to be very finicky. I followed
    the directions and
    I got it to do a sort of roundabout transformation. But
    it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp
    (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly...
    that is, if I
    don't hard-code the XSL file in the x:xslt element in
    the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys
    (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and
    transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic
    specific
    elements/tags that I have to include in the XML file that
    Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would
    much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't
    cause too much
    traffic.

  • XML 2 HTML. Please help..

    Is there any standard API / programme(already written) in Java, to convert a HTML document to XML and also XML to HTML.
    Any suggestions, tips, links are appreciated. Please help.
    Thanks in advance,
    Xej.

    Hi!
    For XML to HTML conversion I use XSL transformation utilizing Xalan for Java(xml.apache.org). The other way round is not such an easy task because HTML is a little bit unpredictable with its tag usage. For example a <br> tag as line break is ok for all browsers but it's not well formed XML - in this case it should be
    If HTML is well formed in XML terms it's called XHTML and since that is a XML language you could use XSL for transforming it into another XML document.
    ~k

  • Help on XML+SQL- HTML

    I use the following SP to test transformation of XML and XSL, but the processXML seems didn't work, the result which should be a HTML is XML itself, please help.
    create or replace procedure xslsample is
    p xmlparser.Parser;
    xmldoc xmldom.DOMDocument;
    xmldocnode xmldom.DOMNode;
    proc xslprocessor.Processor;
    ss xslprocessor.Stylesheet;
    xsldoc xmldom.DOMDocument;
    docfrag xmldom.DOMDocumentFragment;
    docfragnode xmldom.DOMNode;
    xslelem xmldom.DOMElement;
    nspace varchar2(50);
    xslcmds xmldom.DOMNodeList;
    xml Clob;
    xsl Clob;
    buffer varchar2(2000);
    begin
    p := xmlparser.newParser;
    xmlparser.setValidationMode(p, FALSE);
    xmlparser.setErrorLog(p, 'c:\err.log');
    xmlparser.setPreserveWhiteSpace(p, TRUE);
    --xmlparser.setBaseDir(p, 'c:\');
    select content into xml from snippet where id=5 ; -- parse xml
    xmlparser.parseClob(p, xml);
    xmldoc := xmlparser.getDocument(p);
    select content into xsl from snippet where id=6; -- parse xsl
    xmlparser.parseClob(p, xsl);
    xsldoc := xmlparser.getDocument(p);
    proc := xslprocessor.newProcessor;
    ss := xslprocessor.newStylesheet(xsldoc, 'c:\iden.xsl');
    -- xmldocnode := xmldom.makeNode(xmldoc);
    xslprocessor.processXSL(proc, ss, xmldoc,buffer);
    -- docfrag :=docfragnode := xmldom.makeNode(docfrag);
    dbms_output.put_line('Writing transformed document');
    -- xmldom.writeToBuffer(docfragnode, buffer);
    dbms_output.put_line(substr(buffer,1,200));
    xslprocessor.freeStyleSheet(ss);
    xslprocessor.freeProcessor(proc);
    -- deal with exceptions
    exception
    when xmldom.INDEX_SIZE_ERR then
    raise_application_error(-20120, 'Index Size error');
    when xmldom.DOMSTRING_SIZE_ERR then
    raise_application_error(-20120, 'String Size error');
    when xmldom.HIERARCHY_REQUEST_ERR then
    raise_application_error(-20120, 'Hierarchy request error');
    when xmldom.WRONG_DOCUMENT_ERR then
    raise_application_error(-20120, 'Wrong doc error');
    when xmldom.INVALID_CHARACTER_ERR then
    raise_application_error(-20120, 'Invalid Char error');
    when xmldom.NO_DATA_ALLOWED_ERR then
    raise_application_error(-20120, 'Nod data allowed error');
    when xmldom.NO_MODIFICATION_ALLOWED_ERR then
    raise_application_error(-20120, 'No mod allowed error');
    when xmldom.NOT_FOUND_ERR then
    raise_application_error(-20120, 'Not found error');
    when xmldom.NOT_SUPPORTED_ERR then
    raise_application_error(-20120, 'Not supported error');
    when xmldom.INUSE_ATTRIBUTE_ERR then
    raise_application_error(-20120, 'In use attr error');
    end xslsample;
    null

    I use the following SP to test transformation of XML and XSL, but the processXML seems didn't work, the result which should be a HTML is XML itself, please help.
    create or replace procedure xslsample is
    p xmlparser.Parser;
    xmldoc xmldom.DOMDocument;
    xmldocnode xmldom.DOMNode;
    proc xslprocessor.Processor;
    ss xslprocessor.Stylesheet;
    xsldoc xmldom.DOMDocument;
    docfrag xmldom.DOMDocumentFragment;
    docfragnode xmldom.DOMNode;
    xslelem xmldom.DOMElement;
    nspace varchar2(50);
    xslcmds xmldom.DOMNodeList;
    xml Clob;
    xsl Clob;
    buffer varchar2(2000);
    begin
    p := xmlparser.newParser;
    xmlparser.setValidationMode(p, FALSE);
    xmlparser.setErrorLog(p, 'c:\err.log');
    xmlparser.setPreserveWhiteSpace(p, TRUE);
    --xmlparser.setBaseDir(p, 'c:\');
    select content into xml from snippet where id=5 ; -- parse xml
    xmlparser.parseClob(p, xml);
    xmldoc := xmlparser.getDocument(p);
    select content into xsl from snippet where id=6; -- parse xsl
    xmlparser.parseClob(p, xsl);
    xsldoc := xmlparser.getDocument(p);
    proc := xslprocessor.newProcessor;
    ss := xslprocessor.newStylesheet(xsldoc, 'c:\iden.xsl');
    -- xmldocnode := xmldom.makeNode(xmldoc);
    xslprocessor.processXSL(proc, ss, xmldoc,buffer);
    -- docfrag :=docfragnode := xmldom.makeNode(docfrag);
    dbms_output.put_line('Writing transformed document');
    -- xmldom.writeToBuffer(docfragnode, buffer);
    dbms_output.put_line(substr(buffer,1,200));
    xslprocessor.freeStyleSheet(ss);
    xslprocessor.freeProcessor(proc);
    -- deal with exceptions
    exception
    when xmldom.INDEX_SIZE_ERR then
    raise_application_error(-20120, 'Index Size error');
    when xmldom.DOMSTRING_SIZE_ERR then
    raise_application_error(-20120, 'String Size error');
    when xmldom.HIERARCHY_REQUEST_ERR then
    raise_application_error(-20120, 'Hierarchy request error');
    when xmldom.WRONG_DOCUMENT_ERR then
    raise_application_error(-20120, 'Wrong doc error');
    when xmldom.INVALID_CHARACTER_ERR then
    raise_application_error(-20120, 'Invalid Char error');
    when xmldom.NO_DATA_ALLOWED_ERR then
    raise_application_error(-20120, 'Nod data allowed error');
    when xmldom.NO_MODIFICATION_ALLOWED_ERR then
    raise_application_error(-20120, 'No mod allowed error');
    when xmldom.NOT_FOUND_ERR then
    raise_application_error(-20120, 'Not found error');
    when xmldom.NOT_SUPPORTED_ERR then
    raise_application_error(-20120, 'Not supported error');
    when xmldom.INUSE_ATTRIBUTE_ERR then
    raise_application_error(-20120, 'In use attr error');
    end xslsample;
    null

  • Error in xml to html transform function in 11g(Help needed urgent)

    We are migrating from 9g to 11g.Code given below is working fine with 9g but giving following error while converting xml to html.
    Error:Exception occurred in XML_TO_HTML :ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00609: Function call with invalid number of arguments in 'position (//USER)'.
    Code :<?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <HTML>
    <BODY>
    <!--begin header-->
    <xsl:for-each select="AMAP_REMMIT_EMP/HEADERS/HEADER">
    <TABLE border="0" cellpadding="0" cellspacing="0" style="padding:1px" width="100%" height="95" bgcolor="#EAEAEA"><font size="6" face="Arial">amdocs </font>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="VENDOR_NAME"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Date: <xsl:value-of select="RUN_DATE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="ADDRESS"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="TAX_ID"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="CITY"/> <xsl:value-of select="ZIP"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Vendor Number: <xsl:value-of select="OSEK_MURSHE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> </TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Fax Number: <xsl:value-of select="FAX"/>
    </TD>
    </TR>
    </TABLE>
    </xsl:for-each>
    <!--end header-->
    <!--begin lines-->
    <p dir="ltr" align="center">
    <span style="font-family: Arial; text-decoration: underline; font-weight: 700">
    Subject: Remittance Advice</span></p>
    <table border="1" cellspacing="1" width="100%" bgcolor="#C0C0C0">
    <tr>
    <th width="20%"><font face="Arial"><b>Invoice Date</b></font></th>
    <th width="20%"><font face="Arial"><b>Invoice Number</b></font></th>
    <th width="40%"><font face="Arial"><b>Description</b></font></th>
    <th width="20%"><font face="Arial"><b><xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/CURRENCY"/> Amount</b></font></th>
    </tr>
    <xsl:for-each select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE">
    <tr>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_DATE"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_NUM"/></td>
    <td width="40%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="DESCRIPTION"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="AMOUNT"/></td>
    </tr>
    </xsl:for-each>
    <tr>
    <td width="80%" bgcolor="#FFFFFF" colspan="3" align="right">
    <b>Total Payment:</b></td>
    <td width="20%" bgcolor="#FFFFFF"><xsl:value-of select="//TOTAL"/></td>
    </tr>
    </table>
    <p dir="ltr" align="left"><span style="font-family: Arial"><font size="2">In accordance with your instructions, this amount will be transferred to your <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES='Y'">
    account number <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/ACCOUNT"/> in bank
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BANK"/> , branch <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BRANCH"/>
    on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES!='Y'">
    account on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/CREDITNOTES/CREDITNOTE/CREDITNOTE>'0'">
    <p>The payment will be credited in two days from the payment date in your account.</p>
    </xsl:if>
    <p>In case this date is not a valid value date in the bank system, the money will be transferred in the next valid value date.</p>
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/NOTES/NOTE/DESCRIPTION"/>
    </font></span></p>
    <TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="50">
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" />Yours sincerely,</TD>
    </TR>
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/COMPANY_NAME"/></TD>
    </TR>
    <!--end lines-->
    <!--end trailer-->
    </TABLE>
    <table cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1; padding: 0" bordercolor="#111111" width="100%">
    <tr>
    <td width="34%">Alert No:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/ALERT_ID"/></td>
    <td width="33%">Environment: <xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/DB_NAME"/></td>
    <td width="33%">Date:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/MAIL_DATE"/></td>
    </tr>
    </table>
    <!--end trailer-->
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    Thanks in advance.

    #1. We need to see the code that is being used to invoke the stylesheet.
    #2. We need to see the document that is being transformed...
    It's most likely a bug in 9g which has been fixed in 11g...

  • Help Please ! -- transform XML to HTML using xslt tag in JSP

    Hello,
    I have problem to do XSL transform in JSP.
    I have an XSL : test.xsl
    I have an XML : test.xml
    In JSP I have:
    <x:xslt media="html" xml="test.xml">
    <x:stylesheet media="html" uri="test.xsl" />
    </x:xslt>
    But It doesn't work the way it suppose to. What is wrong in my code ? I followed the URL http://e-docs.bea.com/wls/docs81/xml/xml_apps.html
    Thanks in advance,
    Christina

    Basically:
        try{
          //Setting up parameters.
          xml=new StreamSource(new File(xmlInput));
          xsl=new StreamSource(new File(xslInput));
          baos=new ByteArrayOutputStream();
          htmlResult=new StreamResult(baos);
          //Transform input(xml, xsl) onto html output.
          TransformerFactory tfactory=TransformerFactory.newInstance();
          Transformer transformer=tfactory.newTransformer(xsl);
          transformer.transform(xml, htmlResult);
          baos.writeTo(out);
          //System.err.println(htmlResult.getOutputStream().toString());
        catch(...){
        }I havent tested and I havent use this for a while, but I hope this can serve as a staring point.
    Regards,
    OO

  • Convert rtf, pdf or doc file to xml or html

    I'm using RichTextEditor from Flex, but I need to
    upload a .doc, .pdf or .rtf file into RichTextEditor. Or maybe a
    way to convert these files to xml or html.... please can you help
    me??

    Flex has no inherent functionality to do doc conversions. You
    are also looking for the ability to convert several different file
    types that might require seperate conversion methods. Also, it is
    important to note that Flex does not have very good HTMl
    functionality. In fact, it has a very limited subsed of HTML tags
    that are allowable and also require some distinct formatting
    requirements. So, if you are trying to convert PDF's and Docs, RTF
    etc, you might have a difficult time trying to get them to diosplay
    in the Flex RTE.
    I have struggled with trying to get a good PDF converter for
    multiple file types. Adobe does have some good server side
    utilities, but budget might be an issue.
    You can find several PDF converters that are server based
    that you migth be able to leverage.
    If you are CF user, Scorpio does have a better integration
    with PDF and LiveCycle services that may help when it is released.
    Good Luck.
    AL

  • Urgent! How to suppress indents in output from (XML , XSL) -- HTML

    I make transformation (XML , XSL) --> HTML using parser v2 of Oracle XDK for Java v 9.2.0.2.0
    I want to generate html in which several tags will follow one after another without new line, and indents.
    Like this
    <html>
    <body>
    <img src="1.jpg"/><img src="2.jpg"/>
    </body>
    </html>
    Only in this case images will be visualized in IE5 together without spaces.
    But xsl-processor is formatting output text: put each tag on new line and make indents for child tags.
    I tried to
    1) eliminate white spaces in xsl
    2) use <xsl:output indent="no"/>
    3) use <xsl:strip-space elements="*"/>
    4) use method setPreserveWhitespace(true/false) of XMLParser (oracle.xml.parser.v2.XMLParser)
    Xsl-processor continue to format output text.
    my xml
    <list>
    <element name="1.jpg" />
    <element name="2.jpg" />
    </list>
    my xsl
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="no"/>
    <xsl:strip-space elements="*"/>
    <xsl:template match="list">
    <html><body>
    <img src="{element[1]/@name}"/><img src="{element[2]/@name}"/>
    </body></html>
    </xsl:template>
    </xsl:stylesheet>
    html-output
    <html>
    <body>
    <img src="1.jpg"/>
    <img src="2.jpg"/>
    </body>
    </html>
    Please help me!

    html-output
    <html>
    <body>
    <img src="1.jpg"/>
    <img src="2.jpg"/>
    </body>
    </html>
    Please help me!

  • How can I convert pdf file to xml or html file.

    Hello
    My English ability is very poor. sorry.
    I want to extract text and image from pdf file.
    so, I try use itext. but.. I can't make what I want .
    I searched pdfbox and jpedal.
    but I can't get my solution.
    Just I want to convert pdf to xml or html(html prefer).
    I think pdfviewer is hint.
    but I can't get full source(in jpedal)
    Plz help.. me.....
    Does anybody solve this problem?

    Stay in your old thread
    [http://forums.sun.com/thread.jspa?threadID=5198647]
    Don't multi/crosspost or your account will be locked.

  • Pdf to xml or html conversion

    i want to convert .pdf to xml or html so that i can make entries in the database.
    any help>???

    there are a number of java libraries that can read PDF files. Once you can read them, you can convert them to xml/html/etc.
    A good list of products can be found at
    http://www.geocities.com/marcoschmidt.geo/java-libraries-pdf.html

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

  • How do I tell the installer to put my html help files in the helpdir symbolic location?

    I used the File>>Print function to create an HTML help file for my application and specified in the VI Properties for the app to use <helpdir>:\ApplicationHelp.HTML as the Help Path. This should pop up the help file when a user selects "Help for This VI" from my custom menu. It works from my development directory because I installed the help files into the help directory manually, but I can't figure out how the get the installer to put the files in the correct location on the target system.  I tried putting them in [LabVIEW 2010 Help] in the Destination View for the Source Files category, but that didn't work.  Anyone know the right way to do this?

    kgarrett88 wrote:
    Hey MrSmith, 
    In LabVIEW 2010 SP1, if open the Project and right click My Computer, you can add the help file as a source. After you have added this file, you can then create an installer. Under the Destination header, you can add your desired destination path. After you have done that, you can go to the Source Files header and add the help file to that destination you created. 
    Hope this helps. Good luck with your application!
    ~kgarrett
    Thank you for the reply! I had already done the steps you suggested, so let me put up some screen shots that should help you understand my issue better. First, I specified the path to the help information on the Documentation screen of the applications Properties:
    Next I had added all the help files (DetectorFT.html and all the .png files) to the source in a virtual folder I named Resources.
    Next, for the release build I specified the files to be Always Included on the Source Files header.
    Next I created a Resource Directory as a destination for the release build.
    Then I specified the Resource directory as the destination for the files for the Release build.
    After creating the Release build, I created an Installer build and told it on the SOurce Files screen to put the help files into the [LabVIEW 2010 Help] directory.
    I had assumed that putting the files in the [LabVIEW 2010 Help] destination would put them into the correct directory when the installer ran.  When I ran the installer on the target system, the ran the application I tried to select the "Help for This VI" tab on the menu, but it was grayed out indicating it could not find the file in the proper location.  So the question I have is, what IS the proper location for the files to be installed to so the the application will find the Help files when it is looking for them at the <helpdir> Symbolic Path location? Thanks again!
    Jim Smith

  • Can I have a Text Search in HTML Help output?

    Hello,
    I'm relatively new to Robohelp and while testing the possible output methods I found that there is no internal text search function available for the Microsoft HTML Help (.chm) file.
    Does anyone know if it is possible to enable this function?
    Thank you
    Holli

    Hi Holli
    Perhaps try creating a brand new window?
    Make sure Microsoft HTML Help is your Primary Layout by right-clicking it in the Single Source Layouts recipe box.
    Then open the Project Set-up pod and create a new window.
    Then in the Single Source Layout recipe, make sure you choose the new window you just created.
    Recompile and check.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Urgent - HTML help merged projects - displaying in the same window

    Hi All,
    Following some recent windows updates I'm experiencing all sorts of problems. My most urgent problems is as follows:
    First off this is all in RH8 and yes I have upgraded to 8.0.2 and project is set to re-build cpd each time.
    So I have a merges project as follows:
    Parent project
         child project 1
         chils project 2 etc
    when I compile an html help project with TOC, and single source window settings on default if I click on a child project it is diaplyued in a separate window. If I then select a different project in the parent project TOC this is also displayed in a different window but the window still has the caption of the previously opened file.
    What I need as  the end result is for my HTML help project output to al display in the same window whether I click on a parent project item, or a child project item.
    Please can somebody advise mne how to do this as I am VERY close to a deadline and as usual it seems RH8 has let me down again.....
    Thanks
    Author Care

    Hi there
    Methinks Colum needs more coffee, because the options he cited have nothing to do with other windows. They have to do with whether the displayed topic synchronizes with the TOC and whether the TOC entry is highlighted.
    I'm thinking it has to do with creating a "Global" window. You change the names of the windows so they include Global.
    The link below has more:
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

Maybe you are looking for

  • Building a dll with labview for CVI

    Hi, I am making some abstract hardware layers for some instruments and i use to work with Labwindows CVI. But i have found ONE instrument, the Instek pst3201 alimentation which is ONLY created with Labview. So i downloaded the 8.6 LV demo and builded

  • "Installing Lion" freeze in Launchpad

    Quick question I hope you can help me with. I tried re-downloading Lion, since I forget to make a boot disc when I initially installed OS Lion. The App store window constantly says "Installing" Lion, but there is now a Progress bar just below the Lau

  • Parental Controls on WRT1900AC

    Hooked this up and love the speed boost at home. Question is: every review said there was an option to set time frames and time limits on devices under Parental Controls. This was one of my main reasons for getting it. Unfortunately it looks like the

  • Ejb-ref element references to other beans

    Hello, Can anyone tell me what ejb references to other beans are for? (ejb-ref element). I am completely missing the point and would be grateful if someone could tell me why I should have the overhead of writing this: <ejb-ref> <ejb-ref-name>ejb/waUs

  • HP Solution Center conflict with Adobe Flash Player

    I have an HP Deskjet F2210 Printer and when I installed the most recent upgrade of Adobe Flashplayer the hp solution center would not open. I uninstalled the flash player and hp solution center. I then reinstalled the solution center and it runs fine