Jump to content

fredf

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About fredf

  • Rank
    Newbie
  1. Martin. I now xslt which produces as show in the output, however I want the out put as shown in the expected output, do you know how I could change the xslt to get the expected output. Thanks in advance output:JD00022108000043227255044375530JD00022108000043237256044375531JD00022108000043247257044375532JD00022108000043257257044375532 Expected out:JD00022108000043227255044375530JD00022108000043237256044375531JD0002210800004324JD00022108000043257257044375532<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";><x
  2. Hi Martin,I am very grateful for your suggestions. I tried your suggestion of using the code below but I get the output show below but I want the output be asshown in the expected output format:<xsl:template match="MR23030B"> <xsl:apply-templates select="Parcel"/> <xsl:apply-templates select="DeliveryAddress"/> <xsl:apply-templates select="Consignment"/></xsl:template>output:JD0002210800004322 JD0002210800004323 JD0002210800004324 JD0002210800004325 7255 7256 7257 044375530 044375531 044375532 expected output :JD0002210800004322 7255 044375530 JD0002210800
  3. Sorry Martin I have attached the XML data below. <?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="mr23030b.xsl"?><MR23030B> <Header RECORD_TYPE="HD" METER_NO="10800" FILE_DATE="23/06/2011" RUN_NUMBER="000909"/> <SenderAddress RECORD_TYPE="AS" COUNTRY_CODE="GB" BRANCH_PREFIX="" BRANCH_CODE=""/> <Consignment RECORD_TYPE="CO" ACNT_NO="044375530" CONT_NO="9360964" COLL_PT="0001"/> <DeliveryAddress RECORD_TYPE="AD" COUNTRY_CODE="GB" BRANCH_PREFIX="07" BRANCH_CODE="7255"/> <Parcel RECORD_TYPE="PA" MANIFEST_NO="0
  4. Hi Martin, I have tried your suggestion as shown below, but the only thing with that is that I get all the parcels first, then the Address and then the consignment info.as show below, but I want the data to come out as parcel,Address Consignment,parcel,Address Consignment,parcel,Address Consignment etc<?xml version="1.0" encoding="UTF-16"?>JD0002210800004322JD0002210800004323 JD0002210800004324 7255 7256 7257 0443755...i.e<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="MR23030B"&
  5. Hi,I have this xml file, in my XSLT file I want to process <Parcel .../> element first then the <DeliveryAdress ../> and then the <Consignment .../> element.I would be very grateful if someone could suggest a solution please.Thanks in advance.<xml version="1.0" ?><MR23030B><Header RECORD_TYPE="HD" METER_NO="10800" FILE_DATE="23/06/2011" RUN_NUMBER="000909"NO_RECORDS="00000425" LAYOUT_VERSION="000002" GAZ_VERSION="000107" /><SenderAddress RECORD_TYPE="AS" COUNTRY_CODE="GB" BRANCH_PREFIX="" BRANCH_CODE=""EUROEXPRESS_ACNT="" /><Consignment RECORD_TYPE=
×
×
  • Create New...