Xsl generate html comment

How can xsl generate comment on the final html document??

My XSLT reference (Michael Kay's book XSLT Programmer's Reference) is at work at the moment, so I don't know if this answer is correct. You might find one of the many XSLT tutorial sites on the Internet and find out what the xsl:comment element does.

Similar Messages

  • How to make the auto generated java script not to have any html comments.

    Hello BEA Experts, As you know that auto generated javascript functions like getNetuiTagNames in Workshop are included with in the the HTML comment tags like <b><!--
    --!></b> its another thing they should be generated correctly as follows <b><!--
    //--!></b>, to hide it from browsers not supporting javascript.
    My question is there any way to stop generation of the HTML comment tags and just genrate the javascript with in teh script elements..
    Please let me know..
    Thanks in advance..
    -Bob F.

    Not sure if this is an application question or if you are trying to hook into Crystal Reports parameter UI? If the later then no option other than report design. If an application then I can move this to the Java Forums.
    If you are asking how to alter the parameters I suggest you remove the Java reference and post a new question so it's not confusing the issue.
    Please clarify?

  • How do I generate HTML from XML & XSL using XSL Processor ?

    I want to generate a HTML from XML & XSL using XDK for C on
    linux-8i.
    I run the XSLSample well.
    But it only generate a XML from a XML & a XSL.
    Can any one give me some advise or sample code?

    Just use HTML tags instead of xml tags in your stylesheet, and
    you'll generate HTML instead.
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
        <html>
          <body>
            <xsl:for-each select="ROWSET">
              <table border="1" cellspacing="0">
                <xsl:for-each select="ROW">
                  <tr>
                    <td><xsl:value-of select="EMPNO"/></td>
                    <td><xsl:value-of select="ENAME"/></td>
                  </tr>
                </xsl:for-each>
              </table>
            </xsl:for-each>
          </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>

  • Swf2html.exe and infinite generated html files

    Dear,
    I use the tool swf2html.exe from Adobe for extracting textual content on .swf files.
    Is there a way to avoid infinite iteration on such swf files : i.e. http://www.cartoondollemporium.com/superdollz/dollz/1012/doll.swf ?
    The problem is that when I try to generate html file with that file in PHP, swf2html.exe made an infinite iterate and there is no way (except manualy cut the process) to stop for example on a max output file size generated.
    Thanks of you have some tips to avoid or solve that extracting problem,
    For test :
    http://www.se-flash.com/cgi-bin/flash.pl?etape2=1
    with http://www.jeuxclic.com/jeux/bubble_shooter.swf work.
    http://www.se-flash.com/cgi-bin/flash.pl?etape2=1
    with http://www.cartoondollemporium.com/superdollz/dollz/1012/doll.swf made infinite loop....
    Stephane.

    1) All you do is specify a directory with the -d option and Javadoc creates the directory structure below that. We often use either "-d docs" or "-d html" to create a directory named "docs" or "html" in the current directory.
    2) Preferably they should be stored on a server that has a web server running so people can access them. We build the docs nightly on the development server where people can access the latest version using a file: URL (not with a web server). Then before each release we stage them on our intranet before we push them out to the intranet. We also run the DocCheck doclet and a link checker nightly so developers and writers can find errors in their documentation.
    3) If you want a top-level page that links to separate javadoc documents, you need to do this manually. However, keep in mind that you can also inter-link all those separate documents by using the -link or -linkoffline option.
    Let us know if you have more questions or comments.
    -Doug Kramer
    Javadoc team

  • HTML Comments in a JSP Document

    I am writing a JSP Document that has a number of comments. Some I want to be server-side such as version history and some I want to be client-side.
    Using a JSP page this is easily achieved using JSP comments <%-- JSP comment for server-side --%> and HTML Comments<!-- HTML comment client-side -->.
    Using XML syntax a number of things are apparent:
    1. There is no XML equivalent of a JSP comment (this has been well doc'd for a long time).
    2. In the Java EE tutorials the recommended alternative to a JSP coomment is a HTML comment.
    3. Using HTML comments in a JSP document the web container omits these in the page output - and so they are server-side only just like a JSP comment.
    Code Snippet:
    <template xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="1.2">
    <!-- this comment will not appear in the generated source on the client browser -->
    </template>
    <!-- JSP fragment for no caching policy -->
    So, my question is how do I generate a client-side comment in a JSP Document?
    Thanks
    Edited by: DJT on Mar 3, 2008 4:28 AM
    Edited by: DJT on Mar 3, 2008 4:30 AM

    I found this ....
    http://www.javaworld.com/javaworld/jw-07-2003/jw-0725-morejsp.html
    One significant disadvantage of JSP documents is that no XML-compliant version of JSP comments exists. A JSP document developer can use client-side (HTML-/XML-style) comments or embed Java comments in scriptlets, but there is no JSP document equivalent to <%-- -->. This is a disadvantage because the other two commenting styles JSP documents can use have their own drawbacks. You can see the client-side comments in the rendered page using the browser's View Source option. The Java comments in scriptlets require placing Java code directly in the JSP document.
    So try to embed the HTML comment inside scriptlet tags...
    <%
    <!-- HTML comment here -->
    %>

  • Standards for storing the Javadoc generated html files?

    I'm new to using Javadoc have the following questions:
    1) Does anyone know of any standards as to what directory structure should be used to store the Javadoc generated html files?
    2) When working with a development and production environment, where should they be stored? Only on the development server or on both?
    3) When setting up a html page to link to all of the various Javadoc generated files for all of our applications, should we just manually create an html page that links to them or is there a tool that will take care of this?
    Any information that can be provided will be a big help!

    1) All you do is specify a directory with the -d option and Javadoc creates the directory structure below that. We often use either "-d docs" or "-d html" to create a directory named "docs" or "html" in the current directory.
    2) Preferably they should be stored on a server that has a web server running so people can access them. We build the docs nightly on the development server where people can access the latest version using a file: URL (not with a web server). Then before each release we stage them on our intranet before we push them out to the intranet. We also run the DocCheck doclet and a link checker nightly so developers and writers can find errors in their documentation.
    3) If you want a top-level page that links to separate javadoc documents, you need to do this manually. However, keep in mind that you can also inter-link all those separate documents by using the -link or -linkoffline option.
    Let us know if you have more questions or comments.
    -Doug Kramer
    Javadoc team

  • Embedding javascript with xslt generated html

    hi,
    I'm using xml/xslt with xdk to generate html with embedded javascript. The solution works except that I am having problem with proper inclusion of the javascript file. I uset this line:
    <xsl:template match="/">
    <head><title>Screener</title>
    <!-- Javascript declarations -->
    <script language="javascript1.2" src="./screener.js">
    </script>
    I have tested the xslt sheet via IE5 and msxml3 processor and it works fine including loading the javascript file.
    Now using XDK and servlet it doesn't seem to retrieve the javascript file so all javascript function do not work.
    I would appreciate any help.
    thanks,
    ted
    null

    hi brian,
    All those files are in same directory i changed the .xsl file to be i am changing at the right place.
    However, as backup i tried the following:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <script language="javascript1.2">
    <![CDATA[
    <!--
    var isNav4, isIE4;
    if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
    isNav4 = (navigator.appName == "Netscape")? true:false
    isIE4 = (navigator.appName.indexOf("Microsoft" != -1)) ? true:false
    if (isNav4) { document.write("<B>It's a Navigator!</B>");}
    else { document.write("It's an Explorer!");}
    //== shared global variables
    function _alert(e)
    alert(e);
    -->
    ]]>
    </script>
    and here is the html output:
    <html>
    <head>
    <title>Screener</title>
    <script language="javascript1.2">
    &#60;!--
    var isNav4, isIE4;
    if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
    isNav4 = (navigator.appName == "Netscape")? true:false
    isIE4 = (navigator.appName.indexOf("Microsoft" != -1)) ? true:false
    if (isNav4) { document.write("&#60;B>It's a Navigator!&#60;/B>");}
    else { document.write("It's an Explorer!");}
    //== shared global variables
    function _alert(e)
    alert(e);
    -->
    </script>
    </head>
    So everything is being output correctly except for <!--; is there a way around this problem? If I leave out <!-- --> it works but
    i was wondering if the present behavior is what's supposed to happen.
    thanks,
    ted
    null

  • How to suppress the html comment at start of output

    Hi,
    Does anyone know how to suppress the html comment that ITS inserts at the beginning of the response content.
    i.e.:
    <!--
    This page was created by the
    SAP Internet Transaction Server (ITS, Version 6100.1030.61.1891, Build 610.611891, Virtual Server SY1, WGate-AGate Host aauwsd00, WGate-Instance SY1)
    Template:       znc_xworktime/99/xml.html  -->
    This appears to be causing havoc with the applet's XML parser...
    org.jdom.input.JDOMParseException: Error on line 8: XML declaration may only begin entities.
         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
         at com.alcatel.ontap.applets.timesheet.TimesheetTableLoader.run(TimesheetTableLoader.java:75)
    Caused by: org.xml.sax.SAXParseException: XML declaration may only begin entities.
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
         at org.apache.crimson.parser.Parser2.maybePI(Parser2.java:1140)
         at org.apache.crimson.parser.Parser2.maybeMisc(Parser2.java:1266)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:654)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
         ... 2 more

    Check out OSS Note No.747818
    You can use the ~no_its_header parameter to deactivate the default       
    header that is generated. As soon as this parameter contains any value,  
    header generation is suppressed. In ITS 6.20, you can set the parameter  
    with the AdminTool. You will find the relevant switch under              
    Security-General.                                                        
    If the ITS is integrated into the WebAS (SAP Netweaver 04 and higher),   
    you must maintain the parameter in the ICF service. Note that you have   
    to maintain the parameter individually for each service.                 
    Regards
    Raja

  • HTML comments and scriptlets

    Hey,
    I have a question concerning the JSP specification and HTML comments (1.1 and 1.2):
    Code like this:
    <script language="JavaScript">
    <!--
    <%
    int a;
    if (true)
    a = 2;
    %>
    -->
    </script>
    <html>
    <body>
    <b>
    a = <%= a %>
    </b>
    </body>
    </html>
    prints print out:
    a = 2
    with Tomcat 4.0.x , but not with Orion 1.5.x. Orion ignores the scriptlet code within the HTML comment.
    Both blame to be JSP compliant in that respect. The specification says (1.1 chapter: 2.3; 1.2 chapter: 2.5):
    In order to generate comments that appear in the response output stream to the requesting
    client, the HTML and XML comment syntax is used, as follows:
    <!-- comments ... -->
    These comments are treated as uninterpreted template text by the JSP container. If the
    generated comment is to have dynamic data, this can be obtained through an expression
    syntax, as in:
    <!-- comments <%= expression %> more comments ... -->
    Now, does this mean JSP scriptlets (<% scriptlet %>) in HTML comments are ignored or not?

    This is a known bug in the Orion server; using the Oracle Containers for J2EE, which is the Orion server under license, I often have to deal with the same problem.
    Either don't remark out your JavaScript files, or place your HTML remarks inside JSP remarks so the Orion server can parse it correctly:
    <script language="JavaScript">
    <%="<!--"%>
    <%
    int a;
    if (true)
    a = 2;
    %>
    <%="-->"%>
    </script>

  • Error while generating HTML

    Hi,
    I have a design studio application I want to share publicly on BI Launch Pad for my company. The dashboard/application made in design studio works fine locally and on BI Platform public folder (through my login credentials).
    However, when other people from the company try to view this DS application, it throws "Error while generating HTML"
    The root cause is:
    The initial exception which caused the request to fail was:
    Index: 0, Size: 0
    Any clue why such a thing might be happening?

    What version of BI4x/patch?
    Looks like this error has been shown before on older versions of the BI Platform - see Error HTML in Mobile BI App, not in local (version 1.4)

  • Generate HTML report with ANT

    Hello,
    I'm  new to FlexPMD. I have just generated my firsts reports. I try to generate HTML reports.
    I browse the documentation, this forum and the web and I find informations to :
    - generate documentation with Hudson
    - generate documentation with Maven
    - generate documentation with XSLT pmd.xml -> html
    Ok, I try to keep it simple. So I don't want to use Hudson.
    I'm using ANT, and I currently don't want to install/learn Maven.
    I'm using FlexUnit with ANT. And It's really simple to generate reports :
    <junitreport todir="${report.flexunit.loc}">
                <fileset dir="${report.flexunit.loc}">
                    <include name="TEST-*.xml" />
                </fileset>
                <report format="frames" todir="${report.flexunit.loc}/html" />
    </junitreport>
    I'm really new to FlexPMD, so I don't have currently a big knowledge, but it seems impossible to generate a HTML report just like junitreport. (1 line in an ANT task)
    I test the XSLT transformation found on this forum (thread "XSLT pmd.xml -> html"). It's really cool. But it's seems difficult, for example, to extract the wrong code part and add it to the HTML page.
    So, what is the simpler solution to generate HTML report just with FlexPMD/ANT ?
    Thanks !

    Hello,
    Currently you generate a PMD report with ANT  like this :
    <! -- define taskdef  -->
    < taskdef name="pmd"  classname="com.adobe.ac.pmd.ant.FlexPmdAntTask"  classpath="${build.pmd.loc}/flex-pmd-ant-task-${flexpmd.version}.jar">
             < classpath>
                 < path refid="flexpmd.base" />
                 < pathelement  location="${build.pmd.loc}/commons-lang-2.4.jar" />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-core-${flexpmd.version}.jar" />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-ruleset-api-${flexpmd.version}.jar"  />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-ruleset-${flexpmd.version}.jar"  />
                 < pathelement  location="${build.pmd.loc}/plexus-utils-1.0.2.jar" />
             < /classpath>
    < /taskdef>
    then generate XML  report like this :
    < pmd  sourceDirectory="${src.loc}" outputDirectory="${report.loc}"  ruleSet="${build.pmd.loc}/rules.xml"/>
    The  XML contains some file nodes :
    < file  name="/Users/user/workspace/AS3_UTILS/src/utils/align/gridAlignSpaceNumber.as">
           < violation beginline="22" endline="22" begincolumn="0"  endcolumn="27" rule="adobe.ac.pmd.rules.naming.TooShortVariable"  ruleset="All Flex Rules" package="utils.align"  class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="5">This  variable name is too short (3 characters minimum, but 1 actually).  Detects when a field, local, or parameter has a very short name<  /violation>
    < /file>
    The  message is in the text node  < violation>TEXT< /violation>
    For  me, we miss an important part of the message : the portion of the "bad"  code.
    It could be very usefull if PMD can generate  something like this :
    < file  name="">
           < violation beginline="" endline="" begincolumn=""  endcolumn="" rule=""  ruleset="" package=""  class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="">
            < description>TEXT< /description>
            < code><CDATA[MY CODE
    MY CODE
    MY CODE]>< /code>
        <  /violation>
    < /file>
    With this, we can  generate "full" HTML report with XSLT transform easily.
    I  understand that it modify the standard XML schema of the output.
    So,  perharps it could be an option like this :
    < pmd fullDescription="true"  sourceDirectory="${src.loc}"  outputDirectory="${report.loc}"  ruleSet="${build.pmd.loc}/rules.xml"/>
    What do you think ?
    Thanks !

  • Error in generating HTML output using Central Output Pro Server 5.5

    I am getting the following error while generating HTML output using the Output Pro Server. A new printer was created with the Physical Device as "HTML Template Generation - [html]" and added to the Job.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](1801) The printer name is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3015]Error, unable to open printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3008]Error, unable to get info about device 'PAYMENTADVICEHTM.html' attached to port '<nil>'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](183) Cannot create a file when that file already exists.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [2]Error opening output device/file 'PAYMENTADVICEHTM.html'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](6) The handle is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3018]Error ending page on printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [210]Nothing was printed.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfserver.exe: [314]Agent exit message: [3018]Error ending page on printer.

    If I were to guess, I'd guess that your filename is invalid. How about removing all special characters (spaces, brackets, etc.) from the device name. Also, make sure your form was compiled for HTML.
    I haven't actually used the HTML driver, but these are general things you should do if you have trouble with any Central driver.
    Regards,
    Rob McDougall
    Indigo Pacific

  • Error in generating HTML, PDF format

    Hi guys
    I am using Oracle Reports 6i with ORACLE 9i Database.
    After generating my report when i tried to generated report output in HTML or PDF format then system return following error message.
    PDE-PER001 Internal error (REP-3335. Unhandled Internal CA Error. depep 2).
    Remember when i tried to generate HTML or PDF format on other PC file generated successfully.
    Best Regards.
    Hassan Raza

    hello,
    you might want to contact oracle support services. maybe you need a patchset or so.
    thanks,
    ph.

  • "Error while generating HTML" encounterred while running prefilling cache

    Hi,
    We are using BI7, prefilling cache function by using Broadcaster. The prefilng cache is created OK in BEx broadcaser based on Java web and was scheduled. When we run the process chain to trigger the prefilling cache, we got the following error message "Error while generating HTML". But sometimes it is complete successfully.
    Is there anyone know the reason?
    Many Thanks
    Jonathan

    Hi,
    we don't have a separate precalc server. when i run RSPRECADMIN, it show nothing.
    the broadcaster is running on the java web.

  • In Flash CS4 a generated html with swf file won't play swf

    Using Flash CS4 and having the Flash plug-in ver 10 on my PC, the generated html file will not play the swf in the browser.
    I noticed that the active-x javascript is now included in the header as well as the javascript portion in the body tag.
    But it won't play.  I get the typical blank window in IE with the "X" in the upper left corner.
    I don't have this problem with Flash CS3.
    Any ideas what may be going on?
    Thank you.

    I am having similar difficulty; mostly I am confused.
    I want to open a flash video file in a frame within a webpage.
    I have generated a Flash CS4 html and swf file. When loaded they play, but they play on a separate, full size web page, not in the frame where I want it.
    I then generated FLV and F4V files but that doesn't work.
    It appears that I need to insert the object and embed tags "for Flash Movies" in the html file.
    Once I do that, do I go back to only putting in the html and swf files and create a link to the html file to bring up the video in the target frame?
    What are the FLV files for?

Maybe you are looking for

  • Why is my Ipod touch 4 no longer charging?

    My sons IPod touch 4 is about one year old and the charger rarely connects properly so that battery will charge. It aslo seems that the original battery runs out of juice very quickly. Any advice or similar experience?

  • Please can you tell me the default maximum file size for an attachment in Case Management v12 ?

    Hi, Please can you tell me the default maximum file size for an attachment in Case Management v12+? I am able to define a maximum attachment size but I am not able to see what the default is set to. Thank you Regards, Anthony

  • Calling FM in background

    Hi All, I have a requirement to call one function module in background job. To acheive this, I tried to call this FM in another FM using 'IN BACKGROUND TASK' option. But this option is not scheduling it as a background job, rather its running this FM

  • ITunes will not open unless I have created a new iTunes library...

    I created at least 4 iTunes libraries, but they when I try to open them, iTunes does not accept them as libraries. I may be doing it wrong, but I don't know. Any assistance would be much appreciated. Thank you!

  • Disk Utility Not Recognizing Hard Drive - PLEASE HELP!!

    So, I just bought this Power Mac G4 from a friend to run my Digidesign hardware. I turned it on this afternoon to install the Apple software for the wireless mighty mouse. When I turned the computer on, the second hard drive was not present in Finder