Xsl question

Dear xsl gurus!
My very limited knowledge of xsl doesn't allow me to come up with better solution.Can you please suggest something looking better.
My xml document has very simple structure with 3 subnodes of the same level:
<DOC>
<a>...</a>
<b>...</b>
</DOC>
The info from under <a> and <b> nodes should go under one node (into one table column). The best I could think of is to make it go under two diff columns COLUMN_A and COLUMN_B of some staging table and then concatenate those columns. For this I came up with this xsl:
<xsl:for-each select="DOC">
<ROW>
<xsl:for-each select="./a">
<COLUMN_A>
<xsl:value-of select="."/>
</COLUMN_A>
</xsl:for-each>
<xsl:for-each select="./b">
<COLUMN_B>
<xsl:value-of select="."/>
</COLUMN_B>
</xsl:for-each>
</ROW>
</xsl:for-each>
How can I make <a> and <b> go under the same node so that I wouldn't need a staging table?
Thank you.
Anatoliy Smirnov

Give it a try :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
     <xsl:template match="/">
          <xsl:apply-templates/>
     </xsl:template>
     <xsl:template match="DOC">
          <row>
               <xsl:value-of select="./a"/>
               <xsl:value-of select="./b"/>
          </row>
     </xsl:template>
</xsl:stylesheet>

Similar Messages

  • Xsl question: how to start a new table if recordnumber exceeds 22

    Hi.
    I was hoping someone could help me with this problem...
    I got a simple table where I receive 4 variables from the xsql
    query:PNS (nom. size), POD (dia.(mm)), PWTH (Wall th.(mm)) and
    PSCH (Schedule). The result is presented on a web-page, but
    because we also want to print it out, we are not able to present
    more than 22 records in each table. How do I tell the XSL to
    start printing a new table when it has reached 22 records?
    Example of XML:
    <ROWSET>
    <ROW>
    <PNS></PNS>
    <POD></POD>
    <PWTH></PWTH>
    <PSCH><PSCH>
    </ROW>
    <ROW>
    <PNS></PNS>
    <POD></POD>
    <PWTH></PWTH>
    <PSCH><PSCH>
    </ROW>
    </ROWSET>
    Example of XSL:
    <table class="no" style="width:170mm;padding:1pt;"
    cellspacing="0" border="1">
    <tr>
    <td class="b">Nom. Size(in)</td>
    <xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
    <td class="lb"><xsl:value-of select="PNS"/></td>
    </xsl:for-each>
    </tr>
    <tr>
    <td class="t">dia.(mm)</td>
    <xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
    <td class="lt"><xsl:value-of select="POD"/></td>
    </xsl:for-each>
    </tr>
    <tr>
    <td class="t">Wall th.(mm)</td>
    <xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
    <td class="lt"><xsl:value-of select="PWTH"/></td>
    </xsl:for-each>
    </tr>
    <tr>
    <td class="t">Schedule</td>
    <xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
    <td class="lt"><xsl:value-of select="PSCH"/> </td>
    </xsl:for-each>
    </tr>
    </table>
    Regards,
    Terje K.

    DOMParser parser=new DOMParser();
    XMLDocument xmlDocument=parser.getdocument();
    Node node=xmlDocument.selectSingleNode("/ROWSET/ROW");
    Element element=xmlDocument.createElement(String tagName)
    node.appendChild(element);

  • Attaching/Linking XSL Question

    Hi,
    How can I attach/link an XSL file in an XML document that I'm currently creating/forming (using TransformerHandler)?
    Here's the code:
    try
           mTransformerHandler = mSAXTransformerFactory.
                   newTransformerHandler(new StreamSource(new File(
                   "D:\\tempTransform.xsl")));                     
           mTransformerHandler.setResult(new StreamResult(
                   new File("c:\\tmp.xml")));
           Transformer trans = mTransformerHandler.getTransformer();
           trans.setOutputProperty(OutputKeys.ENCODING, "SHIFT_JIS");
           mTransformerHandler.startDocument();               
           mTransformerHandler.startElement("tag1","tag1", "tag1", new
                   AttributesImpl());
           String str = "sample char";
           mTransformerHandler.characters(str.toCharArray(),       
                   0, str.toCharArray().length);
           mTransformerHandler.endElement
                   ("tag1","tag1", "tag1");                              
           mTransformerHandler.endDocument();
    catch(Exception e)
           System.out.println("e >> " + e);
    . . . .The XSL file transforms the xml into an html code.
    What I need is just to attach/link the XSL to the created XML and not to transform to the output of the XSL.
    Any suggestions?
    Thanks a lot.

    If I understand you correctly, you want it to output your XML as it is, but with a <?xml-stylesheet type="text/xsl" href="blah.xsl"?>?
    If that's what you want, you don't need an actual transformation at all. You only have to insert a processing instruction into your document and use a handler that simply writes your XML to the output.
           // get a transformer that directly copies the XML to the output; no transformation needed
           mTransformerHandler = mSAXTransformerFactory.
                   newTransformerHandler();                     
           mTransformerHandler.setResult(new StreamResult(
                   new File("c:\\tmp.xml")));
           Transformer trans = mTransformerHandler.getTransformer();
           trans.setOutputProperty(OutputKeys.ENCODING, "SHIFT_JIS");
           mTransformerHandler.startDocument();
           // insert a processing instruction into the document
           mTransformerHandler.processingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"blah.xsl\"");
           mTransformerHandler.startElement("tag1","tag1", "tag1", new
                   AttributesImpl());
           String str = "sample char";
           mTransformerHandler.characters(str.toCharArray(),       
                   0, str.toCharArray().length);
           mTransformerHandler.endElement
                   ("tag1","tag1", "tag1");                              
           mTransformerHandler.endDocument();

  • Simple XSL question.

    Hi there, I am trying to do a form with a List Menu that will
    populate the Labels and Values from an xsl fragment page, so far I
    was able to set the labels from the XML file but I am having
    problems when placing code on the VALUE section of the list menu.
    Here is my code
    <select name="Se" id="Se">
    <xsl:for-each select="gallery/album">
    <option
    value=xsl:value-of select='@id'><xsl:value-of
    select="@title"/></option>
    </xsl:for-each>
    </select>
    Thanks for your time and help....

    I ment that there would not be any closing tag. <TAG>...</TAG>
    but I found that
    <xsl:element name="NUMBER"><xsl:attribute name="V"><xsl:value-of select="text()"/></xsl:attribute></xsl:element>
    works!
    Thanks anyway !

  • Xsl question - call xsl from another xsl

    Hi,
    I have a xsl which should be invoked from another xsl. I have a transformheader.xsl which transforms the header values. I would like to invoke this xsl from various client xsl files.(to transform the header).
    transformheader.xsl should take the header as input and give header as output.
    Basically I am moving the header transform logic to one xsl file & reuse it.
    Can you please help me with the syntax or any links to samples/docs?
    transformheader.xsl:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0">
    <xsl:template match="/">
    <ns1:header>
    <ns1:ebmAID>
    <xsl:value-of select="/ns1:header/ns1:ebmBID"/>
    </ns1:ebmAID>
    <ns1:ebmBID>
    <xsl:value-of select="/ns1:header/ns1:ebmAID"/>
    </ns1:ebmBID>
    </ns1:header>
    </xsl:template>
    </xsl:stylesheet>
    client1.xsl(transforms one message to other, both has the header)
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper......>
    <xsl:stylesheet version="1.0">
    <xsl:template match="/">
    <tns:sampleee>
    <hdr:header>
    ===== invoke the transformheader.xsl to insert the header here
    </hdr:header>
    <tns:body>
    <xsl:for-each select="xxxxx">
    </tns:body>
    </tns:sampleee>
    </xsl:template>
    </xsl:stylesheet>

    Here you go:
    CreateHeader.xsl
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:inp="http://temp.org/input"
            xmlns:out="http://temp.org/output"       
                    >
         <xsl:template name="CreateHeader">
                 <xsl:param name="InputHeader"/>
                   <out:header>
                        <out:ebmAID>
                             <xsl:value-of select="/inp:header/inp:ebmID"/>
                        </out:ebmAID>
                        <out:ebmBID>
                             <xsl:value-of select="/inp:header/inp:ebmContextID"/>
                        </out:ebmBID>
                   </out:header>
         </xsl:template>
    </xsl:stylesheet>Main XSL:
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:inp="http://temp.org/input"
            xmlns:out="http://temp.org/output"       
                    >
         <!-- Import the createHeader.xsl here -->
         <xsl:import href="CreateHeader.xsl"/>
         <xsl:template match="/">
              <out:RootElement>
                   <!-- This will inser the header by calling the CreateHeader XSL -->
                   <xsl:call-template name="CreateHeader">
                        <xsl:with-param name="InputHeader" select="inp:header"/>
                   </xsl:call-template>
                   <xsl:for-each select="/inp:body">
                        <out:body>
                             <!-- logic for creating body goes here -->
                        </out:body>
                   </xsl:for-each>
              </out:RootElement>
         </xsl:template>
    </xsl:stylesheet>

  • XSL question related to XPATH comparsion

    I�m new to XSL and I�m trying to display something in a Hierarchy. I have a XML file
           <OUTPUT>
              <STATEMENT>
                   <CurrentActivity>
                        <TransDesc>First current </TransDesc>
                        <TransDetailCount>1</TransDetailCount>
                   </CurrentActivity>
                   <CurrentActivity>
                        <TransDesc>second current </TransDesc>
                        <TransDetailCount>2</TransDetailCount>
                   </CurrentActivity>
                   <CurrentActivity>
                        <TransDesc>Third current </TransDesc>
                        <TransDetailCount>3</TransDetailCount>
                   </CurrentActivity>
                   <CurrentActivity2>
                        <TransDesc>First current2 </TransDesc>
                        <TransDetailCount>1</TransDetailCount>
                   </CurrentActivity2>
                   <CurrentActivity2>
                        <TransDesc>second current2 </TransDesc>
                        <TransDetailCount>1</TransDetailCount>
                   </CurrentActivity2>
                   <CurrentActivity2>
                        <TransDesc>Third current2 </TransDesc>
                        <TransDetailCount>2</TransDetailCount>
                   </CurrentActivity2>
              </STATEMENT>
         </OUTPUT>I want to to display as
    First current
    1
    First current2
    1
    Second current2
    1
    Second current
    2
    Third current2
    2
    Third current
    3
    So you process the first current activity element and then check the CurrentActivity2 element that have TransDetailCount that match CurrentActivity.
    The XSL I have now that does not work is :
    <?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="/">
    <xsl:variable name="outputData" select="/OUTPUT"/>
    <xsl:variable name="statementData" select="$outputData/STATEMENT"/>
          <xsl:for-each select="$statementData/CurrentActivity">
          <tr>
            <td><xsl:value-of select="TransDesc"/></td><br/>
             <td><xsl:value-of select="TransDetailCount"/></td><br/>
          </tr>
                     <xsl:for-each select="$statementData/CurrentActivity2">
                          <xsl:if test="TransDetailCount=$statementData/CurrentActivity/TransDetailCount'">
                               <td><xsl:value-of select="TransDesc"/></td><br/>
                               <td><xsl:value-of select="TransDetailCount"/></td><br/>
                          </xsl:if>
                   </xsl:for-each>
          </xsl:for-each>
    </xsl:template></xsl:stylesheet> Any assistance would be greatly appriecated!!
    Thanks,
    Bill

    The XSLT for required output is:
    <?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="/">
    <xsl:apply-templates select="OUTPUT/STATEMENT/CurrentActivity[TransDesc='First current ']"/>
    <xsl:apply-templates select="OUTPUT/STATEMENT/CurrentActivity2[TransDesc='First current2 ']"/>
    <xsl:apply-templates select="OUTPUT/STATEMENT/CurrentActivity[TransDesc='second current ']"/>
    <xsl:apply-templates select="OUTPUT/STATEMENT/CurrentActivity2[TransDesc='second current2 ']"/>
    <xsl:apply-templates select="OUTPUT/STATEMENT/CurrentActivity[TransDesc='Third current ']"/>
    <xsl:apply-templates select="OUTPUT/STATEMENT/CurrentActivity2[TransDesc='Third current2 ']"/>
    </xsl:template>
    <xsl:template match="CurrentActivity">
    <xsl:apply-templates select="TransDesc"/>
    <xsl:text>
    </xsl:text>
    <xsl:apply-templates select="TransDetailCount"/>
    <xsl:text>
    </xsl:text>
    </xsl:template>
    <xsl:template match="CurrentActivity2">
    <xsl:apply-templates select="TransDesc"/>
    <xsl:text>
    </xsl:text>
    <xsl:apply-templates select="TransDetailCount"/>
    <xsl:text>
    </xsl:text>
    </xsl:template>
    </xsl:stylesheet>

  • Urgent XSL Question

    For XML
         <PolicyCoverages>
              <row>
                   <covNm>Coverage A</covNm>
                   <lmt>10000</lmt>
                   <deductible>0</deductible>
                   <covPremium>2000</covPremium>
                   <optFlg>N</optFlg>
              </row>
              <row>
                   <covNm>Coverage B</covNm>
                   <lmt>20000</lmt>
                   <deductible>10</deductible>
                   <covPremium>3000</covPremium>
                   <optFlg>N</optFlg>
              </row>
         </PolicyCoverages>
    XSL For the above XML
    <xsl:for-each select="PolicyCoverages/row">
         <tr>
              <td><xsl:value-of select="covNm"/></td>
              <td><xsl:value-of select="lmt"/></td>
              <td><xsl:value-of select="deductible"/></td>
              <td><xsl:value-of select="covPremium"/></td>
              <td><xsl:value-of select="optFlg"/></td>
         </tr>
    </xsl:for-each>
    A small change in the above XML
         <table name="Policy Coverages">
              <row>
                   <parm name="covNm">Coverage A</parm>
                   <parm name="lmt">10000</parm>
                   <parm name="deductible">0</parm>
                   <parm name="covPremium">2000</parm>
                   <parm name="optFlg">N</parm>
              </row>
              <row>
                   <parm name="covNm">Coverage B</parm>
                   <parm name="lmt">0</parm>
                   <parm name="deductible">0</parm>
                   <parm name="covPremium">0</parm>
                   <parm name="optFlg">N</parm>
              </row>
         </table>
    What is the equivalent XSL for this XML ?

    here you go:<?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <xsl:output method="html" encoding="utf-8"/>
         <xsl:template match="table">
              <table>
                   <xsl:apply-templates select="row"/>
              </table>
         </xsl:template>
         <xsl:template match="row">
              <tr>
                   <xsl:apply-templates select="parm"/>
              </tr>
         </xsl:template>
         <xsl:template match="parm">
              <td>
                   <xsl:value-of select="text()"/>
              </td>
         </xsl:template>
    </xsl:stylesheet>

  • The celds colors with xsl

    i am using jsp with xml and xsl
    I show the results in a table , each in a td.
    how can i cahnge the td color in the xsl template?
    the example are this forums.
    how to change in a xsl template the td color?
    thanks

    This is clearly an XML/XSL question, I don't know how it got into the JSP forum. Or it might even be an HTML question.
    Are you asking how to assign a colour to a table cell in HTML? That's <TD bgcolor=...>. Or if you are generating TD elements in your XSL, you can generate them complete with the bgcolor attribute. If you have existing TD elements that you are transforming, you can transform them to that format too. Sorry I can't be more detailed, I really can't tell what you are trying to do.

  • XSLT : Trouble Adding Namespace

    I need to add namespace xmlns:prx="urn:sap.com:proxy:SB1:/1SAI/TAS04BED82951A661E02EC4:701:2008/06/06" to my xml document after doing a PI message mapping.
    When I run the following XSLT code in my XML editing software, it works as desired.  When I import the XSL program and use it at runtime, it is not adding the namespace.  Can anyone help?
    XSLT:
    <?xml version='1.0' encoding='utf-8'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:prx="urn:sap.com:proxy:SB1:/1SAI/TAS04BED82951A661E02EC4:701:2008/06/06">
    <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
      <xsl:template match="@* | node()">
        <xsl:copy>
          <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="/*">
        <xsl:copy>
          <xsl:copy-of select="document('')/xsl:stylesheet/namespace::*[not(local-name() = 'xsl')]"/>
          <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>
    Source:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ChartOfAccountsReplicationConfimation xmlns:ns0="http://sap.com/xi/SAPGlobal20/Global">
      <MessageHeader>
        <UUID>4C321305CA1400AAE10080000A98800D</UUID>
        <ReferenceUUID>4bff533d-2452-00f2-e100-80000a98800c</ReferenceUUID>
        <CreationDateTime>2010-07-06T13:57:30Z</CreationDateTime>
        <SenderBusinessSystemID>ERP_GTPSRM_ECC6_S1</SenderBusinessSystemID>
        <RecipientBusinessSystemID>EDG_030_BusinessSystem</RecipientBusinessSystemID>
      </MessageHeader>
      <Log>
        <BusinessDocumentProcessingResultCode>3</BusinessDocumentProcessingResultCode>
        <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
        <Item>
          <Note>Processed by PI</Note>
        </Item>
      </Log>
    </ns0:ChartOfAccountsReplicationConfimation>
    Desired Target:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ChartOfAccountsReplicationConfimation xmlns:ns0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:SB1:/1SAI/TAS04BED82951A661E02EC4:701:2008/06/06">
         <MessageHeader>
              <UUID>4C321305CA1400AAE10080000A98800D</UUID>
              <ReferenceUUID>4bff533d-2452-00f2-e100-80000a98800c</ReferenceUUID>
              <CreationDateTime>2010-07-06T13:57:30Z</CreationDateTime>
              <SenderBusinessSystemID>ERP_GTPSRM_ECC6_S1</SenderBusinessSystemID>
              <RecipientBusinessSystemID>EDG_030_BusinessSystem</RecipientBusinessSystemID>
         </MessageHeader>
         <Log>
              <BusinessDocumentProcessingResultCode>3</BusinessDocumentProcessingResultCode>
              <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
              <Item>
                   <Note>Processed by PI</Note>
              </Item>
         </Log>
    </ns0:ChartOfAccountsReplicationConfimation>

    HI Stefen,
    I had one XSL question,i have seen in the blogs you have given correct answers regarding the XSLT.
    My requirement is  the source file is :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8"/>
    <ns0:Esri_Identify
    xmlns:ns0="http://ottawa.ca/ecc/esri/ecctoesri">
       <Identify>
          <MapDescription>
             <Name/>
             <Rotation/>
          </MapDescription>
          <MapImageDisplay>
             <ImageHeight/>
             <ImageWidth/>
             <ImageDPI/>
          </MapImageDisplay>
          <SearchShape>
             <X/>
             <Y/>
          </SearchShape>
          <Tolerance/>
          <IdentifyOption/>
          <LayerIDs>
             <Int/>
          </LayerIDs>
       </Identify>
    </ns0:Esri_Identify>
    and expected is :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8"/>
    <ns0:Esri_Identify
    xmlns:ns0="http://ottawa.ca/ecc/esri/ecctoesri">
       <Identify>
          <MapDescription>
             <Name/>
             <Rotation/>
          </MapDescription>
          <MapImageDisplay>
             <ImageHeight/>
             <ImageWidth/>
             <ImageDPI/>
          </MapImageDisplay>
         <SearchShape xmlns:q4="http://www.esri.com/schemas/ArcGIS/10.0" xsi:type="q4:PointN" xmlns="">
             <X/>
             <Y/>
          </SearchShape>
          <Tolerance/>
          <IdentifyOption/>
          <LayerIDs>
             <Int/>
          </LayerIDs>
       </Identify>
    </ns0:Esri_Identify>
    I need to pass the name space for searchshape element, can you please help me in this regard.
    Thanks,

  • To XSL or not to XSL, that is the question

    Hi,
    I'm still having problems working out which bits of XSL will work or not with BI Publisher.
    I have an element called tchYr which may have a value of:
    'Teaching Year 2008/09 MT Start'
    'Teaching Year 2009/10 MT Start'
    If the second year component is 10 I need to display '2009/10' otherwise I need to display '2008/9', without the leading zero on the second year.
    So I thought a combination of choose and substring should do the job.
    This XSL works perfectly outside of BI Publisher:
    <!-- If the 20th character is a zero, return the 21st character, otherwise return the 21st and 22nd -->
    <xsl:choose>
    <xsl:when test="substring(tchYear,20,1)='0'">
    <xsl:value-of select="substring(tchYear,21,1)"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="substring(tchYear,20,2)"/>
    </xsl:otherwise>
    </xsl:choose>
    However, in BI Publisher this returns nothing.
    This works:
    <xsl:value-of select="substring(tchYear,21,1)"/>
    and this works:
    <xsl:choose>
    <xsl:when test="substring(tchYear,20,1)='0'">
    AAA</xsl:when>
    <xsl:otherwise>
    BBB
    </xsl:otherwise>
    </xsl:choose>
    but when I put them together in one form field it returns nothing.
    Am I missing something basic here? I thought standard XSL was fine for use in BI Publisher.
    Thanks for any help you can advice,
    Ben

    Ben,
    I've the same effect. What about
    <?xdoxslt:ifelse(substring(tchYear,20,1)='0',substring(tchYear,21,1),substring(tchYear,20,2))?> ?
    ... Ok, I know this answers not your question behind your case ....
    Regards
    Rainer

  • XSL attribute question

    *<xsl:attribute name="xdofo:rowspancell-repeat-nextpage" xdofo:ctx="block">true</xsl:attribute>*
    Hello, can you provide me some example on how to use this code? i tried putting this code in a field in a table however it doesn't do any changes in my report, the header still don't repeat.
    i'm aware of the word functionality to repeat a header, but due to the structure of my table, that method will changes the output of my report. the reason is i have a looping condition in that header, so if i tried to repeat it, the looping also repeats.
    to summarize my table outline:
    <HEADER1>---repeating already
    <HEADER2 with looping condition>---> the one that i want to repeat
    both headers belongs to a one table
    i tried separating the header 2 to another table but it destroys my report output
    thanks in advance! :)

    Hi
    You may get help if you post your question on its forum.
    XML DB
    -Priyanka

  • Question about XSL Mapper in BPEL designer

    Hi,
    I have a question regarding the XSL mapper within JDeveloper BPEL Designer.
    Scenario:
    Consider
    1. Source xsd with 3 attributes
    2. Target xsd with 5 attributes
    An XSL mapping is defined for 3 source attributes to the corresponding target attributes.
    The attributes remaining on the target side (2 attributes) are NOT mapped.
    Now test the mapper using the in-built test tool
    (by right clicking on the xsl editor screen).
    The mapper generates a test-xml on the source side and its corresponding transformed xml on the target side.
    Now,
    If i click on "Validate" in the source side, it says "XML is Valid"
    If i click on "Validate" in the target side, it says "XML is NOT Valid" (because the 2 un-mapped attributes are not apprearing the target xml)
    My question is
    Is it an expected behaviour that if an attribute is not mapped, an empty tag <attribute/> is not generated for this attribute in the target xml. If so, wouldn't the target xml be invalid with respect to the target xsd.
    Thanks
    Antony

    I believe by default xml validation is set to false for a BPEL Domain. I am not sure whether setting this to true will cause your process to error out after the transformation or if it only validates inbound and outbound messages.

  • XSL-FO Style Sheet Questions..

    Hi,
    I have some questions regarding XSL-FO Style Sheet
    1. How can add some more fields to the XSL-FO Style Sheet when they are not included in the original XML source.. ( like we have attribute1 through attribute3)
    for storing telephone number, fax number and email of the buyer) as we do not have access to the source code that generates the XML.
    2. I need to include the signature image at the bottom of the PO and that depends on the operating unit to which the PO belongs.
    I will appreciate if you can show some light on this with some examples..
    Thanks for your help..
    Shree

    Hi,
    For the question 2, I thinck you can read the XMLP blog entry :
    http://blogs.oracle.com/xmlpublisher/2006/04/13
    Hope you will help.
    Cyryl

  • XSQL/XSL deployment on Tomcat question

    I have been running my XSQL pages within the default Oracle/Apache/JServ environment. This is where I 'install' my source xsql/xsl files in the htdocs directory of Apache.
    I have now recently upgraded my environment so that it now consists of Tomcat 4.x and Apache.
    My question is, what deployment strategies are available to me? For example, do I have package my xsql/xsl files into a .war package or can I simply move my xsql/xsl source files into a certain directory very similar to how I use to do before.
    Any help greatly appreciated.

    I deployed both on Apache (JSP,XSQL) and I have another PC with Apache as Proxy.
    It works fine. I dont know the performance when many users try to connect.

  • Question about XSL transformation

    Hi All,
      I have a requirment where I need to convert internal table entries to a xml string. But i can't use the default XSL transformation 'ID' here because of some other requirements. Let me explain what I want to achieve with a simple example.
      I do have an internal table based on the structure as given below,
                  person
                       name
                       age
                       address
                  person
    Let us say now in runtime internal table 'lt_person' will hold few entries for this. Now I want convert this to a xml string in such a way that for the <person> element in the result xml string, concatenation of 'name' and 'age' field should come as an attribute with name let us say  'persondesc'.
              <person persondesc="Name1 25">
                       <name>Name1</name>
                       <age>25</age>
              </person>
    Could you please tell me how to define XML transformation using txn code STRANS inorder to achieve this.
    Thanks&Regards,
    Prajesh

    I believe by default xml validation is set to false for a BPEL Domain. I am not sure whether setting this to true will cause your process to error out after the transformation or if it only validates inbound and outbound messages.

Maybe you are looking for