XPATH for repeater

Hi,
I want to give two conditions in the repeater in order to get combined data from different tables of a BAPI,how to achieve this?
I will eleborate it here,
e,g I have three tables in my BAPI,from my first repeater I am getting all the 'INSPLOT' and storing it in a local variable 'InspLot'.
Using this local variable I want all 'MSTR_CHAR' from the second table of BAPI which I will do by giving the XPATH of another repeater like this
SAP_JCo_Function_0.Response{/Z3M_GET_INSP_LOT_DETAILS/OUTPUT/CHAR_REQUIREMENTS/item[INSPLOT="#Local.InspLot#"]}
And I am storing this 'MSTR_CHAR' in a local variable 'MasterChar'
Now,from my third table,using a third repeater I want to fetch 'CHAR_RESULTS' for that particular 'INSPLOT' and 'MSTR_CHAR'.How do I get this.
I was just playing with that and tried like
SAP_JCo_Function_0.Response{/Z3M_GET_INSP_LOT_DETAILS/OUTPUT/CHAR_REQUIREMENTS/item[INSPLOT="#Local.InspLot#" AND MSTR_CHAR="#Local.MasterChar#"]}.
But not getting the output.

Hi Anuj,
Please use Code block to put code in your posts.
Have you check this
SAP_JCo_Function_0.Response{/Z3M_GET_INSP_LOT_DETAILS/OUTPUT/CHAR_REQUIREMENTS/item[INSPLOT='#Local.InspLot#' and MSTR_CHAR='#Local.MasterChar#']}
Thanks
Anshul

Similar Messages

  • I'm sorry for repeating this, but i have not found a clear answer. i have a macbook wit iTunes library, an iMac, and a time capsule. how can i transfer my itunes library from TC backup to the iMac? thank you -

    i'm sorry for repeating this, but i have not found a clear, step-by-step answer in several hours.
    i have a macbook with iTunes library, a new iMac, and a new time capsule. how can i transfer my itunes library from TC backup to the iMac?
    (sharing the iTunes library between the macbook & iMack requires both machines and seems silly ...)
    thank you -

    No.

  • Using XPath for DOM traversal

    This question falls into the category of 'I know it's possible, I just need to find the idom in Java'.
    I'm coming from a MSFT world were the DOM-centric model of XML processing makes heavy use of XPATH for node selection. Basically using the method element.selectNodes(XPathExpresson) allows one to quickly extract the relevant subset of the parsed tree in the DOM as a nodeList. I've become accustomed to using XML for all strucutured storage that doesn't require a full database.
    The W3C DOM Level 3 spec supports evaluateExpression() for this purpose, but I can't believe that Java developers are still using tree traversal waiting for the spec to be implemented. I suppose that I could use getNodesByTagName(), but this is a chainsaw, and I need a scalpel. Anyway, I'm trying to figure out how, exactly, this gets done in Java.
    I figure the following are possibilities:
    1) It's in JAXP and I missed it
    2) One or more of the XML parsers supports XPATH as an extention
    3) There's a common package that sits on top of the DOM Document.
    4) There's a standard way to apply and XSLT methods to the DOM document
    5) Something I've never thought of.
    This is a generalized problem for me, so I can't rely on object serialization, Java-XML data mapping, etc. Any guidance would be greatly appreciated.

    I've written a Config file reader for XML in java,
    and it extracts values using XPath. This is
    some of the code you'll need:
    imports:
    import javax.xml.transform.TransformerException;
    import org.w3c.dom.*;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.apache.xerces.parsers.DOMParser;
    import org.apache.xpath.XPathAPI;
    import org.apache.xpath.objects.*;
    Document doc=....;
    * returns a single DOM Node from the config file.
    public Node getNode(String xpath) throws ConfigException {
    try {
    return XPathAPI.selectSingleNode(doc, xpath);
    } catch (TransformerException e) {
    throw new ConfigException("Can't find '"+xpath+"' ("+e.getMessage()+")");

  • How do I save the width and height of a photo for repeated use?

    How do I save the width and height of a picture for repeated use, rather than having to enter it each time in the 'new file' box?
    Thanks,  Ed Jackson.

    It could be that I'm older and have forgotten. I'm now 73 and will admit I have forgotten many things over the years. I have been using Photoshop since Photoshop version 3.  And can not really recall which features or changes were made in ever version of Photoshop I have installed.  Adobe has added many features over the years. The number of bugs introduce has also greatly increased after CS3.  "New Doc Sizes.psp"  in your user id preferences is edited using the two buttons in the new document dialog.
    As for guide lines in new documents Photoshop CS6 or CC seem to add some for video file presets with guide lines.  I do not know how to edit or add guide line to new doc presets. Guide line actions are easy to create. I have also seem some guideline in new documents when I did not expect any perhaps a new bug. Photoshop like most software has bugs. If you do not see Adobe new presets perhaps you copied an old  "New Doc Sizes.psp"  over Adobe's newer default file or Adobe migrared you presets and wand wiped their presets out. There are bugs. Close Photoshop down and rename your current  "New Doc Sizes.psp"  in you user id Photoshop cc preferences folder and start Photoshop it will add a dedault  "New Doc Sizes.psp"  file see if you see Adobe new presets in the new doc pull down when you select video and film...

  • Multi-level nested tables for repeatable XML Elements

    Hi there,
    Suppose we have a XML Schema „ASchema“ like this (XMLDB schema annotations are left out for simplicity):
    <xs:schema xmlns:xs=" .... " />
    <xs:element name=“A“>
         <xs:complexType>
              <xs:sequence>
                   <xs:element name=“B“ maxOccurs=“unbounded“/>
                        <xs:complexType>
                             <xs:sequence>
                                  <xs:element name = “C“ maxOccurs=“unbounded“/>
                             </xs:sequence>
                        </xs:complexType>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    </xs:schema>
    After registering this schema in Oracle, I can define a table like this:
    CREATE TABLE ATable
    id NUMBER,
    doc XMLTYPE
    XMLTYPE COLUMN doc
    XMLSCHEMA “ASchema“ ELEMENT “A“
    VARARRAY doc.“XMLDATA“.“B“ STORE AS TABLE “BTable“
    ((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX)
    This creates a nested table "BTable" within the table "ATable". So far so good, I can use this nested table to gain faster access on every possible subelement of Element B when I set an appropriate index.
    I now want to create another nested table for element “C“ like this:
    DROP TABLE ATable;
    CREATE TABLE ATable
    id NUMBER,
    doc XMLTYPE
    XMLTYPE COLUMN doc
    XMLSCHEMA “ASchema“ ELEMENT “A“
    VARARRAY doc.“XMLDATA“.“B“ STORE AS TABLE “BTable“
    ((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX)
    VARARRAY doc.“XMLDATA“.“B“.“C“ STORE AS TABLE “CTable“
    ((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX)
    But this statement fails with the error message something like „ ... no such attribute ... „
    And here's my question: is it possible to create nested tables for repeatable XML Elements that are subelements of other repeatable XML Elements ? And if so, how can I do it ?
    Thank you very much in advance
    Jan

    Found a (partial) solution myself:
    If you add the attribute xdb:storeVarrayAsTable="true" to the root element of the XML schema, Oracle XMLDB generates nested tables for all repeatable XML Elements while registering the XML schema.
    Unfortunately, the names of these nested tables are system-generated, hence it's a bit uncomfortable to set indices on them. You can find out the names of these nested tables as follows:
    select table_name, parent_table_name, parent_table_column from user_nested_tables;
    Further information on that subject is supplied in the following thread:
    Re: default tables for elements with maxoccurs > 1
    It would be nice if there was a way to name the generated nested tables via appropriate XMLDB schema annotations.
    regards
    Jan

  • Xpath for dynamic image update

    I am trying to get the image from the Astronomy Photo of the
    Day APOD website to display on our college departments Astronomy
    web page. I just need to display the image and not the whole page.
    As I was searching for ways to scrape dynamic images I came
    across the ability for Firebug to extract the xpath from any block
    of html. In the case of apod the xpath for image is this:
    /html/body/center/p[2]/a/img
    Could I use Spry to display the image of the day using xpath
    or is the wrong way to accomplish this?

    after loading an image you can get its contentWidth and
    contentHeight, with this you then calculate the aspect ratio and
    resize your container accordingly so that there is no white space.
    i.e
    MyImg.addEventListener(Event.COMPLETE,UpdateContainer)
    private function UpdateContainer(e:Event):void
    var AspectRatio : Number =
    MyImg.contentWidth/MyImage.contentHeight;
    MyContainer.width = MyContainer.height*AspectRatio;
    MyImg.width = MyContainer.width;
    MyImg.height=MyContainer.height;
    MyContainer.addChild(MyImg);
    the assumption here is you are basing the container height as
    the fixed constant obviously you can set width as the fixed
    constant and adjust height by aspect ratio

  • With PSE 12, is there a magic trick for repeating editing steps that were done on one photo to another?

    With PSE 12, is there a magic trick for repeating editing steps that were done on one photo to another?

    No magic, sorry...
    If you are able to achieve your goal by using adjustment layers, you can save the first picture in psd or tiff format to keep the layers. If you have a new file needing the same adjustments, have both pictures open and copy the adjustments layers to the new file.
    But the best solution, by far, is to edit in the ACR module. You can use it not only for raw files, but also with jpegs, psd or tiffs. Edit the first picture, then when editing the following one, choose 'previous version' from the menu icon on the right of the 'basic' tab.

  • How to edit character layout for repeat QG

    Is it possible to edit the layout for repeat QG that makes each question left aligned? I checked the Prompt Position as Left in the QG level. However when the the default character layout being generated, several Questions stucks into one row and each repeat connected very close.
    What I entend to do is set Question in one row and align all items left and there is some space between each repeat. Is it possible? Thanks

    Hi David,
    Always great to have more web developers working with webtools! I have a background very similar to yours. When it comes to things like modifying the partslist page is when webtools starts to get a bit more complicated for web based developers as opposed to application based developers. Webtools is written in C# (very similar to C) and much of the application is actually compiled into DLLs and these DLLs are copy written so the source is not available.
    Some of the application is exposed, for example on the Partdetail.aspx page you will find many controls referenced that can be edited from the B1webtools/catalog/controls/ folder found under InetPub. The main thing to be careful of is not removing any controls from the page as often times these controls are being referenced by DLL running in the background. Instead you could set their visibility to false, something like this:
    <asp:Literal ID="ltlPartDescription" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>' Visible="False"></asp:Literal>
    So to answer your question, modifying the Partslist(other than removing columns) will involve building your own partslist using the API, but to edit partslist.aspx you can open up the partslist master page in a HTML editor and move things around or edit the individaul controls on the page.
    Have you seen our demo themes at [www.businessoneecommerce.com]? The have modified master pages, but no modifications to the partslist or other hard coded areas of the application. Generally when i am modifying a theme, I tend to just edit the master pages to wipe out table formatting and add in divs and turn certain controls off, then i style the majority of the site with CSS.
    Hope this helps.
    James

  • How to mention the occurences for repeated and/or optional segments in cc?

    Hi,
    How to mention the Record Structure occurences for repeated and/or optional segments in communication channel?
    Sample Structure of the Input Message Type:
    Invoic01 (Message Type)
    IDoc
      -E1EDK01 (1 occurence) (sub segment of IDoc)
      -E1EDP01 (0..unbounded occurences) (sub segment of IDoc)
         -E1EDP02 (0..1 occurence) (sub segment of E1EDP01)
         -E1EDP26 (0..2 occurence) (sub segment of E1EDP01)
         -E1EDPT1 (0..1 occurence) (sub segment of E1EDP01)
            -E1EDPT2 (0..1 occurence) (sub segment of E1EDPT1)
      -E1EDS01 (0..3 occurence) (sub segment of IDoc)
    Can anybody please give any idea?
    Yogi.

    Hi Yogi,
    Why you need adapter module?
    Actually this is called as module processor program which will be used to enhance the adapter functionality.
    Please see the following PDF documents to develop the Module processor programs.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e
    help : http://ifr.sap.com
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6f83d790-0201-0010-629d-ab5bf10c94e4
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7bf6e190-0201-0010-83b7-cc557eb76abe
    Some weblogs for JAVA mapping for IDoc mapping
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    Difference in using java,xslt,message mapping
    Please clearly ask your question.
    What is your input file, and file structure you are receiving, and what is your scenario.
    Then only you will get correct solution.
    Regards
    Chilla..

  • I can't see + - up down icons for repeating region. Could someone pls help?

    I can't see + - up down icons for repeating region. Could someone pls help?

    Please elaborate like what sort of repeating region, which version of Dreamweaver. Perhaps an image that will help us to understand the question.

  • Show/hide layers for repeated recordset data

    Is there any product out there to assist with the creation of
    show/hide layers for repeated recordset data?

    You can't build that functionality in with InDesign — but you can with Acrobat Pro. You've got to use the form builder functions to create a button that will show or hide another element.
    d

  • No messages for repeat processing exist

    Hi All,
    I have been trying to print Intercompany invoices via VF31 using the Output type ZB3I, but I keep getting the following message.
    No messages for repeat processing exist
    Message no. VN109
    Plz guide me.
    Regards,
    Mahavir

    Provide following the input screen for VF31
    - Output Type
    ZB3I
    - Transmission Medium
    1-Print output
    - Processing mode
    2-Repeat processing
    and Billing Doc or range of billing doc to print.
    Regards
    JP

  • Getting outOfMemory while using Xpath for 6MB file

    Hi ,
    Requirement:
    I have thousands of xml files of variable size (mostly around 5MB), Total size is around 20GB .The structure of xml content is as follows.
    filename: xaaaa
    <file>
    <page>
    <title>AmericanSamoa</title>
    <id>6</id>
    <revision>
    <id>133452270</id>
    <timestamp>2007-05-25T17:12:06Z</timestamp>
    <contributor>
    <username>Gurch</username>
    <id>241822</id>
    </contributor>
    <minor />
    <comment>Revert edit(s) by [[Special:Contributions/Ngaiklin|Ngaiklin]] to last version by [[Special:Contributions/Docu|Docu]]</comment>
    <text xml:space="preserve">#REDIRECT [[American Samoa]]{{R from CamelCase}}</text>
    </revision>
    </page>
    My task is to retrieve the ID , filename in which it exists and the position of node in the page, and i have to write it to a file.
    ex: 6:xaaaa:1
    My approach:
    I am using Xpath for this. The code is as follows.
    */*XPathReader.java*/*
    package preprocess;
    import java.io.IOException;
    import javax.xml.XMLConstants;
    import javax.xml.namespace.QName;
    import javax.xml.parsers.*;
    import javax.xml.xpath.*;
    import org.w3c.dom.Document;
    import org.xml.sax.SAXException;
    public class XPathReader {
    private String xmlFile;
    private Document xmlDocument;
    private XPath xPath;
    public XPathReader(String xmlFile) {
    this.xmlFile = xmlFile;
    initObjects();
    private void initObjects(){       
    try {
    xmlDocument = DocumentBuilderFactory.
                   newInstance().newDocumentBuilder().
                   parse(xmlFile);
    xPath = XPathFactory.newInstance().
                   newXPath();
    } catch (IOException ex) {
    ex.printStackTrace();
    } catch (SAXException ex) {
    ex.printStackTrace();
    } catch (ParserConfigurationException ex) {
    ex.printStackTrace();
    public Object read(String expression,
                   QName returnType){
    try {
    XPathExpression xPathExpression =
                   xPath.compile(expression);
    return xPathExpression.evaluate
                   (xmlDocument, returnType);
    } catch (XPathExpressionException ex) {
    ex.printStackTrace();
    return null;
    XpathReaderTest.java
    /* it takes directory name as argument, this directory contains xml file*/
    package preprocess;
    import java.io.*;
    import javax.xml.xpath.XPathConstants;
    import org.w3c.dom.*;
    public class XPathReaderTest {
    public XPathReaderTest() {
    public static void main(String[] args) throws IOException{
         if (args.length <= 0) {
              System.out.println(
              "Usage: java PreProcess dir_name"
              return;
              String dir=null;
              if (args.length >= 1) dir = args[0];
              int indexno=0;
              File directory = new File(dir);
              File[] files = directory.listFiles();
              FileWriter fstream = new FileWriter("index"+indexno+".txt");
         BufferedWriter out = new BufferedWriter(fstream);
         XPathReaderTest xt=new XPathReaderTest();
              /*for (int index = 0; index < files.length; index++)
                   System.out.println(files[index].toString());
              for (int index = 0,i=1; index < files.length; index++)
                   /*if(index/100>indexno){
                        indexno++;
                        out.close();
                        fstream = new FileWriter("index"+indexno+".txt");
                   out = new BufferedWriter(fstream);
                   xt.extract(files[index].toString(),index,i,out);
                   System.gc();
              out.close();
    public void extract(String completepath,int index,int i,BufferedWriter out)
    throws IOException
         System.out.println(index+" "+completepath);
              XPathReader reader = new XPathReader(completepath);
              String separator = File.separator;
              int pos = completepath.lastIndexOf(separator);
              String temp_fname=completepath.substring(0,pos);
              pos=temp_fname.lastIndexOf(separator);
              String f_name= completepath.substring(pos+1);
              i=1;
              while(true)
              String expression = "/file/page["+i+"]/id";
              String id_value= (String) reader.read(expression, XPathConstants.STRING);
              if(id_value=="")
                   break;
              out.write( id_value + ":"+ f_name+ ":"+i+ "\n" );
    i++;
    Problem:
    This code works fine for xml files < 6MB, but its giving outOfMemory for 6MB and above file.
    I have tried with -Xms256m -Xmx512m option.
    Please suggest the work around , or any modification to code that will resolve my problem.
    I am new to java world , so problem root cause will be very helpful for me.
    Thanks

    Hi ,
    Requirement:
    I have thousands of xml files of variable size (mostly around 5MB), Total size is around 20GB .The structure of xml content is as follows.
    /*filename: xaaaa*/
    <file>
    <page>
        <title>AmericanSamoa</title>
        <id>6</id>
        <revision>
          <id>133452270</id>
          <timestamp>2007-05-25T17:12:06Z</timestamp>
          <contributor>
            <username>Gurch</username>
            <id>241822</id>
          </contributor>
          <minor />
          <comment>Revert edit(s) by [[Special:Contributions/Ngaiklin|Ngaiklin]] to last version by [[Special:Contributions/Docu|Docu]]</comment>
          <text xml:space="preserve">#REDIRECT [[American Samoa]]{{R from CamelCase}}</text>
        </revision>
      </page>
    </file>My task is to retrieve the ID , filename in which it exists and the position of node in the page, and i have to write it to a file.
    ex: 6:xaaaa:1
    My approach:
    I am using Xpath for this. The code is as follows.
    */*XPathReader.java*/*
    package preprocess;
    import java.io.IOException;
    import javax.xml.XMLConstants;
    import javax.xml.namespace.QName;
    import javax.xml.parsers.*;
    import javax.xml.xpath.*;
    import org.w3c.dom.Document;
    import org.xml.sax.SAXException;
    public class XPathReader {
        private String xmlFile;
        private Document xmlDocument;
        private XPath xPath;
        public XPathReader(String xmlFile) {
            this.xmlFile = xmlFile;
            initObjects();
        private void initObjects(){       
            try {
                xmlDocument = DocumentBuilderFactory.
                   newInstance().newDocumentBuilder().
                   parse(xmlFile);           
                xPath =  XPathFactory.newInstance().
                   newXPath();
            } catch (IOException ex) {
                ex.printStackTrace();
            } catch (SAXException ex) {
                ex.printStackTrace();
            } catch (ParserConfigurationException ex) {
                ex.printStackTrace();
        public Object read(String expression,
                   QName returnType){
            try {
                XPathExpression xPathExpression =
                   xPath.compile(expression);
                return xPathExpression.evaluate
                   (xmlDocument, returnType);
            } catch (XPathExpressionException ex) {
                ex.printStackTrace();
                return null;
    XpathReaderTest.java
    /* *it takes directory name as argument, this directory contains xml file**/
    package preprocess;
    import java.io.*;
    import javax.xml.xpath.XPathConstants;
    import org.w3c.dom.*;
    public class XPathReaderTest {
        public XPathReaderTest() {
        public static void main(String[] args) throws IOException{
             if (args.length <= 0) {
                    System.out.println(
                     "Usage: java PreProcess dir_name"
                    return;
              String dir=null;
              if (args.length >= 1) dir = args[0];
              int indexno=0;
              File directory = new File(dir); 
              File[] files = directory.listFiles();
              FileWriter fstream = new FileWriter("index"+indexno+".txt");
             BufferedWriter out = new BufferedWriter(fstream);
             XPathReaderTest xt=new XPathReaderTest();
              /*for (int index = 0; index < files.length; index++)
                   System.out.println(files[index].toString()); 
              for (int index = 0,i=1; index < files.length; index++)
                   /*if(index/100>indexno){
                        indexno++;
                        out.close();
                        fstream = new FileWriter("index"+indexno+".txt");
                       out = new BufferedWriter(fstream);
                   xt.extract(files[index].toString(),index,i,out);
                   System.gc();
              out.close();
        public void extract(String completepath,int index,int i,BufferedWriter out)
        throws IOException
             System.out.println(index+" "+completepath);
              XPathReader reader = new XPathReader(completepath);
              String separator = File.separator;
              int pos = completepath.lastIndexOf(separator);
              String temp_fname=completepath.substring(0,pos);
              pos=temp_fname.lastIndexOf(separator);
              String f_name= completepath.substring(pos+1);
              i=1;
              while(true)
              String expression = "/file/page["+i+"]/id";
              String id_value= (String) reader.read(expression, XPathConstants.STRING);
              if(id_value=="")
                   break;
              out.write( id_value + ":"+ f_name+ ":"+i+ "\n" );
            i++;
    }Problem:
    This code works fine for xml files < 6MB, but its giving outOfMemory for 6MB and above file.
    I have tried with -Xms256m -Xmx512m option.
    Please suggest the work around , or any modification to code that will resolve my problem.
    I am new to java world , so problem root cause will be very helpful for me.
    Thanks

  • Corrected coding please for repeating image

    I have searched the internet/the tutortials and cannot get the correct coding for a repeat image vertically in a table on the left hand side of the webpage.  I believe the coding should be repeat-y but I tried all the examples and could not get it to work.  I finally found a way to get it on but I know there is better coding.  This is what I have so far:
    <tr><th width="526" height="865" valign="top" scope="row"><table width="121" height="864" border="0" align="left" cellpadding="0" cellspacing="0">
            <tr>
              <th width="121" height="864" valign="top" scope="row"><p><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" />
              <img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" />
              <img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /></p></th>
            </tr>
          </table>

    I do not want a complete page covered with this design, merely the left-hand border side.
    as mentioned background-repeat:repeat-y; will do just that.
    Some of us, especially in this economic times, cannot afford to spend thousands to have a website created, so we do the best we can.  While I agree tables are difficult for they were indeed designed to place data, and I have eliminated tables where ever I could, this was the only way I could get the result needed.
    agreed times are tough, but seriously working in tables adds more time, more headaches and therefore costs more money.
    Sorry to have bothered you.  Shame Dreamweaver was bought out by Adobe but then, there are other programs; perhaps there forums will have more tolerance for one of us old duffers.
    whats with being all touchy? you asked for "correct coding please for repeating image?"
    and thats what I gave you.
    apart from that I mentioned not to use tables. which is a good thing to take on board.
    for example
    1. Tables are usually more bytes of markup. (Longer to download, and more bytes of traffic for the host.)
    2. Tables usually prevent incremental rendering. (Takes longer for the user to see anything on the page.)
    3. Tables may require you to chop single, logical images into multiple ones. (This makes redesigns total hell, and also increases page load time [more http requests and more total bytes].)
    4. Tables break text copying on some browsers. (That's annoying to the user.)
    5. Tables prevent certain layouts from working within them (like height:100% for child elements of <td>). (They limit what you can actually do in terms of layout.)
    6. Once you know CSS, table-based layouts usually take more time to implement. (A little effort up-front learning CSS pays off heavily in the end.)
    7. Tables are semantically incorrect markup for layout. (They describe the presentation, not the content.)
    8. Tables make life hell for those using screen readers. (Not only do you get the other benefits of CSS, you're also helping out the blind/partially-sighted. This is a Good Thing.)
    9. Tables lock you into the current design and make redesigns MUCH harder than semantic HTML+CSS. (Have you seen CSS Zen Garden?)
    (source - http://phrogz.net/css/WhyTablesAreBadForLayout.html)

  • BizTalk mapping for repeating Nodes using XSLT

    Hi,
    I am mapping the source schema to destination schema using Custom XSLT file. I have a repeating node in the Sources schema:
    Period node can repeat any number of times. I am using the XPath in XSLT to map the nodes from source to destination and using the "for-each" loop.
    Destination Schema:
    I want to map "PeriodID" and "Volume" both to the destination node "html:TD". I am using the following XSLT code:
    <xsl:for-each select="/*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']">
    <html:TR class="data0" level="0">
    <html:TD class="data-int" datatype="int">
    <xsl:value-of select="./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='PeriodID' and namespace-uri()='Namespace']"/>
    </html:TD>
    <html:TD class="data-dbl" datatype="dbl">
    <xsl:value-of select="./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='Volume' and namespace-uri()='Namespace']"/>
    </html:TD>
    </html:TR>
    </xsl:for-each>
    I am only getting the first value of both the nodes in every loop.
    I know that we can use the XPath of the actual Node(PeriodID) in "for-each" loop and use value-of="." to get the current values of the node.
    But the problem is I want both the values "PeriodID" and "Volume" repeating in the destination.

    if you use xpath like you did ( imean without index), you will only get 1 record elements each time.
    Either you have to use code like i did, or use index based xpath.
    The code i gave you should work, just try to debug it from visual studio. Because xslt is a case sensitive, check if the code i gave you matches the elements in case sensitive. may be you have to use prefixes like s1, s2 etc as per you xsl file declaration.
    Check you xsl file for prefix declarations.
    you can also try below code, it uses postion() method to get the current for loop index.
    <xsl:for-each select="/*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']">
    <html:TR class="data0" level="0">
    <html:TD class="data-int" datatype="int">
    <xsl:value-of select="(./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='PeriodID' and namespace-uri()='Namespace'])[position()]"/>
    </html:TD>
    <html:TD class="data-dbl" datatype="dbl">
    <xsl:value-of select="(./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='Volume' and namespace-uri()='Namespace'])[position()]"/>
    </html:TD>
    </html:TR>
    </xsl:for-each>
    but i insist you to verify for any prefix declarations in you xsl file
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Maybe you are looking for