Parsing CF tags - how to remove whitespace?

I have an index.cfm in which I include additional CFM pages.
index.cfm:
</head>
<cfinclude template="first.cfm">
<cfinclude template="second.cfm">
<cfinclude template="third.cfm">
<cfinclude template="forth.cfm">
<body>
After executing the file:
</head>
<body>
How can I remove these whitespace? For example first.cfm
contains the following rows:
<cfif isDefined("cookie.myCookie")>
<cfif cookie.ZulzBeta neq "1234">
<cflocation url="
http://mypage">
</cfif>
</cfif>
<cfif not isDefined("cookie.myCookie")>
<cflocation url="
http://mypage">
</cfif>
I know that using <cfscript> this problem won't happen
but there are a lot of things that I'm not able to do with
<cfscript>. What should I do?

<cfprocessingdirective suppressWhiteSpace = "Yes">
<cfinclude template="first.cfm">
<cfinclude template="second.cfm">
<cfinclude template="third.cfm">
<cfinclude template="forth.cfm">
<cfprocessingdirective suppressWhiteSpace = "No">
<!--- Code for the rest of the page --->
</cfprocessingdirective>
</cfprocessingdirective>

Similar Messages

  • How to removing whitespace in jsp

    hi,
    i am loading a jsp file, which had some space at the beginning. i want remove the space, then i need ot parse the data, just like ignoreWhiteSpace in xml. can anybody help on this.
    thanks
    ayathas

    Actually straight replacement will not work because it converts data to string because variables are expected.
    So there are at least two ways to deal with it:
    1. You can create a fake (unused) variable in JSP that prepends URL query - this way all the chars before will not interfere with reading variable:
      fake=fake&username=test&password=xxxxxxxx&result=true"
    2. In your complete handler you can read variables in a loop and hold them in a separate object:
    function completeHandler(e:Event):void
         var varObject:Object = {};
         for (var prop:String in e.target.data)
              trace(prop.replace(/^\W+/, ""), e.target.data[prop]);
              varObject[prop.replace(/^\W+/, "")] = e.target.data[prop];
         trace(varObject.password);

  • Every inlineframe generates HTML, head and body tag - how to remove it

    Hi,
    I am using inlineframe for adding HTML content. For every inlineframe, HTML, head and body tag is generated.
    How to get rid out of those HTML, head and body tags?
    please suggest
    Edited by: user10302920 on Feb 2, 2011 3:59 AM

    Hi,
    not sure the component is generating this. Must come from the HTML source you reference. If however it is the inline frame then this is not configurable
    Frank

  • How to remove whitespace in deamweaver in design view?

    m having this issue which is driving me crazy. when am looking at my code in design view in Dreamweaver, there is a space below my nav bar like this..... I do not understand how to get rid it?
    but it doent show in live view or the browser..... Edit fiddle - JSFiddle

    Don't expect much from Design view, it's merely a vague approximation.
    Trust your Browser preview.

  • How to remove extra html markups from adf generated code in webcenter porta

    hi!
    I am trying to develop navigation in oracle webcenter portal.
    My code is generating extra div's for li and a tags. how to remove the extra div's.
    code in my template for generating navigation is:
    <div id="JS-MainNav " class="menu9 clearfix">
    <ul class="jd-menu">
    <!-- Root UL-->
    <c:forEach var="node" varStatus="vs"
    items="#{navigationContext.currentModel.listModel['startNode=/, includeStartNode=false']}">
    <li class="single">
    <!-- first li-->
    <af:goLink id="gLink" styleClass="menu9two accessible"
    destination="#{node.goLinkPrettyUrl}">
    <af:outputText value="#{node.title}"/>
    </af:goLink>
    </li>
    <c:if test="${node.selected}">
    <c:set value="${node.children}" var="childNodes"
    scope="session" />
    <ul>
    <!-- 2nd level ul inside li-->
    <c:if test="${childNodes ne null}">
    <c:set var="childNodes"
    value="${navigationContext.currentModel.currentSelection.parent.children}"/>
    <c:forEach items="#{childNodes}" var="node">
    <li class="fixMenuEN ${node.selected ? 'active' : ''}">
    <!-- 2nd level li-->
    <af:goLink inlineStyle="#{node.selected ? 'font-weight:bold;' : ''}"
    id="sub" text="#{node.title}"
    destination="#{node.goLinkPrettyUrl}"/>
    </li>
    </c:forEach>
    </c:if>
    </ul>
    <!--</c:set>-->
    </c:if>
    </c:forEach>
    </ul>
    </div>
    <!-- xMain Site Tabs -->

    What's the HTML result in your browser form this code?

  • How to remove tag using filter

    I want to use a filter to remove tags already on emails. I can add tags using a filter but cannot see how to remove tag using filter.

    The FiltaQuilla add-on provides a "remove tag" option.
    https://addons.mozilla.org/en-US/thunderbird/addon/filtaquilla/
    http://www.ramsden.org.uk/3_How_to_install_Add-ons_in_Thunderbird.html
    But, out of interest, what's the use case for removing tags by filter? Tags are normally used to facilitate or prompt human intervention and I don't immediately see the value of clearing a tag in a filter. Why tag if a filter will be dealing with it anyway?

  • How to remove tags (not color tags)

    How to remove tags (not color tags)
    I love the idea of the tags, however there comes a point when some become irrelevant.  How can I remove them.  I highlighting them in the dialogue box and hitting the delete key, that does not work.  ?

    I accidentally found that you can remove some tags while in the Sidebar view by just draggng them to the trash.
    But after a certain point when you have drug all of tags in the list, you are then left with the "All Tags" button. When you click on that final button, you find that all of the tags you have ever created are still there in the All Tags category. So I guess what I do is just not create any new tags because the list just becomes too long to be useable. I liked the idea of Tags as a management tool, but like so many times before I will just go back to the file name workarounds that I have been using since 1988.  They work because they were developed and tested by an actual user, me.  Just toss a project number into the file name.  Works every time, unlike the undocumented "features" that are apparently not tested.
    But, if what I hear is true that Apple does not monitor these discussions, what was the point of writing this.
    Would like to think they would look at these "discussions" as a resource, but.......

  • How to remove xmlns tag in Node level

    Hi Experts!
    How to remove xmlns tag in xml file, where only xmlns="". I do not want to remove if xmlns contains a value.
    I am using below xslt mapping, but it is removing all xmlns tags in a xml file. I want to remove only xmlns="" .
    please help me on this.
    Here is the code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.arconw.com/XI/XSLT_Library/XmlNamespacePrefixRemoval"
    version="1.0">
    <xsl:output method = "xml" />
    <xsl:template match="/">
    <xsl:apply-templates select="*" mode="remprefix"/>
    </xsl:template>
    <xsl:template match="*" mode="remprefix">
    <xsl:variable name="newname" select="local-name(.)"/>
    <xsl:element name="{$newname}" namespace ="{namespace-uri()}">
    <xsl:apply-templates mode="copyall" select="@*|comment()|processing-instruction()|text()"/>
    <xsl:apply-templates select="*" mode="remprefix"/>
    </xsl:element>
    </xsl:template>
    <xsl:template mode="copyall" match="@*|comment()|processing-instruction()|text()">
    <xsl:copy>
    <xsl:apply-templates mode="copyall" select="@*|comment()|processing-instruction()|text()"/>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    Thanks,
    Hari

    Hi Hari,
    Please try this as an option:
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class RemoveBlankNS implements StreamTransformation {
         private Map _param;    
         public void setParameter(Map param) {
              _param = param;
         public void execute(InputStream in, OutputStream out) throws StreamTransformationException {
              try {
                   byte[] bytes = new byte[in.available()];
                   in.read(bytes, 0, in.available());
                   String payload = new String(bytes, "UTF-8");               
                   payload = payload.replaceAll(" xmlns=\"\"", "");
                   out.write(payload.getBytes("UTF-8"));
              } catch (Exception e) {
                   StringWriter sw = new StringWriter();
                   PrintWriter pw = new PrintWriter(sw);
                   e.printStackTrace(pw);
                   throw new StreamTransformationException(sw.toString());
    Thanks,
    -Russ

  • How to remove html tags from the pdf file ?

    Hello,
    Using BI publisher we are generating a pdf file. In the table, we have data which contains html tags. for example " test1<br> 2.test2<br> 3.test3<br> ".
    In the pdf file we need to get the output like this
    test1
    test2
    test3
    But the output is as follows :"test1<br> 2.test<br> 3.test3<br> "
    Any idea, how these html tags can be removed from the pdf file and obtain the required result?
    Thanks in advance!!
    Archana

    Archana,
    Can you wrap your code in <code> tags (use square brackets rather than angled ones), as the forum software is interpretting the HTML tags, in other words we can't see what you mean ;)
    In any case, there are a few different options (guessing at what your problem is, without seeing the actual data), you could use htf.escape_sc or replace, regexp_replace etc to substitute the values before you output them to your PDF.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How to remove/ignore the element using SAXParser

    hello all,
    I want to parse the text content in string from the existed xml file. but had problem with the parser. Does anyone have good idea, how to remove or ignore the <link> tag in tag <text>?
    IS: the output is only the rest of part text behind <link style="blue" src="www.test.com" />.
    Wanted: the whole text in <text> tags. like "Reach more customers by creating targeted micro-sites using test's multi-store retailing functionality."
    Given below is my code :
    <?xml version="1.0"?>
    <test xmlns="http://www.test.com/test">
    <title>test title</title>
    <text>Reach more customers by creating targeted micro-sites using test's<link style="blue" src="www.test.com" /> multi-store retailing functionality.</text>
    </test>java code using SAXParser
      public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
      public void endElement(String uri, String localName, String qName) throws SAXException {
        if (qName.equals("text")) {
          System.out.println("content: " + text);
      public void characters(char[] ch, int start, int length) throws SAXException {
        String str = new String(ch, start, length);
        if (str.length() > 0)
          text = text == null ? str : text + str;
    ...Edited by: lauehuang on Sep 9, 2008 4:37 AM

    i think u can't modify the xml file using SAX
    SAX is only for reading XML
    for any modifications in xml file u have to use DOM parser....
    correct me if i m wrong....
    Thanks & Regs
    Ravi

  • How to remove Print pdf link below the reports?

    How to remove print pdf(only pdf. i need html) report which is available below the reports? I am not asking to remove it from the print icon at the left bottom of the page. I need it to be deleted from the link in the middle of the page below the report.

    Go to
    C:\OracleBI\web\msgdb\messages\controlmessages.xml
    Then
    Remove The below Tag From the control messages.xml
    <sawm:if name="enablePDF"><a class="NQWMenuItem" name="pdf" href="javascript:void(null)" onclick="return PortalPrint(&#39;@{pdfURL}[javaScriptString]&#39;,@{bNewWindow});"><sawm:messageRef name="kmsgDashboardPrintPDF"/></a></sawm:if>
    After that Restart the server.
    You will not find the pdf link
    Edited by: 848525 on Apr 21, 2011 4:17 AM

  • How to remove xmlns in node level

    Hi Experts!
    How to remove xmlns in node level in response xml file. I tried to use AF_Modules/XMLAnonymizerBean, but it did not work.
    Can you please help me out on this.
    I want to remvoe  xmlns tag in LEVICOM
    Eg:
    - <Addenda>
       - <LEVICOM xmlns="">
    Thanks,
    Hari

    Hi Expers!
    Please help me out on this. The below xslt mapping working only to remove xmlns prefix in xml file, if parent having only one child. This code is not working if parent having multiple childs.
    Eg:  <parent>
               <phild  xmlns="">
                 test1
                </phild>
            </parent>
    The above example working fine with below xslt mapping to remove xmlns tag.
    Second scenarion  not working
    Eg:  <parent>
              <child1  xmlns="">
                 test1
              </child1>
              <child2  xmlns="">
                  test2
               </child2>
            </parent>
    The above example is not working.
    Here is the code:
    You can remove the namespace prefixes using an XSLT mapping if they are causing problems with applications outside of XI.
    Try the following code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.arconw.com/XI/XSLT_Library/XmlNamespacePrefixRemoval"
    version="1.0">
    <xsl:output method = "xml" />
    <xsl:template match="/">
    <xsl:apply-templates select="*" mode="remprefix"/>
    </xsl:template>
    <xsl:template match="*" mode="remprefix">
    <xsl:variable name="newname" select="local-name(.)"/>
    <xsl:element name="{$newname}" namespace ="{namespace-uri()}">
    <xsl:apply-templates mode="copyall" select="@*|comment()|processing-instruction()|text()"/>
    <xsl:apply-templates select="*" mode="remprefix"/>
    </xsl:element>
    </xsl:template>
    <xsl:template mode="copyall" match="@*|comment()|processing-instruction()|text()">
    <xsl:copy>
    <xsl:apply-templates mode="copyall" select="@*|comment()|processing-instruction()|text()"/>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    Thanks,
    Hari

  • How to remove the rule or class function in CS5

    i need to know how to remove the rule or class function in CS5  at the bottom of the screen there are two options for formating HTML and Css when i click the HTML it only allows me to change the bold or italics or link something but when i click CSS it allows me to format how i want the paragraph aligned and the text size and font when i click on lets say changing the font size a box comes up asking me to name a rule so it applies it to everything else i type i want to know how to stop tht like edit everything on my own and if i use CS5 here will it be compatible with CS4 or CS3 at my skool plzz help ive been frustrated with this

    If I use CS5 here will it be compatible with CS4 or CS3 at my skool plzz help ive been frustrated with this
    Code is code.   It doesn't matter which product you use.
    i need to know how to remove the rule or class function in CS5
    You can't.  DW encourages you to use good coding methods, which means using CSS classes and to keep content (HTML) separate from styles (CSS).  For example, if you change font-size on p tags like so:
         p {font-size: 38px}
    Every paragraph will have 38px sized text.
    If you want to apply a special style to just a portion of your text, you must define a CSS class name like so:
    .foo {
    font-size: 38px;
    color: red;
    HTML:
    <p>This is normal paragraph text <span class="foo"> And this is very big and red.</span></p>
    This is normal paragraph text And this is very big and red. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Message was edited by: Nancy O.  -- unfortunately, this forum doesn't support Raw HTML with inline styles. You'll need to paste my code examples into your DW page to see the effect.

  • How to remove target node if source field value is empty SAP PI Mapping

    Hello,
    how to remove target node if source field value is empty in graphical Mapping.
    Like if
    MIddle name in source filed is empty, I would like to eliminate target field from out put XML.
    Thank you
    John

    Hi Jhon,
    If you want to remove all empty tags and you dont to complicate your message mapping, you can use a XSL, after the message mapping,  to remove all the empty tags:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="*[not(@*|*|comment()|processing-instruction())
         and normalize-space()='' ]"/>
    </xsl:stylesheet>
    Regards

  • How to remove links pointing to the same page?

    I have PDF documents with Links which point to sections referenced (e.g. link of text "Section 2.2" points to the actual page number of "Section 2.2"), but as the links are created from cross-references during rendition from Word to PDF, there are cases that the destination page number and source page number of the links are the same (e.g. links of text "Section 2.2" on page 9 are created with the destination of page 9 which is the actual page number of "Section 2.2"), I want to remove all these links, but I don't know how to get the destination page, I check the API reference and find that "PDLinkAnnotGetAction" may work , but I don't know how to use it, could you check me codes below and advise ? Your help is really appreciated!
    PDPage page;
    ASInt32 i,i2;
    AVDoc avDoc = AVAppGetActiveDoc();
    PDDoc pdDoc = AVDocGetPDDoc (avDoc);
    int pageNum = PDDocGetNumPages(pdDoc);
    for (i = pageNum - 1; i >= 0; i--)
    page = PDDocAcquirePage(pdDoc, i);
    int annotNum = PDPageGetNumAnnots(page);
    for (i2 = annotNum - 1; i2 >= 0; i2--)
      if...
      PDPageRemoveAnnot(i, i2);
    My Product Information:
    Acrobat Pro 8.1.6, Windows

    Start by reading the PDF standard (ISO 32000-1) to understand Actions vs. Destinations.
    Then for each annot, you'll want to see which it has (and in the case of an Action, if it has more than one).  Then you need to parse the action or dest to see what it is and where it goes.  If you don't like it, then you'll delete it.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Tue, 25 Oct 2011 09:25:32 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How to remove links pointing to the same page?
    How to remove links pointing to the same page?
    created by OALD<http://forums.adobe.com/people/OALD> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3989576#3989576

Maybe you are looking for

  • 16:9 Playback Procedures using FCPHD/DVDSP2 and Canon GL2 DV camcorder

    Hello everyone. I did some extensive searching on this topic only to get mixed results and generally confused. I'm hoping to get a 'step-by-step' process on creating 16:9 video for playback on a 16:9 televison (whether or not it's an HD, Plasma or SD

  • STS can not execute workbooks(ivews)!

    Hi experts, I'm having a problem with STS. I already published the workbook like iview in portal and linked it on the sts application. With a Super Admin Rol assigned i can execute the workbook, but if i try to execute with a Standard user rol, i got

  • EJB QL LIKE Operator

    Hello, I want to perform search by keyword on all fields of a table. Say I have a product table with following fields: Field Name Data Type ProductNo Integer ProductName String Brand String UnitPrice Double SupCode Integer I cannot use LIKE operator

  • Output to Flash

    When I output a Captivate as aFlash (under Output Options for publish no boxes are checked and Flash Player Version is 7 (also tried 8 and 9) is selected). The file exports but I am not able to open the file. I have download the newest Flash player a

  • I can't get the pop up preview to come up when printing shipping labels through paypal.

    I can't get the pop up preview to come up when printing shipping labels through paypal. When I click the pay and print I get nothing but it does charge me. I can see it and print no problem through IE but not Firefox. I also can do a reprint of the l