Xml css help!

This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C6AB1B.755FB0F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Yes I want to use css for this.
I have an xml doc being pulled into my flash. Text is fine
except =
wherever I try to assign a style. It's also defaulting to the
black =
color in flash (I couldn't find a way not to select a color
or style in =
flash for the font) instead of the blue specified in the css
doc. In =
that first image/description, it cuts off at the <em>
tag.
Please help me understand what I'm doing wrong.
XML doc:
<?xml version=3D"1.0" encoding=3D"utf-8"
standalone=3D"yes"?>
<?xml-stylesheet type=3D"text/css"
href=3D"xmlstyles.css"?>
<!DOCTYPE images [
<!ELEMENT images (#PCDATA)*>
<!ELEMENT pic (image, thumbnails, caption, desc)>
<!ELEMENT image (#PCDATA)*>
<!ELEMENT thumbnails (#PCDATA)*>
<!ELEMENT caption (#PCDATA)*>
<!ELEMENT desc (#PCDATA)*>
]>
<images>
<pic>
<image>images/0.jpg</image>
<thumbnails>images/thumbs/wickham.swf</thumbnails>
<caption>An Inspired Beginning</caption>
<desc>Edward Virginius Valentine was born in Richmond
in 1838. A visit =
to the 1853 New York World's Fair with his father inspired
him to become =
an artist. Valentine studied in Paris and Italy from 1859 to
1861. He =
was granted permission to study under Berlin sculptor August
Kiss, =
<em>who had created the piece that first ignited
Valentine's artistic =
inspiration, Amazon Attacked by a Tiger.</em> In the
spring of 1865, the =
deaths of both Kiss and his father, Mann Valentine, led him
to return to =
his home in Richmond, Virginia.
</desc>
</pic>
etc., etc., ...
CSS doc: (xmlstyles.css)
em {
font-style: italic;
para {=20
font-size: 12px;
desc {
font-size: 12px;
color: #0000CC;
------=_NextPart_000_0008_01C6AB1B.755FB0F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2912"
name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Yes I want to
use css for =
this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have an xml
doc being pulled into my =
flash. Text=20
is fine except wherever I try to assign a style. It's also
defaulting to =
the black color in flash (I couldn't find a
way <EM>not</EM> =
to=20
select a color or style in flash for the
font) instead of the =
blue=20
specified in the css doc. In that first image/description, it
cuts off =
at the=20
&lt;em&gt; tag.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Please help me
understand what I'm =
doing=20
wrong.</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2><STRONG>XML
doc:</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;?xml
version=3D"1.0" =
encoding=3D"utf-8"=20
standalone=3D"yes"?&gt;<BR>&lt;?xml-stylesheet
type=3D"text/css"=20
href=3D"xmlstyles.css"?&gt;<BR>&lt;!DOCTYPE
images =
[<BR> &lt;!ELEMENT images=20
(#PCDATA)*&gt;<BR>  
&lt;!ELEMENT pic (image, thumbnails, =
caption,=20
desc)&gt;<BR>   &lt;!ELEMENT
image =
(#PCDATA)*&gt;<BR>  =20
&lt;!ELEMENT thumbnails
(#PCDATA)*&gt;<BR>   &lt;!ELEMENT =
caption=20
(#PCDATA)*&gt;<BR>  
&lt;!ELEMENT desc=20
(#PCDATA)*&gt;<BR> ]&gt;<BR>&lt;images&gt;<BR>   =20
&lt;pic&gt;<BR>       =20
&lt;image&gt;images/0.jpg&lt;/image&gt;<BR>  &lt;thumbnails&gt;=
images/thumbs/wickham.swf&lt;/thumbnails&gt;<BR>    &=
nbsp;  =20
&lt;caption&gt;An Inspired=20
Beginning&lt;/caption&gt;<BR>  &lt;desc&gt;Edward
Virginius =
Valentine=20
was born in Richmond in 1838. A visit to the 1853 New York
World's Fair =
with his=20
father inspired him to become an artist. Valentine studied in
Paris and =
Italy=20
from 1859 to 1861. He was granted permission to study under
Berlin =
sculptor=20
August Kiss, &lt;em&gt;who had created the piece that
first ignited =
Valentine=92s=20
artistic inspiration, Amazon Attacked by a
Tiger.&lt;/em&gt; In the =
spring of=20
1865, the deaths of both Kiss and his father, Mann Valentine,
led him to =
return=20
to his home in Richmond,=20
Virginia.<BR>  &lt;/desc&gt;<BR>   =20
&lt;/pic&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>etc., etc.,
...</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2><STRONG>CSS doc:=20
(xmlstyles.css)</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>em
{<BR> font-style: =
italic;<BR>}<BR>para {=20
<BR> font-size: 12px;<BR>}<BR>desc
{<BR> font-size:=20
12px;<BR> color:
#0000CC;<BR>}</FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01C6AB1B.755FB0F0--

Thank you! I will check it out.
Raymond Basque" <[email protected]> wrote
in message
news:[email protected]...
>
>
> You need to load the stylesheet using a
TextField.StyleSheet object and
> then
> assign it to the TextField. There are examples in the
Help documents.
>
>
>
>
> "Dirk" <[email protected]> wrote in
message
> news:[email protected]...
> Yes I want to use css for this.
> I have an xml doc being pulled into my flash. Text is
fine except wherever
> I
> try to assign a style. It's also defaulting to the black
color in flash (I
> couldn't find a way not to select a color or style in
flash for the font)
> instead of the blue specified in the css doc. In that
first
> image/description, it cuts off at the <em> tag.
> Please help me understand what I'm doing wrong.
>
>
> XML doc:
> <?xml version="1.0" encoding="utf-8"
standalone="yes"?>
> <?xml-stylesheet type="text/css"
href="xmlstyles.css"?>
> <!DOCTYPE images [
> <!ELEMENT images (#PCDATA)*>
> <!ELEMENT pic (image, thumbnails, caption, desc)>
> <!ELEMENT image (#PCDATA)*>
> <!ELEMENT thumbnails (#PCDATA)*>
> <!ELEMENT caption (#PCDATA)*>
> <!ELEMENT desc (#PCDATA)*>
> ]>
> <images>
> <pic>
> <image>images/0.jpg</image>
>
<thumbnails>images/thumbs/wickham.swf</thumbnails>
> <caption>An Inspired Beginning</caption>
> <desc>Edward Virginius Valentine was born in
Richmond in 1838. A visit to
> the 1853 New York World's Fair with his father inspired
him to become an
> artist. Valentine studied in Paris and Italy from 1859
to 1861. He was
> granted permission to study under Berlin sculptor August
Kiss, <em>who had
> created the piece that first ignited Valentine's
artistic inspiration,
> Amazon Attacked by a Tiger.</em> In the spring of
1865, the deaths of both
> Kiss and his father, Mann Valentine, led him to return
to his home in
> Richmond, Virginia.
> </desc>
> </pic>
> etc., etc., ...
>
> CSS doc: (xmlstyles.css)
> em {
> font-style: italic;
> }
> para {
> font-size: 12px;
> }
> desc {
> font-size: 12px;
> color: #0000CC;
> }
>
>

Similar Messages

  • Xml xsl help needed

    Hi there
    I have created an xsl in DW CS3. It is displaying a news feed
    properly with the xml feeds title and description ..however ..I
    want to add the story link from the xml to the title of each of the
    news headlines ... I can't seem to do it ..as the text of the url
    link appears. Can anyone help with this? Below is the xsl (without
    the link from xml) and the xml feed is:
    http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=ALOPE&SECTION=HOME
    thanks Rob
    <?xml version="1.0" encoding="utf-8"?><!--
    DWXMLSource="
    http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=CAANR&SECTION=HOME"
    --><!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp "&#160;">
    <!ENTITY copy "&#169;">
    <!ENTITY reg "&#174;">
    <!ENTITY trade "&#8482;">
    <!ENTITY mdash "&#8212;">
    <!ENTITY ldquo "&#8220;">
    <!ENTITY rdquo "&#8221;">
    <!ENTITY pound "&#163;">
    <!ENTITY yen "&#165;">
    <!ENTITY euro "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8"/>
    <xsl:template match="/"><link
    href="Level1_Verdana.css" rel="stylesheet" type="text/css"
    media="all" /><link href="Level1_Arial.css" rel="stylesheet"
    type="text/css" />
    <xsl:for-each select="rss/channel/item">
    <table width="500" border="0">
    <tr>
    <td bgcolor="#CCCCCC"><xsl:value-of
    select="title"/></td>
    </tr>
    <tr>
    <td><xsl:value-of
    select="description"/></td>
    </tr>
    </table>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>

    > it ..as the text of the url link appears. Can anyone
    help with this?
    > Below is
    > the xsl (without the link from xml) and the xml feed is:
    >
    http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=ALOPE&SECTION=HOME
    In your XSL:
    <a href="{link}"><xsl:value-of select="title"
    /></a>
    -Darrel

  • Web.xml & css

    Hello,
    i would like to make a web.xml config that forwards all requests to 1 controller except for the css witch should be accessed directly .. is this possible ?
    Also if possible a user should not be able to directly access .jsp files.
    Right now i have:
    <web-app>
    <servlet>
    <servlet-name>Controller</servlet-name>
    <display-name>Controller</display-name>
    <servlet-class>be.psb.stockdb.web.Controller</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>/servlet/be.psb.stockdb.web.Controller</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>
    But like this it is not possible to access the css. I hope there is a better solution than to to write a servlet that just writes the css to the client ..
    Any help would be appreciated,
    tnx

    hi,
    thanks for your comment.
    I should have mentionend that i already made the whole application (with just jsp/servlet technology), so switching to struts now is no option.
    I'm just having problems with the css because the clients dont seem to have permission to acces the css-file.
    So at the moment im using :
    <style><jsp:include page="themes/stockdatabase.css"/></style>
    it would be nicer to give acces to the css file in the web.xml file and use:
    <link href="/themes/stockdatabase.css" rel="stylesheet" type="text/css" />
    but i cant figure out how to do that.
    2nd problem i have is that the users shound be able to access the .jsp's directly (they can atm). I just use a template.jsp which is accessed by the controller:
    // forward everything to /template.jsp
    RequestDispatcher rd = request.getRequestDispatcher("/template.jsp");
         rd.forward(request, response);
    Then the template.jsp includes other jsp's specified by the controller:
    <% String view = ((String)request.getAttribute("view"));
    if ( view != null ){       
    %> <jsp:include page="<%= view %>" /> <%
    So basicly i need a web.xml file that:
    gives access for css files to everyone.
    give access to the template.jsp file to everyone
    direct all other requests to the controller.
    Hope this was a bit clearer :)

  • Reg: XML PUBLISHER HELP

    Hi all,
    I am building report using xml publisher. Problem i facing was ,
    1. I created the template in RTF and attached to data definition
    for eg: my rtf is
    sno item quantity price ( I created this field in table structure and mapped to xml data)
    Total Price ( this also i am getting from data definition)
    The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
    Inspected By Approved By
    1)
    ________________________________ 1)________________________________ Store Incharge : ______________________
    2)
    ________________________________ 2) ________________________________ Received : _______________________
    3)
    ________________________________ 3 ________________________________ Prepared By : _______________________
    NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
    2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
    3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
    4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
    Actually my need
    Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
    How to resolve this... any approach most welcome. Wat changes i have to make.

    Hi Shruti,
    You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
    Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
    Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
    Hope this helps.
    Thanks!

  • XML Publisher Help

    Hi,
    We currently have a payslip report that has been developed using Oracle reports, but for this to run we have to change our NLS_LANG setting from UTF8 to WE8ISO8859P1.
    The problem with this is to apply patches Oracle have told us we need to have the NLS_LANG set to UTF8.
    As a result Oracle have said that:
    The only available workaround for generating PDF on a UTF8 character set instance is to install and utilize the XML Publisher product or upgrade to E-Business Suite to Release 12.
    We don't have any plans to upgrade to Release 12, so I am looking to use XML Publisher. I have a couple of questions:
    Is this an add-on?
    Where is the best place to obtain navigation guides and tutorials to teach myself this?
    I have had a look at some of the pre-defined templates already and I am not sure how to create my own rtf file so that my required fields are passed to the template.
    Any help would be greatly appreciated
    Many Thanks
    Martin

    Hi Shruti,
    You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
    Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
    Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
    Hope this helps.
    Thanks!

  • Error in my build.xml file (help with spotting syntax error requested)

    Hi
    I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
    It says:
    Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
    The XML file itself:
    <project basedir="." default="deploy" name="concepts">
    <property name="src.dir" value="src"></property>
    <property name="build.dir" value="${basedir}/build"></property>
    <property name="build.lib" value="${build.dir}/lib"></property>
    <property name="dist.dir" value="dist"></property>
    <property name="classes.dir" value="${build.dir}/classes"></property>
    <property name="build.etc" value="${src.dir}/etc"></property>
    <property name="build.resources" value="${src.dir}/resources"></property>
    <property name="lib.dir" value="lib"></property>
    <property name="web-inf.dir" value="WEB-INF"></property>
    <property name="war.name" value="concepts"></property>
    <property file="../common.properties"></property>
    <target name="init">
    <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
    </target>
    <target name="deploy" depends="clover-yes, clover-no">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
    <include name="org/apache/commons/fileupload/**/*.java" />
    <include name="com/portalbook/portlets/**/*.java" />
    <include name="com/portalbook/portlets/content/**/*.java" />
    </javac>
    <target depends="init" name="compile">
    <javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
    <src>
    <pathelement location="${src.dir}"></pathelement>
    </src>
    <classpath>
    <fileset dir="${lib.dir}">
    <include name="*.jar">
    </include>
    </fileset>
    </classpath>
    </javac>
    </target>
    <target depends="compile" name="war">
    <war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
    <classes dir="${classes.dir}"></classes>
    <lib dir="${lib.dir}"></lib>
    <webinf dir="${web-inf.dir}"></webinf>
    </war>
    </target>
    <!-- create the portal-concepts-lib.jar -->
    <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
    </jar>
    <jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
    <fileset dir="${build.resources}/concepts-war"></fileset>
    </jar>
    <!-- concepts.ear -->
    <copy todir="${build.resources}/concepts-ear">
    <fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
    </copy>
    <jar jarfile="${build.lib}/concepts.ear">
    <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
    </fileset>
    </jar>
    <target depends="deploy" name="explode">
    <taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
    <explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
    </target>
    <target depends="war" name="all"></target>
    <target name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
    </target>
    </project>
    I am a little inexperienced in XML files. So I am unable to spot the error.
    I would greatly appreciate it, if some kind soul were to help me out.
    thanks a lot

    The tag
    <target name="deploy" depends="clover-yes, clover-no">...is never closed.
    close that tag:
    <target name="deploy" depends="clover-yes, clover-no">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
              <include name="org/apache/commons/fileupload/**/*.java" />
              <include name="com/portalbook/portlets/**/*.java" />
              <include name="com/portalbook/portlets/content/**/*.java" />
         </javac>
    </target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.

  • Methods in XML--pL help

    I have string...as
    String xstr="<?xml version=\"1.0\"?>\n"+
    "<UserGroups>\n<u_bit><![CDATA[1]]></u_bit>\n"+
    "<u_title><![CDATA[public]]></u_title>\n<u_description><![CDATA[Pages are available to all visitors - no restrictions are applied]]></u_description>\n"+
    "<u_used><![CDATA[1]]></u_used>\n<u_fromname/>\n<u_fromemail/>\n<pw_email/>\n<u_user/>\n<u_password/>\n</UserGroups>"+
    I am trying to form a xmlDoc using String Reader as follows..
    java.io.Reader reader = new java.io.StringReader(xstr);
         org.xml.sax.InputSource source = new org.xml.sax.InputSource(reader);
         org.w3c.dom.Document xmlDoc=null;
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         xmlDoc = builder.parse(source);           
         Element xmlRoot=xmlDoc.getDocumentElement();
         Table_Name=xmlRoot.getNodeName();
         NodeList oNodeList = xmlRoot.getChildNodes();
         Node PNode=oNodeList.item(0);
         But at the end...ONodeList.item(0)...does not give anything...Am I doing anything wrong...Pl help if possible soon
    smita

    since Value is within the CDATA tag...You see a "CDATA tag", as you call it, in your XML, but the parser strips that all off and normalizes it to an ordinary string. So writing
    <![CDATA[public]]>
    is exactly the same as writing
    public
    and the parser treats them identically. So identically, in fact, that there is no way for you to find out whether CDATA was used at all.
    Sorry, that doesn't answer your actual question, but hopefully it prevents you looking in the wrong direction.

  • Procedure to generate invoice in xml---please help

    Hi all,
    I have to write code review of a pakage which contain procedure to generate invoice in XML.The procedure contain two
    files .pkb and .pks.All i know is that it will deliver elemt of the post script layout.?But i dont understand what it mean nor i am able to understand the code.I dont have any prior knowledge about this.Please help me and tell me any tutorial to understand and know how this is done.
    Also i have pasted some part of code here .please help me in understanding what is going on.
    help help help
    * GET_INVOICE_XML
    FUNCTION GET_INVOICE_XML(inInvId NUMBER) RETURN CLOB IS
    BEGIN
      IF NOT isClobReady THEN
        dbms_lob.createtemporary(invClob, TRUE);
        isClobReady := TRUE;
      ELSE
        dbms_lob.trim(invClob, 0);
      END IF;
      vInvoice :=
        XML_VER_STR || NL ||
        ' <!DOCTYPE INVOICE_FILE SYSTEM "invoicfile.dtd">' || NL ||
        '<INVOICE_FILE VERSION="1.1">' || NL;
      GEN_PROLOG(InvId);
      GEN_INVOICE(InvId, 1);
      vInvoice := vInvoice ||
        '</INVOICE_FILE>' || NL || NL;
      APPEND_INVOICE(0);
      RETURN invClob;
    END GET_INVOICE_XML;
    PROCEDURE GEN_INVOICE(InvId NUMBER, inITBMode NUMBER) IS
    vP1    PLS_INTEGER;
    vP2    PLS_INTEGER;
    vAtt     BOOLEAN;
    inv      ABCINVOICE%ROWTYPE;
    cdr_no   NUMBER;
    t0       TIMESTAMP;
    t1       TIMESTAMP;
    execTime NUMBER(12,6);
    BEGIN
      t0 := LOCALTIMESTAMP;
      SELECT * INTO inv FROM ABCINVOICE WHERE OACT = InvId;
      dti := inv.DTI;
      SELECT NVL(SUM(cdrNO),0) INTO cdr_no FROM ABCCONTRACTS WHERE OACT = InvId AND ITB IN ('Y', 'F');
      vInvoice := vInvoice ||
        ' <INVOICE>' || NL ||
        '  <HEADER>' || NL ||
        '   <SEQ>' || inv.SEQ || '/' || inv.PROC_ID || '</SEQ>' || NL ||
        '   <LEN ';
      vPos1 := INSTR(inv.LEN, '|', 1, 1);
      vInvoice := vInvoice || 'INV="' || SUBSTR(inv.LEN, 1, vPos1-1) || '" ';
      vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
      vInvoice := vInvoice || 'BAL="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" ';
      vPos1 := INSTR(inv.LEN, '|', vPos2+1, 1);
      vInvoice := vInvoice || 'DET="' || SUBSTR(inv.LEN, vPos2+1, vPos1-vPos2-1) || '" ';
      vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
      vInvoice := vInvoice || 'PDET="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" ';
      vPos1 := INSTR(inv.LEN, '|', vPos2+1, 1);
      vInvoice := vInvoice || 'ITM="' || SUBSTR(inv.LEN, vPos2+1, vPos1-vPos2-1) || '" ';
      vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
      vInvoice := vInvoice || 'PITM="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" NTF="' ||
        SUBSTR(inv.LEN, vPos2+1) || '"/>' || NL;
      vInvoice := vInvoice ||
        '   <BAR>' || inv.BAR || '</BAR>' || NL ||
        '   <BCD>' || inv.BCD || '</BCD>' || NL ||
        CASE WHEN inv.BIC IS NULL THEN '' ELSE '   <BIC>' || inv.BIC || '</BIC>' || NL END ||
        '   <REF>' || inv.REF || '</REF>' || NL ||
        '   <OHX>' || inv.OHXACT || '</OHX>' || NL ||
        '   <CID>' || inv.CID || '</CID>' || NL ||
        '   <CCO>' || inv.CCO || '</CCO>' || NL ||
        '   <CND>' || inv.CND || '</CND>' || NL ||
        '   <PBF>' || inv.PBF || '</PBF>' || NL ||
        '   <DTI>' || inv.DTI || '</DTI>' || NL ||
        '   <DTD>' || inv.DTD || '</DTD>' || NL ||
        '   <DPS>' || inv.DPS || '</DPS>' || NL ||
        '   <DPE>' || inv.DPE || '</DPE>' || NL ||
        '   <DAS>' || inv.DAS || '</DAS>' || NL ||
        '   <DAE>' || inv.DAE || '</DAE>' || NL ||
        '   <PAY>' || inv.PAY || '</PAY>' || NL ||
        '   <NAM>' || ABCUTIL.CONVERT_POL_CHAR(inv.NAM) || '</NAM>' || NL ||
        CASE WHEN inv.ADS1 IS NULL THEN '' ELSE '   <ADS>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADS1) || '</ADS>' || NL END ||
        CASE WHEN inv.ADS2 IS NULL THEN '' ELSE '   <ADS>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADS2) || '</ADS>' || NL END ||
        '   <ADZ>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADZ) || '</ADZ>' || NL ||
        '   <NIP>' || inv.NIP || '</NIP>' || NL ||
        '   <REG>' || inv.REG || '</REG>' || NL ||
        '   <PES>' || inv.PES || '</PES>' || NL ||
        '   <BCY>' || inv.BCY || '</BCY>' || NL ||
        '   <TXT>' || ABCUTIL.CONVERT_POL_CHAR(inv.TXT) || '</TXT>' || NL ||
        '   <GRO>' || TO_CHAR(inv.GRO, 'FM999990.90') || '</GRO>' || NL ||
        '   <FBL>' || inv.FBL || '</FBL>' || NL;
      IF inv.STP > 0 THEN
        GEN_TEXT(inInvId, 1);
      END IF;
      vInvoice := vInvoice ||
        '  </HEADER>' || NL ||
        '  <ADDRESS>' || NL ||
        '   <ENV>' || inv.ENV || '</ENV>' || NL ||
        '   <TNA>' || ABCUTIL.CONVERT_POL_CHAR(inv.TNA) || '</TNA>' || NL ||
        CASE WHEN inv.TAS1 IS NULL THEN '' ELSE '   <TAS>' || ABCUTIL.CONVERT_POL_CHAR(inv.TAS1) || '</TAS>' || NL END ||
        CASE WHEN inv.TAS2 IS NULL THEN '' ELSE '   <TAS>' || ABCUTIL.CONVERT_POL_CHAR(inv.TAS2) || '</TAS>' || NL END ||
        '   <TAZ>' ||ABCUTIL.CONVERT_POL_CHAR(inv.TAZ) || '</TAZ>' || NL;
      GEN_TEXT(inInvId, 2);
      vInvoice := vInvoice ||
        CASE WHEN inv.MTX  IS NULL THEN '' ELSE '   <MTX>' || inv.MTX  || '</MTX>' || NL END ||
        '  </ADDRESS>' || NL;
      APPEND_INVOICE(0);
      IF inv.BCY <> '99' THEN
        GEN_INVOICE_BILLING(inInvId);
        GEN_BALANCE(inInvId);
        vPos1 := INSTR(inv.LEN, '|', 1, 2) + 1;
        vPos2 := INSTR(inv.LEN, '|', vPos1, 1);
        vPos1 := SUBSTR(inv.LEN, vPos1, vPos2 - vPos1);
        IF vPos1 > 1 THEN
          GEN_SUMMARY(inInvId);
        END IF;
      END IF;
      vInvoice := vInvoice || ' </INVOICE>' || NL;
      APPEND_INVOICE(0);
    END GEN_INVOICE;Edited by: BluShadow on 28-Aug-2012 09:46
    added {noformat}{noformat} tags for readability. Please read: {message:id=9360002}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Not quite sure what you want to know about it.
    If you want a code review of it, I can tell you it's very poor code, because that's not how to generate XML data in Oracle. Oracle has built in XML functionality for generating such data, and doesn't require hard-coding XML tags.
    Here's the Oracle documentation...
    http://tahiti.oracle.com/
    pick your database version and search for things like XDB, SQLX or more specifically XMLELEMENT, XMLAGG, XMLATTRIBUTES etc.

  • Xml transfornation help  dump help

    HI ,
    I have this string type xml and it coming from internal table and i want to parse it to abap internal table, i follow some example that in the forum  and i facing an dump ,do some one can help.
    Regards
    DATA: BEGIN OF wa,
             key TYPE string,
             val TYPE string,
           END OF wa.
    DATA it_data LIKE TABLE OF wa.
    START-OF-SELECTION.
    DATA:  xml_string TYPE string
          VALUE '<determination><deter key = "00009" value = "Johan"/><deter key = "1000" value = "GSS"/></determination>'.
      CALL TRANSFORMATION z_xml_to_itab
           SOURCE  XML xml_string
           RESULT  itab = it_data.
    This is what i write on TR. strans
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="ITAB"/>
      <tt:template>
        <determination>
          <tt:loop name="a" ref=".ITAB">
            <deter>
              <tt:attribute name="key" ref="$a.akey" name="val" ref="$a.aval" />
            </deter>
          </tt:loop>
        </determination>
      </tt:template>
    </tt:transform>
    When i check on the debugger the error is in line :
       <tt:attribute name="key" ref="$a.akey" name="val" ref="$a.aval" />
    the dump is :
      An exception occurred that is explained in detail below.
      The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not
       caught and
      therefore caused a runtime error.
      The reason for the exception is:
      XML matching error
      Expected was attribute: "val" [ ] Read was element-start: "deter" [ ].
    What i miss here ?????,please help.
    Regards
    Joy
    Edited by: Joy Stpr on Aug 3, 2009 9:54 AM

    HI Siva,
    Thanks a lot,
    i change it like u tell and i facing other dump,
    do u have an idea.
    this is exactly the code that i write :
    DATA: BEGIN OF wa,
             key TYPE string,
             value TYPE string,
           END OF wa.
    DATA it_data LIKE TABLE OF wa.
    START-OF-SELECTION.
      DATA:  xml_string TYPE string
            VALUE '<determination><deter key = "00009" value = "Johan"/><deter key = "1000" value = "GSS"/></determination>'.
      CALL TRANSFORMATION ztest_xml_009
           SOURCE  XML xml_string
           RESULT  itab = it_data.
    This is  what i write in strans
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="ITAB"/>
      <tt:template>
        <determination>
          <tt:loop name="a" ref=".ITAB">
            <deter>
           <tt:attribute name="key" ref="$a.key" name="value" ref="$a.value" />
            </deter>
          </tt:loop>
        </determination>
      </tt:template>
    </tt:transform>
    And this is the dump
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not
         caught and
        therefore caused a runtime error.
        The reason for the exception is:
        XML matching error
        Expected was attribute-end: "determination" [ ] Read was text: "Johan" [ ].
    Can i help please :
    U can just copy and paste the code and u get the same dump that i am facing
    Thanks and best Regards
    jOy
    Edited by: Joy Stpr on Aug 4, 2009 8:57 AM

  • XML Gurus: help with cloning a node without using clone!

    Dear all,
    I have to copy one piece of XML from one part of the document to another. Unfortunately I cannot simply do a copy and paste:
    Node nodeLeaf = nodeChild.cloneNode(true);
    nodeAncestor.appendChild(nodeLeaf);
    because some fragments of the nodeLeaf mustn't be copied (depending on the node value)
    So I cannot make a deep clone of the leaf.
    I have to make a clone of nodeLeaf by myself. (Copying its child with a recursive function)
    I have built a recursive function but I cannot understand why it doesn't work correclty (text values are skipped and also some pieces of the xml aren't copied correclty)
    // Passing the full leaf and a leaf with only the first tag, under which I clone manually the nodes.
    Node copyNode = appendNodes(nodeLeaf, nodeLeaf.cloneNode(false));
    private Node appendNodes(Node node, Node copyNode) {
    NodeList kids = node.getChildNodes();
    int length = kids.getLength();
    if (kids != null) {
    for (int ii = 0; ii < length; ii++) {
    Node nodeKid = kids.item(ii);
    copyNode.appendChild(nodeKid.cloneNode(false));
    appendNodes(nodeKid,nodeKid);
    return copyNode;
    Anybody can give me a help ?
    thanks a lot
    Francesco

    Here are a couple of suggestions:
    1) General stuff.
    NodeList kids = node.getChildNodes(); will always generate a NodeList. It may have no entries, but there is no need to check for if (kids != null). Your for loop will do nothing if the length is zero.
    2) You need to change your code as follows:
    for (int ii = 0; ii < length; ii++)
       Node nodeKid = kids.item(ii);
       Node newOutputNode = nodeKid.cloneNode(false);
       copyNode.appendChild(newOutputNode);
       appendNodes(nodeKid,newOutputNode);
    }Dave Patterson

  • Flash XML file help

    I am trying to add multiple flash files to my website...the
    only way these seem to work is if the swf and corresponding xml
    file are all on the root of the website directory. I would have
    liked to organize them into files to sort.
    My problem is that many of these flash files (mainly
    purchased) have the same xml file, so I cannot use these together
    on the root. Thus, I need to either rename in the flash the xml
    file or figure out how to put into folders...please help!
    -Josh

    ANSWER: I figured it out myself. I am just replying to let
    everybody else know how I fixed it. I had the full URL in the load
    request and apparently some Flash players don't like this. I put a
    link to the file without the domain name and everybody is working
    fine. The load function, Flash, or something could not resolve the
    domian correctly and could not find the XML file. I was not getting
    a request for the file from the Flash movie so I knew it had to be
    soemthing in Flash.

  • Can anyone fix my Bing Seach XML/CSS problem?

    I can still search but I get results like shown in the attachment, and the other search options such as Local and Media are unavailable, showing the same messed up screen as the standard search.
    Can anyone help? It's a brand new 620 just a few weeks old. Before this happened I got an XML error which I didn't manage to screen capture, then search worked fine for a few days, then this happened and it's been like this for a week now. 
    I've tried changing search settings, clearing history, restarting, and changing language and keyboard settings. I don't seem to have many other options short of a factory reset which I'd like to avoid.
    So if anyone has some helpful input I'm all ears. Nothing daft.
    Thanks
    Attachments:
    wp_ss_20130305_0001.jpg ‏97 KB

    becuase wp8 is not open source, there really isnt much trouble shooting you can do around these situations.
    sounds like you covered your basic bases and already know your last option.
    i would be sure to back up your data and give it a rip.
    you can try a soft reset before you go to the full extent of complete factory reboot....
    power + Vol Down

  • XML Invoice - help with Tax Summary

    I've been tasked to modify an already modded XML Invoice using XMLP. I need to add a Tax Summary block at the bottom, showing the breakout of the tax codes and amounts charged on the invoice.
    I've played around with it, but so far I can only get the first tax line to show up. I can't get the others. I need to insert a conditional, but I don't know how or where.
    Has anyone run into anything like this before?
    This probably isn't the best problem summary... but if you could help I'd appreciate it!

    Hi,
    It sounds like you need to use a for-each to show each of your tax lines. If you do not have the for-each XMLP will only show the first tax line that is hits in the XML Output.
    Would suggest that you take a quick look at the XMLP User Guide documentation for more information on how to use for-each.
    Let me know if this does not solve your problem, or if you are still struggling.
    Regards,
    Cj

  • Filtering XML data Help!

    I have a sample xml file:
    <photos id = "images">
           <photo>
             <thumb type="jpg" thumbpath="pics/Thumbs/caddo_5-16-10-10_x.jpg"
       thumbwidth="133"
       thumbheight="200"
          path="pics/fullsize/caddo_5-16-10-10.jpg"
       width="425"
       height="640"
       place="Caddo Lake State Park"
       city="Uncertain, Texas"
       cat="Nature"
       date="May 2010"></thumb>
             <file>caddo 5-16-10-10</file>
       </photo>
    Trying to get only the cat Nature to display. Set up HTML file with one dataset please help!

    See the following samples:
    Filtering with XPath
    Multiple Non-Destructive Filters
    Multiple Non-Destructive Filters Mode
    Non-destructive Filter
    XPath filtering with URL Params

  • SSI and CSS Help

    I'm really hoping someone can help with this.
    I have a couple of SSI's on a site I'm developing. They are
    text only .html files that have links on them to other pages where
    you can get more info.
    My problem is that the page properties for my index.php page
    override the CSS that I've created for the SSI's. I want the SSI
    text to have it's own look, separate from what the look of the
    index.php page is. Is this an easy fix or more major development.
    I'm pretty new at all of this so talk to me like a child.
    Thanks in advance for your help.

    Put the CSS for the includes into the parent files. The
    include files
    should contain NO CSS.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "graphxguy777" <[email protected]> wrote in
    message
    news:eertmi$avr$[email protected]..
    > I'm really hoping someone can help with this.
    >
    > I have a couple of SSI's on a site I'm developing. They
    are text only
    > .html
    > files that have links on them to other pages where you
    can get more info.
    >
    > My problem is that the page properties for my index.php
    page override the
    > CSS
    > that I've created for the SSI's. I want the SSI text to
    have it's own
    > look,
    > separate from what the look of the index.php page is. Is
    this an easy fix
    > or
    > more major development. I'm pretty new at all of this so
    talk to me like a
    > child.
    >
    > Thanks in advance for your help.
    >
    >
    >

Maybe you are looking for

  • Carriage Return in Input Parameter

    Hello, My report is passed an address string in a parameter like: name addressline1 city state zip. I want to display this like: name addressline1 city state zip In that past, when I have name, address1, and citystatezip in separate fields I use a fo

  • Can I convert my PDF file to Jpegs?

    I want to convert my PDF file to Jpeg is that possible using my online subscription? Thank Ruby

  • Errors when trying to connect with SAP Netweaver BW Connection

    Hi, I'm trying to pull in data from a Bex query using the BW Connection. I'm on SP4. When I add the connection from Data Manager, I can logon to BW, however when I browse for queries I get .COM exceptions and Class not Registered errors. Any ideas wh

  • Indesign CS3 AHHHHHHH!

    I am having a few issues to say the least with Indesign CS3. I have intel mac with the dual x 2 2.66 with 2g ram. running leopard. I have been running CS3 for about a month now, and tried quite a few things to sort the problems. I have downloaded all

  • I am having runtime errors when trying to open an application

    when I download something and try to open it, a box pops up saying runtime error, then makes me close it, so therefore I cannot print it, help please