XML / HTML Filtering

When using the simple filtering :
<headerTrimTag>&lt;form</headerTrimTag>
<footerTrimTag>/form></footerTrimTag>
Does this only remove the first occurence of the given tag?
If a tag is repeated, how can I remove all of them ?
I am looking to remove a column from a HTML table,
so I want to remove the header for the column :
<TH ALIGN="Center" id="Event Name"><font color=#FFFFFF>Event Name</font></TH>
and the associated data :
<TD ALIGN="left" headers="Event Name">caprion.pe.search.submit</TD>
Thanks

URL Services searches for the last occurence of headerTrimTag and footerTrimTag, and removes the content before and after the occurence, respectively. Using HtmlFilter we cannot remove content present in different location of web page.
For example we cannot trim Table Headers in all HTML tables. We need to use XMLFilter for this type of advance filtering. As XmlFilter converts HTML to XHTML content before applying style sheet, we can write appropriate templates in XSL file according to our requirement. The template xsl file supplied with URL Services samples, can be used as a reference.
Thanks,
Amjad.

Similar Messages

  • TRADACOM------ XML------ HTML------- Mail

    Hi,
    My scenario is TRADACOM---->XML--> HTML----->Mail.
    Using SEE BURGER's AS2 adapter I can convert TRADACOM to XML..........
    Could anyone pls help me in converting the XML to HTML and send the html content in the body part of mail using mail adapter?
    I have a very short span (less that a week) of time to deliver the interface.
    <i><b>KINDLY HELP ME</b>.</i>

    Hi,
    There are standard converters to convert XML to HTML. They are available in the market or with your organisation. It is a separate software tool and has nothing to do with SAP tool.
    Thereafter, HTML can be attached to the body part of mail. That is a standard functionality in SAP.
    Regards,
    Anirban

  • JWS, Applet, and XML / HTML Client

    Hi all,
    I just went through the article which gives companrison of different types of web clients. Here is the URL
    http://www.javaworld.com/javaworld/jw-07-2001/jw-0706-webstart.html
    Can anyone explain me how we can use Applet with JWS. When we use it, is my applet is going to be downloaded to client and run with full security permissions??
    What major advantages and changes we might have to do if we are using JSP/XML/HTML web client. ( ofcourse not in the table which is present in the above URL ).
    Thanks for the time.
    L G Goundalkar

    As my article at http://developer.java.sun.com/developer/technicalArticles/Programming/jnlp/ states, programs run through Java Web Start do NOT have full security permissions.
    As far as applets go, in the descriptor file, you need to use applet-desc instead of application-desc. This is described in the Java Web Start Developer's Guide.
    JSP/XML/HTML is not a rich client interface.

  • ENTITIES and transforming XML to XML/HTML using XSL

    I am going absolutely nuts. When using XSL to transform an XML
    file to HTML or another XML schema, critical entities dissappear.
    For example:
    <oldtag>press &quot;any&quot; key</oldtag>
    will get rendered to
    <newtag>press "any" key</newtag>
    by the XML/XSL parser, which is not valid HTML or XML.
    How do I preserve these entities through the transformation
    process. Escaping the text (in the XML source) with <![CDATA[]]
    is not possible in this case.--Michael
    null

    Assuming you can't use a CDATA in the DTD to prevent parsing,
    then my suggestion would be to use the XSL stylesheet to restore
    the entities as there is no way that I am aware of that will set
    conditional expansion.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Michael Van Auken (guest) wrote:
    : I am going absolutely nuts. When using XSL to transform an
    XML
    : file to HTML or another XML schema, critical entities
    dissappear.
    : For example:
    : <oldtag>press &quot;any&quot; key</oldtag>
    : will get rendered to
    : <newtag>press "any" key</newtag>
    : by the XML/XSL parser, which is not valid HTML or XML.
    : How do I preserve these entities through the transformation
    : process. Escaping the text (in the XML source) with <![CDATA
    : > is not possible in this case.
    : --Michael
    null

  • Is there any compoment can explain XML & HTML?

    I want to create an client end-point as an explorer like IE,which can send http request and receive XML(including XSL SVG and so on),HTML,JavaScript and expliant them and show them right on my client end-point explorer.
    I mean that I will use swing to create a UI to replace the IE UI,and it can support all the functions of IE, so,is there any compoment can help me as a plug-in ?

    Johny,
    Swing has Styled Text areas to accomplish your requirement (see JEditorPane and JTextpane). Don't expect much from them. Rendering HTML is not easy, when you want a good rendering engine use the mozilla rendering engine or embed internet explorer in your application. This will involve doing native coding. Don't ask me for an example code, I don't have any.
    Greetz

  • CS5 XML/HTML Export of images

    Hi,
    I have to export a catalogue via XML to get it processed by our CMS. As well I also need all the pics iside the INDD for web use. The export of the tagged items weorks perfect, including the formatted images.
    BUT:
    All pics come in their printed size in 72 DPI, which is not enough for me. I need 600 pix width for each pic.
    Has anyone done this already? Is the a screw I can turn to chage the output size of images, when exporting XML or HTML?
    Thanx a lot in advance
    C@rsten

    You can request this at the SQL Developer Exchange, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • XML Query filtering by child table column

    Hello,
    If anyone can help with this one... it would be nice. I need to make the output of an query to be in the format of XML, but the problem is that the initial filtering needs to be done in the child table.
    Example:
    CREATE TABLE PRIMARY(
    ID NUMBER(19,0),
    CODE_PRIMARY VARCHAR2(32));
    CREATE TABLE SECONDARY(
    ID NUMBER(19,0),
    IDPRIMARY(19,0),
    CODE_SECONDARY VARCHAR2(32));
    INSERT INTO PRIMARY(ID,CODE_PRIMARY)
    VALUES (1,'A');
    INSERT INTO PRIMARY(ID,CODE_PRIMARY)
    VALUES (2,'B');
    INSERT INTO SECONDARY(ID,IDPRIMARY,CODE_SECONDARY)
    VALUES (1,1,'C');
    INSERT INTO SECONDARY(ID,IDPRIMARY,CODE_SECONDARY)
    VALUES (2,1,'D');
    INSERT INTO SECONDARY(ID,IDPRIMARY,CODE_SECONDARY)
    VALUES (3,2,'E');
    Now what we need is to build an XML tree like the following, INNER JOINING PRIMARY and SECONDARY tables with this condition in the where clause -> WHERE SECONDARY.CODE IN ('C','D')
    <result>
    <record>
    <id>1</id>
    <code>A</code>
    <childs>
    <child>
    <id>1</id>
    <idprimary>1</idprimary>
    <codesecondary>C</codesecondary>
    </child>
    <child>
    <id>2</id>
    <idprimary>1</idprimary>
    <codesecondary>D</codesecondary>
    </child>
    </childs>
    </record>
    </result>
    In this example only one record is returned since we only have one record in PRIMARY table that has a child having codesecondary=C or D. The ideia is to get many records... but I think that this is enough for the sake of the example. And the solution is the same.
    Thanks in advance!
    GM

    Found the answer. Used distinct keyword instead of grouping the output table columns. This way XMLAgg didn't broke up the result:
    SELECT
    XMLElement("Processos",
    XmlAgg(XMLElement("Processo",
    XMLForest(T.ID as "Id",T.CODIGO as "Codigo",T.DESCRICAO as "Descricao"),
    XMLElement("Funcionalidades",
    SELECT
    XMLAgg(
    XMLElement("Funcionalidade",F2.ID)
    FROM TWBASEDB.LISTA_UNICA_FUNCIONALIDADE F2
    WHERE F2.ID_processo=T.ID
    and f2.ACTIVIDADE IN ('1_ACTC1','1_ACTC2','1_ACTC3','2_ACTC1')
    from
    select distinct P.ID,P.CODIGO,p.DESCRICAO
    FROM TWBASEDB.LISTA_UNICA_PROCESSOS P
    INNER JOIN TWBASEDB.LISTA_UNICA_FUNCIONALIDADE F ON P.ID=F.ID_PROCESSO
    WHERE ACTIVIDADE IN ('1_ACTC1','1_ACTC2','1_ACTC3','2_ACTC1')
    order by p.id
    ) T

  • XSLT pmd.xml - html

    I needed to have this, but couldn't find anything that allowed me to do it quickly. I'm not using Maven.
    After scouring the web for a general solution for PMD I came across an xslt file, which I modified to better represent FlexPMD (there are subtle differences). Ignore the fact that I'm executing the command-line jar from this build script. All that matters is that the pmd.xml file get generated.
      <target name="analyzeCode">
        <exec executable="java">
          <arg line="-Xmx256m" />
          <arg line="-jar /dev/tools/flexpmd/flex-pmd-command-line-1.0.Rc4.jar" />
          <arg line="-s src/" />
          <arg line="-o reports/pmd/" />
        </exec>
        <xslt in="reports/pmd/pmd.xml" style="/dev/tools/flexpmd/flex-pmd-report.xslt" out="reports/pmd/pmd.html" />
      </target>
    This is just an example. Obviously the locations of the xslt and jar files will need to be different.
    Thanks for this tool. These things are very welcome and incredibly appreciated. Take care.
    -M

    This was exactly what I was looking for.
    Great ideia!
    I have to thank you again for sharing this with us.
    Bye
    Helana Rodrigues.

  • Mif to XML/HTML conversion w/o FrameMaker

    Hello fellows,
    Are you aware of any way to convert a Mif file to HTML outside of Framemaker? In the past, there were attempts to create tools that convert Mifs to XML, but they weren't really successful.
    Thank you for your suggestions in advance!

    Oh, easy-peasy … all you need is a programmer, someone who understands FM source and something like sed, awk or perl <roflwlia> It's amazing just how much information shows up in a .mif file – I've just opened one I was using yesterday, and by searching for <String I see that there are 125 lines of 'content' (fewer, actually, since some of them are for headers and footers) in a file of 126671 lines.
    You might get something recognisable to use as a starting-point – though without checking I'm not sure how far it would get you with tables – by pulling out PgfTag and String entries, but I suspect the overall answer to "any way to …" may still be "start with a good text editor and {beverage of choice}". Good luck!

  • Autonumbering Conversion to XML, HTML

    The autonumbering function that works so well in FM does not convert easily to XML or HTML. The numbers are either so far off the page I can't see them or they aren't there at all. The html code reads it as OL, but there are no numbers to be found! Is it a margin issue, or are the numbers just not there are need to be reset or reinserted after HTML generation?
    Thanks much
    Thea

    Make sure your HTML mapping table is set up correctly on the Reference page. For example:
    FrameMaker Source Item
    HTML Item
    Include Auto#
    Comments
    Element
    New Web Page?
    P:Body
    P
    N
    N
    P:Bulleted
    LI
    Parent = UL
    Depth = 0
    N
    N
    P:Heading1
    H*
    N
    N
    P:Heading2
    H*
    N
    N
    P:Indented
    P
    Parent = UL
    Depth = 0
    N
    N
    P:Numbered
    LI
    Parent = OL
    Depth = 0
    N
    N

  • [UNSOLVED] Event Log Custom XML Query Filtering Help

    I've looked at a few different posts but I must be missing something because what I'm constructing isn't working.
    Here's the XML code of an example event:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider Name="ERAS WCF" />
    <EventID Qualifiers="0">0</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-07-09T20:32:51.000000000Z" />
    <EventRecordID>899070</EventRecordID>
    <Channel>Application</Channel>
    <Computer>server.f.q.d.n</Computer>
    <Security />
    </System>
    - <EventData>
    <Data>User [email protected] has submitted 'Get BIOS Information' operation from servername to computername.f.q.d.n.</Data>
    </EventData>
    </Event>
    This is my query:
    <QueryList>
    <Query Id="0">
    <Select Path="Application">*[EventData[Data and (Data='computername' or Data='ip.add.re.ss')]]</Select>
    </Query>
    </QueryList>
    I always get 0 results, even if I take stabs in the dark:
    *[System[(Level=1  or Level=2 or Level=3 or Level=4 or Level=0 or Level=5)]]
    *[EventData[Data and (Data='*computername*')]]
    *[EventData[Data and (Data='%computername%')]]
    I used this post as my guide for filtering based on content: http://blogs.technet.com/b/askds/archive/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer.aspx
    Also:
    I hope this is the right place for this question.  This said to post in the server
    forums, but in
    the server forums, it said to post here.
    I happen to be doing this on a server, but it could just as easily be a desktop.

    Hello,
    Thanks for posting question to this forum. Since this forum is related with XPath, what I can do is to help you validate your XPath query. With your query, I tested them with my computer, however, all of them could load event record correctly:
    Query:*[EventData[Data and (Data='Office12AssertTimer' or Data='6.3.9600.17031')]]
    Result:
    Query:*[System[(Level=1  or Level=2 or Level=3 or Level=4 or Level=0 or Level=5)]]
    Result:
    So your XPath query is ok. Do you have a try to use the same query to filter the event log to check if there are records with another computer? I am wondering if there is something wrong with your current computer.
    And since the XPath is ok, I would like suggest you posting it to the server forum to see if there are others looking into it.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Html filtering content length issue

    I am using the Filter type="filter-hhtml" to tets stripping out EMBED and OBJECT tags from html pages. It is working fine but when the resulting page is loaded the browser (konquorer in this instance) reports a content length mismatch and shows an error message. The new page is shown. When I try and view the html source I get the same error and never get to see the source. When I try under Firefox and IE it works fine. I was just wondering if it was possible (or even necessary) to change the content-length to accurately depict the resulting size of the page after filtering?

    Checkout send-error.So I can place a drective like this (assuming I have a 403.html file in that location):
    Error fn=send-error code=403 path=/opt/sun/webproxyserver/html/errors/403.html
    I assume I place this inside my Object definition for my template ... is that correct? I plan on placing it at the bottom of my template. Does its location in the Object definition matter? I am sorry but the docs are not real clear (at least to me) on hard details so forgive my questions.
    just for clarity is this a proper template definition(I have 3)?NameTrans fn="assign-name" name="BlackList" from="http://.*yahoo.*"
    NameTrans fn="assign-name" name="WhiteList-level1" from=".*://64\.215\.169\.*/.*|.*://.*gblx.net/.*"
    NameTrans fn="assign-name" name="WhiteList-default" from=".*://.*/.*"
    The one named BlackList is just for testing purposes (which I can't seem to get to work either.
    Isn't the following legal? When I have a template match it should go to this object and execute directives right? It should see and execute the deny-service right? Why is it not?
    <Object name="BlackList">
    Service fn="deny-service"
    Error fn=send-error code=403 path=/opt/sun/webproxyserver/html/errors/403.html
    </Object>
    thanks again
    Doug

  • Off topic: posting XML/HTML in these forums

    How do you post XML to these forums? Encoding the < as > just gets interpreted as a literal, but using straight XML doesn't work because if there's overlap with HTML, the XML gets formatted as HTML. Here's an example -- if you have an XML tag called "s" (< s n a m e = " f o o " > b a r < / s > ), look what happens (because of the strikethrough HTML tag): <s name="foo">bar</s>.
    Sorry to post off-topic!
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

    Hello red_menace,
    Indeed a pre-processing code like yours is always an option for us, but from my point of view, the correct solution is for the discussions' admins to disable this meddlesome formatting feature of the new fora software.
    This new feature affects not only new posts but also the existing messages in the fora, that means it has rendered quite a few useful messages totally useless. This is actually serious data loss caused by the thoughtless software. And for what?
    After all, these discussions' boards are not chat rooms where people might want some simple input methods for fancy text formattings, but technical support fora where people frequently post programming codes, computer outputs and so forth that have many reserved symbols and notation.
    I really wish they may fix this promptly.
    Best regards,
    Hiroto

  • Xml/html to jsp - problem with quotes in attribute values

    I am trying to convert a static html document into a jsp using an xsl stylesheet, but run into problems trying to use the jsp expression syntax inside of attribute values.
    Here is a sample of the source file:
    <input type="text" name="firstName" value=""/>
    Here is what I want the resulting jsp file to look like:
    <input type="text" name="firstName" value="<jsp:expression>customer.getField("firstName") </jsp:expression>">
    Here is what part of my stylesheet looks like:
    <xsl:template match="input">
    <xsl:copy>
    <xsl:copy-of select="@type"/>
    <xsl:copy-of select="@name"/>
    <xsl:attribute name="value">
    <xsl:text disable-output-escaping="yes"><jsp:expression></xsl:text>
    <xsl:text disable-output-escaping="yes">customer.getField(</xsl:text>
    <xsl:text disable-output-escaping="yes">"</xsl:text>
    <xsl:value-of select="@name"/> ")
    <xsl:text disable-output-escaping="yes">")</xsl:text>
    <xsl:text disable-output-escaping="yes"></jsp:expression></xsl:text>
    </xsl:attribute>
    </xsl:copy>
    </xsl:template>
    The problem i have is with the <%= customer.getField("firstName") %>. I have tried several different ways of inserting the double quotes around firstName, but no matter what I try, it always uses the entity reference instead of actually putting the " character. The jsp container will not accept the entity.
    I am assuming that the problem is with trying to place double quotes inside of an attribute value. Any ideas how to get around this?
    Thanks
    David

    Which App Server are you using?
    You should just be able to escape the double quotes.
    If that doesn't work, it's a bug in the app-server.
    Alternatively, you can use single quotes around the
    attribute value.
    Hope that helps,
    AlexSorry, I'm an idiot. By escaping you meant the unicode character escape "\u0022". I had not tried that. However, once i realized what you meant, I tried it, and it worked. Thanks for your help.
    David

  • View XML / HTML  Documents Stored in Oracle DB

    I need to build an application where a user can enter in basic query criteria and I need to return the appropriate XML (transformed by a specified XSL stylesheet) or static HMTL document stored as XMLTYPE or CLOB in the DB. Is it feasible to build such an application in Apex or do I need to build a JSP based application?
    Any other options?
    Thanks,
    Chris

    It is quite feasible (and quite easy) to do this via XMLDB. You can even create an Oracle Text index on the XML (or binary for Word documents, pdf etc) for fast case insensitive searching. Look at the XMLDB documentation, especially the sql access to the resource_view.
    Mike

Maybe you are looking for

  • How can i connect my apple tv 2 to an rca entrance with yellow red and whit

    i need to connect my apple tv to a yellow red and white entrance can anybody help me?

  • Looking for Plugins for Powerpoint & Excel files

    I am creating my website in iWeb and it's great! I am looking for a way to have users open the powerpoint and excel files within the website, similar to the way these files open in Internet Explorer. I realize that things are different between ie and

  • Unable to connect to localhost Windows 7 x64, CF9 x64

    I've been following along with the Lynda.com tutorial on ColdFusion Builder. Everything went smoothly until the part where I'm supposed to attach CFB to the localhost. The Lynda.com presenter is on a Mac. I am running 64-bit Windows 7 and 64-bit Cold

  • Pivot and Unpivot in Oracle 10g

    Hi, This is my table structure CREATE TABLE TESTTABLE REVENUE1 NUMBER, REVENUE2 NUMBER, REVENUE3 NUMBER, YEAR DATE insert into testtable(revenue1, revenue2, revenue3, year) values(100,200,300,'1-Jan-2009') ; insert into testtable(revenue1, revenue2,

  • Screen value not being captured in Report

    Hi,       I have a designed a report program with multiple tabs. When i enter data into the selection fields, its not storing the values during the start of selection event. When i save the values as variant and then use it, the program works perfect