Proble with dynamicaly assign Spry to html tag

Hi,
I am new one in SPRY framework and if this message is not
releted to this forums than please let me know.
I create one file called Index.html where I am including all
needed .js files and I create one dsEmployee data variable. (Look
at below files). After this I create test.html which I am calling
when user click on click me link. When I am clicking on this it is
not workign the way I want. If I include those .js file and
variable into test.html and run it individually than it works fine
but when I called from index.html than it is not sorting Data
eventhough i assign id to employe Id.
Any help on this topic would be GREAT!!!
Index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Spry HTML Panel</title>
<script src="widgets/htmlpanel/SpryHTMLPanel.js"
language="javascript" type="text/javascript"></script>
<link rel="stylesheet" type="text/css"
href="css/samples.css" />
<script type="text/javascript"
src="includes/xpath.js"></script>
<script type="text/javascript"
src="includes/SpryData.js"></script>
<script type="text/javascript">
var dsEmployees = new
Spry.Data.XMLDataSet("data/employees-01.xml",
"employees/employee");
</script>
<style type="text/css">
.HTMLPanelLoading {
background-color:#999999;
.HTMLPanelError {
background-color:#FF0000;
.HTMLPanelLoadingContent, .HTMLPanelErrorContent {
display: none;
</style>
</head>
<body>
<b>Jai Swaminarayan</b></br>
<p><a href="#"
onclick="hpanel.loadContent('test.html');return false;">Click
Me</a></p>
<div class="liveSample" id="samplepanel">
<p>This is some static content within an HTMLPanel
container.</p>
</div>
<script language="JavaScript" type="text/javascript">
var hpanel = new Spry.Widget.HTMLPanel("samplepanel");
</script>
</body>
</html>
test.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Static Table Sample</title>
</head>
<body>
<a href="#"
onclick="dsEmployees.setURL('data/employees-01.xml');
dsEmployees.loadData();">Data1</a>
<a href="#"
onclick="dsEmployees.setURL('data/employees-02.xml');
dsEmployees.loadData();">Data2</a>
<div id="Employees_DIV" spry:region="dsEmployees">
<table border="1">
<tr>
<th>Employee ID </th>
<th>Last Name </th>
<th>First Name </th>
<th>Phone</th>
<th>Username</th>
</tr>
<tr spry:repeat="dsEmployees">
<td>{@id}</td>
<td>{lastname}</td>
<td>{firstname}</td>
<td>{phone}</td>
<td>{username}</td>
</tr>
</table>
</div>
</body>
</html>

Spry self has no clue that you included a new region that way
so you got to tel it :)
you could add an Observer to you html panel..
hpanel.addObserver({onPostUpdate:function(){Spry.Data.initRegions();});

Similar Messages

  • Help with loading in the mx:html tag please

    Hi everyone,
    I have just started working on this air application, it is for a online comic site and will be used to upload the comics.  We alredy have html files for each of the sections and want to link to them, so far i have tried to do this using <mx:html ... and this works but only after you have clicked on one of the buttons, not on the first load.   Any ideas why??
    The source code is :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
    <mx:Sequence id="overview_b_sequence" duration="400">
    <mx:Resize targets="{[messages,ideas,last_upload,all_comics,upload_comics]}"  widthTo="0" heightTo="0"/>
    <mx:Move targets="{[ideas,last_upload,all_comics,upload_comics,messages]}" xTo="320" yTo="270"/>
    <mx:Resize targets="{[messages,ideas,last_upload,all_comics,upload_comics]}" duration="100" widthTo="20" heightTo="10"/>
    <mx:Pause duration="100" />
    <mx:Parallel duration="400" >
    <mx:Move target="{messages}" xTo="470.95" yTo="245.1" duration="100" />
    <mx:Move target="{ideas}" xTo="470" yTo="38" duration="100" />
    <mx:Move target="{last_upload}" xTo="10" yTo="38" duration="100" />
    <mx:Move target="{all_comics}" xTo="267.05" yTo="453.1" duration="100" />
    <mx:Move target="{upload_comics}" xTo="10" yTo="453.1" duration="100" />
    </mx:Parallel>
    <mx:Pause duration="100" />
    <mx:Parallel duration="400">
    <mx:Resize target="{messages}" widthTo="250" heightTo="200"/>
    <mx:Resize target="{ideas}" widthTo="250" heightTo="200"/>
    <mx:Resize target="{last_upload}" widthTo="452.95" heightTo="407.1"/>
    <mx:Resize target="{all_comics}" widthTo="452.95" heightTo="200"/>
    <mx:Resize target="{upload_comics}" widthTo="249.05" heightTo="200"/>
    </mx:Parallel>
    </mx:Sequence>
    <mx:Sequence id="messages_b_sequence">
    <mx:Resize targets="{[ideas,last_upload,all_comics,upload_comics]}" widthTo="0" heightTo="0"/>
    <mx:Move target="{messages}" xTo="10" yTo="38"/>
    <mx:Resize target="{messages}" widthTo="710" heightTo="615"/>
    </mx:Sequence>
    <mx:Sequence id="upload_comics_b_sequence">
    <mx:Resize targets="{[ideas,last_upload,all_comics,messages]}" widthTo="0" heightTo="0"/>
    <mx:Move target="{upload_comics}" xTo="10" yTo="38"/>
    <mx:Resize target="{upload_comics}" widthTo="710" heightTo="615"/>
    </mx:Sequence>
    <mx:Sequence id="share_ideas_b_sequence">
    <mx:Resize targets="{[upload_comics,last_upload,all_comics,messages]}" widthTo="0" heightTo="0"/>
    <mx:Move target="{ideas}" xTo="10" yTo="38"/>
    <mx:Resize target="{ideas}" widthTo="710" heightTo="615"/>
    </mx:Sequence>
    <mx:Sequence id="last_upload_b_sequence">
    <mx:Resize targets="{[upload_comics,ideas,all_comics,messages]}" widthTo="0" heightTo="0"/>
    <mx:Move target="{last_upload}" xTo="10" yTo="38"/>
    <mx:Resize target="{last_upload}" widthTo="710" heightTo="615"/>
    </mx:Sequence>
    <mx:Sequence id="all_comics_b_sequence">
    <mx:Resize targets="{[upload_comics,ideas,last_upload,messages]}" widthTo="0" heightTo="0"/>
    <mx:Move target="{all_comics}" xTo="10" yTo="38"/>
    <mx:Resize target="{all_comics}" widthTo="710" heightTo="615"/>
    </mx:Sequence>
    <mx:Panel width="750" height="700" layout="absolute" horizontalCenter="0" top="182" backgroundColor="#879DA8">
    <mx:Panel x="10" y="38" width="452.95" height="407.1" layout="absolute" title="Last uploaded comic 01" id="last_upload">
    </mx:Panel>
    <mx:Panel width="250" height="199.1" layout="absolute" fontFamily="verdana" title="Ideas" id="ideas" x="470.95" y="38">
        <mx:HTML id="full" width="100%" height="100%" location="http://www.adobe.com/"  />
        <mx:ViewStack x="0" y="0" id="ideas_vs" width="100%" height="100%">
            <mx:Canvas label="ideafull" width="100%" height="100%" id="ideafull">
            </mx:Canvas>
            <mx:Canvas label="ideasmall" width="100%" height="100%" id="ideasmall">
            <mx:HTML id="main" width="100%" height="100%" location="http://www.google.com/" />
            </mx:Canvas>
    </mx:ViewStack>
    </mx:Panel>
    <mx:Panel x="267.05" y="453.1" width="452.95" height="200" layout="absolute" title="All Comics" id="all_comics">
    </mx:Panel>
    <mx:ApplicationControlBar width="100%" fillAlphas="[1.0, 1.0]" fillColors="[#234863, #234863]" height="30">
    <mx:Button label="Overview" id="overview_button" click="overview_b_sequence.play();  ideas_vs.selectedChild=ideasmall;"/>
    <mx:Button label="Messages" id="messages_button"  click="messages_b_sequence.play();"/>
    <mx:Button label="Upload Comics" id="upload_comics_button" click="upload_comics_b_sequence.play();"/>
    <mx:Button label="All Comics" id="all_comics_b" click="all_comics_b_sequence.play();"/>
    <mx:Button label="Share Ideas" id="share_ideas_button" click="share_ideas_b_sequence.play(); ideas_vs.selectedChild=ideafull; "/>
    <mx:Button label="Log Out" id="log_out_button"/>
    </mx:ApplicationControlBar>
    <mx:Panel x="470.95" y="245.1" width="250" height="200" layout="absolute" title="Messages" id="messages" alpha="1.0">
    </mx:Panel>
    <mx:Panel x="10" y="453.1" width="249.05" height="200" layout="absolute" title="Upload Comics" id="upload_comics">
    </mx:Panel>  
    </mx:Panel>
    <mx:Image y="44" horizontalCenter="0" width="750">
    <mx:source>Pics/header.png</mx:source>
    </mx:Image>
    </mx:WindowedApplication>
    I have colourd what i think are the crutial bits, if anyone wants me to post the .air installer then i will gladly.
    Any surgestions are welcomed greatfully.
    Thanks
    TOM

    I did not see where you try to set content on load.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How to put String with html tags as it is into xml

    I am using apache dom API to create xml from java.
    I have a string with html tags in it .when I add the string to xml, its replacing all the "<"; with &lt and ">" with > I would like the html tags to look as it is instead of the > and & lt;. How can I acheive that
    this is the code snippet of what I am doing
    In java class
    String titleString = "<font color=red>This Is an Example of a Red Subject</font>"
    Document doc = new DocumentImpl();
    Element root = doc.createElement("bulletin");
    Element item = doc.createElement("title");
    item.appendChild(doc.createTextNode(titleString));
    In Xml it looks like below
    <title><font color=red>This Is an Example of a Red Subject</font></title>
    but I would like to have the xml like below
    <title><font color="red">This Is an Example of a Red Subject</font></title>
    Can you please suggest me whats the best way to acheive this.
    I appreciate all your help
    Thank you
    Suma

    One problem is that you don't understand escaping. If you re-read what you posted you'll see that what you say you get, and what you say you want, are identical. That's because you didn't escape one of the two properly. So your first step should be to find the section about escaping in Chapter 1 of your XML book and read it carefully. Figure out what you should have done here (yes, the same rules apply).
    However, to attempt to answer what I think your question is: if you have a String which contains markup, and you want to convert that String to XML elements, then you have to feed the String into an XML parser.

  • HTML Tags not moved in PDF

    Hello,
    I would like to print a report as a PDF and use the BI Publisher.
    This functions so far also quite well, only I have the problem
    I pass a HTML formatted text from a field CLob
    and with the PDF output the HTML tags are not moved.
    In the PDF document the HTML tags stands instead of a formatted heading,
    e.g.
    <*h1> This is the heading <*/h1> (without stars)
    What I must set / make with it I also a formatted one
    Heading agrees?
    Somebody an idea?
    Edited by: user10460383 on 14.09.2009 06:16
    Edited by: user10460383 on 14.09.2009 06:17

    True - a PDF isn't going to support HTML encoding. HTML will just be seen as more text, and displayed that way.
    You can strip out HTML tags fairly easily with a regular expression in your query SQL - this simply looks for text between < and > characters, and removes it. That should work for basic HTML formatting tags, but it isn't 100% (it won't handle <script> blocks correctly, for instance).
       select regexp_replace(myHTML, '<[^>]*>', '') as myText
       from myTable... Implementing a method to convert the HTML formatting into RTF formatting is also possible, but not a trivial task - you'd effectively have to replace each HTML tag with an RTF equivalent -- eg, replace <H1> with the RTF code to make a larger font, replace </H1> with RTF code to return the font to normal... etc...

  • Re: More control over html tags needed

    I have trying for a while to find an elegant solution to printing reports in such a way as to have headers and footers repeated on every printed page.
    <BR><BR><BR>
    The two main solutions seem to be either using PDF (using FOP) or controlling the size of the regions anually (by hardcoding heights etc.). I am confident that with more control over the html tags (or the ability to place my own) around certain areas the problem could be solved very simply with CSS.
    <BR><BR><BR>
    What I would like is a way to change the way that Apex treats table headers.
    <BR><BR><BR>
    Presently it places the headers within a tbody tag and the uses th for every column. Ideally I would like to see this changes from tbody to thead. Given that the chances of this happening in the near future are minimal (not something that I am upset about as it would not be logical to change such things every time someone wants things to suite them better), I would like to be able to place a tag either before or after the tbody tag.
    <BR><BR><BR>
    Something like:
    <BR><BR><BR>
    div id="tableheaders"
    <BR><BR><BR>
    If anyone knows how to do this your help will be greatly appreciated. Given that, printing repeated headings can be controlled relatively simply.

    Hello Andrew,
    I believe the following might be of help - placing <thead> and </thead> around headers
    Regards,
    Arie.

  • Html tags not parsing in spry dataset

    Hello you all,
    I have a liitle master detail page setup which works perfectly except that the data that is pulled from a database and parsed by a spry dataset is not parsing the html tags. I am seeing things like <p></p><br/> etc. on the page. Can any one help with this.
    Message was edited by: jahflasher

    Set the columtype to HTML on the affecting row:
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/dataset.html#setcolumntype

  • Assigning value to jList similar to HTML tag select

    hi friends...
    Can we assign value to Jlist ..just like in html tag
    <select ">
    <option *value="val"* >Text</option>
    </select>
    Each row should have value assigned with it....when we select the row..it should return the hidden value..
    if it possible please reply
    thank u

    implement custom renderer which will show just text.The easier way is to override toString() for the custom class. JList by default uses toString to render the item.
    db

  • Recordset xml export WITH html tags

    Hi there,
    I am trying a rather simple thing (I hope) but cannot figure it out how to do it.
    I created a dynamic xml (.php) file using the export recordset as xml behaviour. The generated xml works fine when I use spry to display it. The downside is that html tags are converted to something like this (I understand that these are the greater then and lesser then signs used in html):
    <strong>fringilla</strong>
    In the html document where I use spry to display this xml, the < etc are converted back to <  and >, but the html is not rendered.
    I tried cdata, but somehow cannot get this to work. I also cannot get dsSpecials.setColumnType("quote_tekst", "html"); to render the xml as correct html.
    Can someone tell me how to do this? Database and xml are both utf-8.
    Kind regards and big thanks in advance if you can help (it is really appreciated ;-D),
    Ben

    Sorry about that, don't know what happened in that last post..formatting I guess, here's the whole reply - xml enclosed w/ a pre - thanks again.<br /><br />Hi Günter,<br /><br />Thanks so much for the info.  I have been diligently trying to use CDATA and read the generated XML, but still I'm not seeing the HTML text rendereed in my detail section.<br /><br />The XML is setup from my mySQL data as:<br /><pre> <br /><?xml version="1.0" encoding="UTF-8"?><br /><CurrentSpecials><br />     <special><br />          <name> Caribbean Sun </name><br />          <detail> <h1>special deal!!</h1><p style="color:#00f;"><strong>Join us</strong>!</h1> </detail><br />          <expire> 2007-08-31 00:00:00 </expire><br />          <rating> highest </rating><br />     </special><br />...<br /></pre><br />and I want the detail to render in my div (or I'll add a table/textarea...) as the html indicates.  I'm not having any luck w/ using CDATA for it - it's probably just me - I'm just starting out with this stuff.  Any pointers in the right direction? I'm getting the detail as {dsList:detail} and somehow need to say - this is html.  I've tried using javascript and php to render it.<br /><br />I could I guess just echo the detail on a mouseclick without a spry but didn't want to have to do all the implementation myself - I wanted to take advantage of dreamweaver's functionality! <br /><br />Thanks so much for looking at this - any help is so much appreciated!!

  • Query to extract HTML tag with data

    Hi All,
    I have a string.
    '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
    I want to extract a html tag including its opening & closing tab with data as
    if i say P1
    then the output should be
    '<P>THIS IS P1.</P>'
    for P2
    then the output should be
    <P>THIS IS P2.</P>
    please help me in writing this query with regular expression
    i have tried it as following but it is not giving desired result:
    WITH T AS
    SELECT
        '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
    FROM   
        DUAL
    SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
    Thanks & Regards
    Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PM

    Nimish Garg wrote:
    My requirement is to extract a <tag>data</tag> from a HTML/XML string
    where data contains any specified value.HTML is not XML.
    And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
    So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
    I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
    Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data.

  • How to set an attribute of a HTML tag with a value in the Servlet

    I have a HTML page and a Servlet.
    The HTML page sends a request to the Servlet.
    The Servlet has to read the contents of the HTML page. When the Servlet encounters the body tag it should set the bgcolor attribute of the body tag with a string(For eg.a string called color with a value blue) in the servlet.
    After doing this the Servlet has to update the original HTML page with the changes (in the body tag).
    I need a help on this.

    Hi sangee,
    you could get what you want to do by using a Java Server Page instead of both a HTML page and a Servlet.
    I should code something like this:
    <%Strung color="yourColor"%>
    <html><head><title></title></head>
    <body bgcolor="<%=color%>
    </body>
    </html>

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all!
    I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
    <span class="B01-K-ITAL">random text</span>
    To something like this:
    <em>random text</em>
    I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
    Anyone able to lend a hand?

    Here is my latest regular expression with Perl.   I think it matches the spirit of the request in the original post.
    Note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
    perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
    input text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
    output text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>

  • Issue with HTML tags visible in Outlook emails

    Hi everyone, I'm having an issue with a website I'm working on.
    On our site, we have a page that generates emails after certain events occur. These are sent to a forwarding address on our mail server, which is then sent to several users on our mail server. These users have their accounts set up in Outlook (one in 2007,
    one in Mac 2011).
    We're are having an issue where these emails are displaying in Outlook with all of the HTML tags in the email visible. One of the users spoke to Microsoft support, and they remoted in and went through their Outlook settings and were not able to find any issues
    there.
    This issue is not global exactly. When one of the users added their email to their iPhone, the email displayed correctly. We added a Gmail account and my work account (which I also access through Outlook) to the forwarding list, and it displayed correctly in
    both. When we view these emails in the server's webmail client, the emails display fine. The issue seems to be with some discrepancy between Outlook and our email server.
    I spoke to our webhost about the issue, and they swore up and down the issue had nothing to do with them, and that it had to be an Outlook issue. I've had several professional web developers analyze the code that creates these emails, and they found nothing
    wrong with it. Something that several of my colleagues and our webhost suggested is that the issue could be with the email headers. This is the header for the email, as viewed through Outlook:
    Return-Path: <[email protected]>
    X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on clubcrown.com
    X-Spam-Level: *
    X-Spam-Status: No, score=1.5 required=7.0 tests=HTML_MESSAGE,MIME_HTML_ONLY,
    NO_DNS_FOR_FROM,NO_RELAYS autolearn=no version=3.3.1
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: by x.com (Postfix, from userid 30)
    id 50F7123D9E; Tue, 11 Feb 2014 14:20:00 -0500 (EST)
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: by x.com (Postfix, from userid 10000)
    id EC28323DA2; Tue, 11 Feb 2014 14:19:58 -0500 (EST)
    To: [email protected]
    Subject: A wholesale order has been placed
    X-PHP-Originating-Script: 10000:thanks.php
    MIME-Version: 1.0
    Any help would be greatly appreciated. Let me know if more information is needed. Thank you.

    Glad to hear that you have found the solution. And thank you for sharing the solution here, it will be helpful to other community members who have same questions.
    Cheers,
    Steve Fan
    TechNet Community Support

  • XML with HTML Tags... (easy points) 11g question

    Dear Programming Gods,
    I have been researching this for about 2 weeks now, and I have hit the final road block.
    Using BI Publisher 11.1.1
    In APEX 4.0 I have a Rich Text Field. The data from the Rich Text Field is store in CLOB. The data has HTML formatting tags. I have a data model that selects the data. I create an xml which has the html tags. I export the xml and import it into MS Word using the BI Publisher add-in. I import my subtemplate which handles almost all of the formatting tags. I apply the template to the CLOB field so that the HTML formatting tags will be rendered when printed.
    The problem is this. The subtemplate is looking for this < and / > however BI publisher convters the tags stored in the CLOB from raw html tags to this &.lt; and &.gt; so the subtemplate can not match to it.
    Here is what I need to figure out and please explain it in very novice terms.
    When I generate and export the XML from BI Publisher how do I prevent it from converting my raw tags?
    Here is some further assistance when prepairing your answer.
    My subtemplate is based on the htmlmarkup.xsl from the following blog but has been modified heavily to include support for simple tables, more formatting such as subscripts and superscripts, ect...
    http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html
    I am also familliar with this blog but I do not understand how to implement it using BI 11g.
    http://blogs.oracle.com/xmlpublisher/2009/08/raw_data.html
    I have tried adding this to my layout but it doesnt seem to work.
    <xsl: element name="R_CLOB" dataType="xdo:xml" value="R_CLOB" / >
    Please, help me. I have to have this working in 4 days.
    Richard

    This did not work either. Here's more infor on what I have so far.
    My data template looks like this:
    <dataTemplate name="Data" description="Template">
         <parameters>
              <parameter name="p_person_id" dataType="character" defaultValue="1"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                                  select TEMPORARY_TEMPLATE_DATA.line_id as LABEL_line_ID,
    TEMPORARY_TEMPLATE_DATA.column_id as LABEL_column_ID,
    TEMPORARY_TEMPLATE_DATA.person_id as LABEL_PERSON_ID,
    TEMPORARY_TEMPLATE_DATA.label as LABEL_DATA
    from MY_BIO.clm_TEMPORARY_TEMPLATE_DATA TEMPORARY_TEMPLATE_DATA
    Where person_id = :p_person_id
    and style = 'L'
                             </sqlStatement>
              <sqlStatement name="Q2" parentQuery="Q1" parentColumn="LABEL_DATA">
                                  select TEMPORARY_TEMPLATE_DATA.LINE_ID as LINE_ID,
    TEMPORARY_TEMPLATE_DATA.COLUMN_ID as COLUMN_ID,
    TEMPORARY_TEMPLATE_DATA.label as COLUMN_LABEL,
    to_nclob(TEMPORARY_TEMPLATE_DATA.COLUMN_DATA) as  COLUMN_DATA,
    TEMPORARY_TEMPLATE_DATA.STYLE as STYLE,
    TEMPORARY_TEMPLATE_DATA.ATTRIBUTE as ATTRIBUTE,
    NVL(TEMPORARY_TEMPLATE_DATA.JUSTIFY,'L') as JUSTIFY
    from MY_BIO.clm_TEMPORARY_TEMPLATE_DATA TEMPORARY_TEMPLATE_DATA
    Where person_id =:p_person_id
    and label = :LABEL_DATA
    and style != 'L'
    Order by line_id, column_id
                             </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_LABEL" source="Q1">
                   <element name="LColumnData" value="label_data"/>
                   <group name="G_DATA" parentGroup="G_Label" source="Q2">
                        <element name="LineID" value="line_id"/>
                        <element name="ColumnID" value="column_id"/>
                        <element name="ColumnData" value="column_data"/>
                        <element name="Style" value="style"/>
                        <element name="Attribute" value="attribute"/>
                        <element name="Justify" value="justify"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    After running this data_template there was no change in the xml file generated see partial :  Note:
    my test actually has the B with the html tags
    </G_DATA>
    - <G_DATA>
    <LINEID>20</LINEID>
    <COLUMNID>1</COLUMNID>
    <COLUMNDATA>test test <B>my test</B></COLUMNDATA>
    <STYLE>R</STYLE>
    <ATTRIBUTE />
    <JUSTIFY>C</JUSTIFY>
    </G_DATA>
    - <G_DATA>
    <LINEID>21</LINEID>
    I loaded in to MS Word but there was no change documnet still look the same. I left the commands import file command and xsl:apply-templates command in the word document template.
    I really appreciate you helpiing me.
    cheryl

  • Tablespace usage report generated with html tags instead of text

    Hi ,
    We have a unix shell script scheduled to find tablespace usage and sends the report to our mail id.
    For the past few weeks(no changes idone in the script) the report is coming with html tags instead of text as below.
    </head>
    <body>
    <p>
    <table border='1' width='90%' align='center' summary='Script output'>
    <tr>
    <th scope="col">
    TABLESPACE_NAME
    </th>
    <th scope="col">
    CUR_USE_MB
    </th>
    <th scope="col">
    CUR_SZ_MB
    </th>
    <th scope="col">
    CUR_PRCT_FULL
    </th>
    <th scope="col">
    FREE_SPACE_MB
    </th>
    <th scope="col">
    MAX_SZ_MB
    </th>
    <th scope="col">
    OVERALL_PRCT_FULL
    </th>
    </tr>
    <tr>
    <td>
    SYSTEM
    </td>
    <td align="right">
    268
    </td>
    <td align="right">
    500
    </td>
    <td align="right">
    54
    </td>
    Is this any settings issue or anything to be modified in the script.Could you please reply..
    Regards,
    Bharath.
    Edited by: 870384 on Jul 6, 2011 1:17 AM

    Hi Sven W,
    Please find the sql below that is generating the tablespace usage report. In the staring of the script markup is set to ON and at the end it is set to OFF.Do you suggest any changes to this..?
    SET ECHO OFF
    SET PAGES 999
    SET MARKUP HTML ON SPOOL ON
    col tablespace_name format a15 trunc
    col cur_use_mb for 999999999
    col cur_sz_mb for 999999999
    col free_space_mb for 999999999
    col max_sz_mb for 999999999
    compute sum of cur_use_mb on report
    compute sum of cur_sz_mb on report
    compute sum of free_space_mb on report
    compute sum of max_sz_mb on report
    break on report
    spool tablespace.html
    select tablespace_name,
    round(sum(total_mb)-sum(free_mb),2) cur_use_mb,
    round(sum(total_mb),2) cur_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(total_mb)*100) cur_prct_full,
    round(sum(max_mb) - (sum(total_mb)-sum(free_mb)),2) free_space_mb,
    round(sum(max_mb),2) max_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(max_mb)*100) overall_prct_full
    from (select tablespace_name,sum(bytes)/1024/1024 free_mb,0 total_mb,0 max_mb from DBA_FREE_SPACE group by tablespace_name
    union select tablespace_name,0 current_mb,sum(bytes)/1024/1024 total_mb,sum(decode(maxbytes, 0, bytes, maxbytes))/1024/1024 max_mb
    from DBA_DATA_FILES group by tablespace_name) a group by tablespace_name;
    select owner,segment_name,segment_type,bytes/(1024*1024) size_m
    from dba_segments
    where tablespace_name = 'SYSTEM' and segment_name='FGA_LOG$' order by size_m desc;
    spool off;
    SET MARKUP HTML OFF SPOOL OFF

  • How to Read a program with  HTML tags from SO10

    Hi All,
    I have a html program in Standard text (SO10).But when I am trying read the program content using FM:  READ_TEXT, the html tags <b> </p> etc are creating problem. 
    They are retrieved as <(><<)>b>.
    What should we do to get same/original text as in SO10?  Is there any other FM for that? Any other way to achieve this?
    Thanks & Regards,
    Vimalan Ram

    here is the code sample.
    after reading the text using READ_TEXT you have to use CONVERT_ITF_TO_ASCII to convert the contents.
    DATA: itf_tab TYPE STANDARD TABLE OF   tline ,
    wa_itf TYPE tline .
    DATA: c_datatab TYPE tdtab_c132 .
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       client                        = sy-mandt
        id                            = 'ST'
        language                      = sy-langu
        name                          = 'Y_RAJA_HTML'
        object                        = 'TEXT'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        = HEADER
      TABLES
        lines                         = itf_tab
    EXCEPTIONS
       id                            = 1
       language                      = 2
       name                          = 3
       not_found                     = 4
       object                        = 5
       reference_check               = 6
       wrong_access_to_archive       = 7
       OTHERS                        = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
    EXPORTING
    *   CODEPAGE                = '0000'
    *   FORMATWIDTH             = 72
       language                = sy-langu
       tabletype               = 'ASC'
    *   TAB_SUBSTITUTE          = ' '
    *   LF_SUBSTITUTE           = ' '
    *   REPLACE_SYMBOLS         = 'X'
    *   REPLACE_SAPCHARS        = 'X'
    IMPORTING
    *   FORMATWIDTH_E           = FORMATWIDTH_E
    *   X_DATATAB               = X_DATATAB
       c_datatab               = c_datatab
    *   X_SIZE                  = X_SIZE
      TABLES
        itf_lines               = itf_tab
    EXCEPTIONS
       invalid_tabletype       = 1
       OTHERS                  = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

Maybe you are looking for

  • How to truncate the text in a table column

    Hi all, I have a text column in a table RN. the column length is varchar2(240). When the text is too long I want to only display 20 text and followed by '...' So I change the xmlfile of tableRN maximumLength="240" columns="80" but the text is still l

  • Unknown error while trying to build and test web service

    Hi, I get this error while building my web service.It says "An unexpected exception occurred while attempting to process the classes and annotations for this Web Service. Error: Unknown KNEX string: description.null" Pasted below is the output on the

  • Photo Gallery with lightbox2 help

    Hey people Good news i finally got my photo gallery from bc to show in lightbox 2 using .xlm. the only problem im having is how to layout the thumb pictures. if you have a look here http://kookaburracreekretreat2.businesscatalyst.com/the-house.html Y

  • Simulated device with visual basic 6.0

    It is possible to run a VB application using simulated devices? I have created a simulated PCI6024E, but my VB application does not find the device. Thanks.

  • Legacy-XI-R/3

    How do we achieve the scenario Legacy System (Oracle)-XI-R/3 ... Is there any Web Blog which discusses this scenario.....How many interface we'll be using for this scenario....Thank you...