Question on xsl

I am using xsl with xml. I notice that some of the element come out in a different order that on the xsl file.
xsl:
<Document
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Id="-----TRANSACTION-ID-----"
xmlns="http://www.exchangenetwork.net/schema/v1.0/ExchangeNetworkDocument.xsd">
xml:
<Document Id="-----" xmlns="http://www.exchangenetwork.net/schema/v1.0/ExchangeNetworkDocument.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-- How do I make sure that are the same order and format?
Thanks.

Try your luck in the XML DB Forum. This doesnt look related to Oracle in any sense.
XML DB

Similar Messages

  • 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.

  • 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.

  • Question about XSL

    Hi
    suppose i have a XML file as below, i want to print only value where id = name. I want to do this using XSL, not java program
    for example once i read throug all the XML file, i should get output as 123 and 456
    <xml>
    <name>abc</name>
    <name>xyz</name>
    <data>
    <id>abc</id>
    <value>123</value>
    </data>
    <data>
    <id>xyz</id>
    <value>456</value>
    </data>
    <data>
    <id>jkl</id>
    <value>998</value>
    </data>
    </xml>This is the XSL i have been trying
    <xsl:for-each  select="/">
    <xsl:for-each  select="data">
    <xsl:if test="name=id " >
    what test condition do i put here
    <xsl:value-of select="value" />
    </xsl:if>
    </xsl:for-each>
    </xsl:for-each>

    Hello
    I solved this problem as below
    <xsl:variable name = "item" select = "name" />
    <xsl:if test="R702CODE=$item" >
    // as test condition
    Ashish

  • 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-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

  • XSL(T) Mapping in SAP PI

    Hello comminity.
    I have got a question about XSL(T) in condition to XML.
    There are 2 XML-Documents, one Source-XML and one Target-XML.
    And there is also a XSL(T)-Document, which transfers the Source-XML into the
    Target-XML.
    My Problem:
    The XSL(T) is either wrong, or some lines are missing.
    Source-XML: -> Correct / no mistakes
    XSL(T) (Mapping): -> Anything wrong / missing in this Transformation
    <!-- Transfer of the attachment-->
              <xsl:for-each select="Z1ATTACH">
              </xsl:for-each>
         </xsl:template>
         <xsl:template name="formatDate">
              <xsl:param name="date">
              </xsl:param>
              <xsl:if test="string-length($date) &gt; '0'">
                   <xsl:value-of select="concat(substring($date, '1', '4'), '-', substring($date, '5', '2'), '-', substring($date, '7','2'))"/>
              </xsl:if>
         </xsl:template>
    </xsl:stylesheet>
    Target-XML: -> Correct / no mistakes
    <!Begin of attachments>
    The XSL(T)-Document is either wrong, or some lines are missing as a said.
    So would you be so kind and tell me the wrong / missing code ?
    Thank you very much for helping.
    Best Regards.

    Hello comminity.
    After 2 days, I have solved the problem by myself.
    There you have the code, I have written and now it works:)
    <!-- Delivery of attachment -->
              <xsl:for-each select="//Z1ATTACH">
                   <xsl:element name="AdditionalData">
                        <xsl:element name="Name">
                             <xsl:text>Z_CI_ATTACHMENT_DESCRIPTION</xsl:text>
                        </xsl:element>
                        <xsl:element name="Value">
                             <xsl:value-of select="DESCRIPTION"/>
                        </xsl:element>
                        <xsl:element name="AdditionalData">
                        </xsl:element>
                   </xsl:element>
                   <xsl:element name="Name">
                        <xsl:text>Z_CI_ATTACHMENT_BY_RFC</xsl:text>
                   </xsl:element>
                   <xsl:element name="Value">
                        <xsl:value-of select="PH_OBJID"/>
                   </xsl:element>
                   <xsl:element name="AdditionalData">
                        </xsl:element>
              </xsl:for-each>
         </xsl:template>
         <xsl:template name="formatDate">
              <xsl:param name="date">
              </xsl:param>
              <xsl:if test="string-length($date) &gt; '0'">
                   <xsl:value-of select="concat(substring($date, '1', '4'), '-', substring($date, '5', '2'), '-', substring($date, '7', '2'))"/>
              </xsl:if>
         </xsl:template>
    </xsl:stylesheet>
    Thank you for helping.
    Best Regards.

  • XSL and string truncation

    Hello
    i am creating a XSL to transform some XML information into a CiscoIPPhoneMarkupLanguage document (CIPML). CIPML's schema restricts several element's lenght. For instance, a CiscoIPPhoneMenu/MenuItem/Name must be no more than 64 characters long. I would like that the XSL stylesheet handle the truncation of (eventual) extra characters, but I did not see how it is possible in the w3c TRs. Do you know how?
    THx

    I don't see the Java connection in this question, but XSL does have a substring function.

  • Combining xml using xsl

    I have two xml files...
    File1.xml
    <table>
    <field1 name="id">
    <filed2 name="name">
    </table>
    file2.xml
    <table>
    <field1 type="int">
    <field2 type="char">
    <index ....>
    </table>
    I want to read file1.xml and update the field
    attributes in file2.xml to contain the name attribute
    and write the whole thing to file3.xml
    So my output file3.xml should look like
    file3.xml
    <table>
    <field1 name="id" type="int">
    <field2 name="name" type="char">
    <index ....>
    </table>
    Any ideas as to how do i do it??
    Sweetie2

    There's an excellent mailing list where you can ask questions about XSL. Sign up for it here:
    http://www.mulberrytech.com/xsl/xsl-list

  • Linebreak in Indesign xsl?

    Hey guys,
    I have a little question about xsl. I tried to solve it myself, but I can't get it done.
    My xsl looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
    xmlns:ex="example">
        <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="*[local-name() = 'table']"/>
        <xsl:template match="*[local-name() = 'text']">
            <xsl:copy>
                <xsl:attribute name="value">
                    <xsl:apply-templates/>
                </xsl:attribute>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="*[local-name() = 'b' or local-name() = 'i']">
            <xsl:value-of select="concat('[',local-name(),']')"/>
                <xsl:apply-templates/>
            <xsl:value-of select="concat('[/',local-name(),']')"/>
        </xsl:template>
        <xsl:template match="@value">
             <xsl:attribute name="value">
                 <xsl:value-of select="translate(.,'&#xd;','&#xa;')"/>
             </xsl:attribute>
        </xsl:template>
        <xsl:template match="@href"/>
    </xsl:transform>
    What I found out, is that I could use something like this:
    <xsl:if test="not(position()=last())">
        <xsl:text>&#xA;</xsl:text>
    </xsl:if>
    But I don't know how to combine it with my xsl. I tried to just put it in the "<xsl:attribute name="value">" xsl:copy part. It inserts a linebreak, but at the wrong place. Also I cant put it inside of "xsl:apply-templates".
    Would someone be so kind to tell me, where I have to add this code?
    A xml example(how it looks originally, without any transforms):
    <text>This is some text and here
    is a linebreak</text>
    Should look like:
    <text value="This is some text and here&#xA;is a linebreak"/>
    Currently looks like:
    <text value="This is some text and here
    is a linebreak"/>
    Thank you in advance!

    Thanks for the reply.
    I can try to do it in a xsl v.1 but not quite sure how that would be done. Thing is I am trying to take a spreadsheet and convert it to xml which is each item(row) as a seperate item in the xml. I need to convert that xml so that I can drop it into indesign and into a table. It works if I let oxygen convert it with the xsl but in indesign I import it into a current table but the problem is it starts repeating the first item in the xml over and over again if the previous table has more rows than the current table.
    I some how need to convert the xml file from excel into an acceptable indesign xml table format. Thats the tricky part with the way excel handles the information. No Lists inside of lists allowed.

  • How to add header and footer image in pdf

    Hi,
    I want to add image in header and footer for the pdf generation.
    how I can add this? Following my xsl
    ?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"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
                   <fo:block margin-left="1cm">
                        <xsl:for-each select="@question-text">
                        <xsl:value-of select="."/>=
                        </xsl:for-each>
                        <xsl:if test="string-length(normalize-space(text())) > 0">
                        <xsl:value-of select="text()"/>
                        </xsl:if>
                   </fo:block>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>
    Edited by: 848231 on Apr 6, 2011 1:42 AM

    Hi,
    Here is one way of putting an image in the header:
    <fo:layout-master-set>
        <fo:simple-page-master master-name="my-page">     
          <fo:region-body margin="1in"/>
          <fo:region-before extent="1in" background-color="silver" />
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
             <fo:block height="150px" width="1024px" background-color="white" >
                 <fo:external-graphic src="http://localhost:9000/web-determinations9000/images/Header.jpg">
                 </fo:external-graphic>
            </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
        </fo:flow>
      </fo:page-sequence>One good XSL:FO refernce: http://www.learn-xsl-fo-tutorial.com
    Hope this helps.
    Thanks,
    Aakarsh
    Edited by: aakarsh on Apr 6, 2011 6:40 AM

  • XSLT Mapping - Configuration error

    Hi there,
    I have loaded an XSLT mapping that references 2 other mapping templates (in separate files). When I test the main mapping (in the Interface Mapping test tool) I get the following error:
    Transformer configuration exception occurred when loading XSLT POSbankingPacketToWPUFIB.xsl (http://ournamespace, 36cb0f00-1a9b-11d8-96af-e1600a114c15, -1)
    The trace in the tool showed the following:
    Creating XSLT mapping POSbankingPacketToWPUFIB
    URIResolver called with href = EDI_DC40.xsl and base =  POSbankingPacketToWPUFIB.xsl
    Source resolved. System id = EDI_DC40.xsl
    URIResolver called with href = WPUFIB.WPUFIB01.xsl and base = POSbankingPacketToWPUFIB.xsl
    Source resolved. System id = WPUFIB.WPUFIB01.xsl
    Any ideas on how to resolve this problem would be appreciated. Info below may also be helpful:
    - I have tested the XSL mapping in xmlSpy and it produces the required result but in the IR the error above occur. - I am using <xsl:stylesheet version="2.0" .... > in my definition
    - I am calling templates from the POSbankingPacketToWPUFIB.xsl that exist in both EDI_DC40.xsl and WPUFIB.WPUFIB01.xsl
    - I am using variables, template parameters and <xsl:text disable-output-escaping="yes"> in the referenced xsl stylesheets.
    Regards
    Christiaan

    Hi there,
    Thank you for your answer. All of those things were okay.
    The problem was related to XPath 2.0 syntax which does not seem to be supported by XI. The statement in question was:
    <xsl:for-each select="POSbankingPacket/DetailGroup[GroupType ne 'HD']">
    I have now switched to XSLT 1.1 and will hopefully find a adequate replacement statement.
    Thank you,
    Christiaan

  • Muenchian grouping difficulties

    I am building a Sharepoint search results page to find the answers to questions asked in a 3rd party tool.
    I have a bdc connection to their sql db.
    I am crawling just one one table in the db.
    I need to group question and answer results together using the muenchian method using several columns in the same table.
    I cant change the db so I have to pull the results together in search to be something meaningful.
    This table contains all the entries of questions asked and answers given.
    I have to tie them together for us using search as the application to present the Q&A
    overview of the data:
    Each record returned in the core search results has an:
    title - this is the question or the answer
    activityid(int) - unique id of the entry
    activitytypeid(int) - these identify if its a Q or A / 79 or 82
    parentid(int) - this value contains the activityid of the original question - if the record is the original question, it will have a value of 0 for this column
    isanswer(boolean) true or nothing (this is sort of redundant and does the same as activitytypeid but I was not sure if I could use it to help with the grouping)
    Review
    activitype id is either:
    79 - question being asked - this will have a parentid of 0
    or
    82 - answer to question - this will have a parent id matching the activityid of the original question
    I am trying but without much success to get my search results grouped/sorted to have the question returned first. In the example below it would be activityid 19142 and the answers to the question indented underneath with all grouped in a set
    any help in reviewing my hack at this or examples would be great.
    I am just trying to understand xsl and this has been a big learning curve. I have a long way to go and most certainly have jumped into the deep end on this.
    raw xml of results i currently get without formatting the results
      <All_Results>
        <Result>
          <id>1</id>
          <title>Answer 1</title>
          <isanswer>true</isanswer>
          <parentid>19142</parentid>
          <activitytype>82</activitytype>
          <activityid>19146</activityid>
        </Result>
        <Result>
          <id>2</id>
          <title>Original Question</title>
           <isanswer></isanswer>
          <parentid>0</parentid>
          <activitytype>79</activitytype>
          <activityid>19142</activityid>
        </Result>
        <Result>
          <id>3</id>
          <title>Answer 2</title>
           <isanswer>true</isanswer>
          <parentid>19142</parentid>
          <activitytype>82</activitytype>
          <activityid>19199</activityid>
        </Result>
        <Result>
          <id>4</id>
          <title>another Question</title>
           <isanswer></isanswer>
          <parentid>0</parentid>
          <activitytype>79</activitytype>
          <activityid>19200</activityid>
        <Result>
        <Result>
          <id>5</id>
          <title>and another Question</title>
           <isanswer></isanswer>
          <parentid>0</parentid>
          <activitytype>79</activitytype>
         <activityid>19254</activityid>
        <Result>
        <Result>
          <id>6</id>
          <title>Answer</title>
           <isanswer>true</isanswer>
          <parentid>19200</parentid>
          <activitytype>82</activitytype>
       <activityid>19265</activityid>
        </Result>
      </All_Results>
    The output I am looking for would have all answers grouped with the corresponding question
    here is my attempts to make this work in my search core results xslt.
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:param name="isanswer" />
        <xsl:param name="parentid" />
        <xsl:param name="activityid" />
     <xsl:param name="activitytypeid" />
     <xsl:key name="Questions" match="Result" use="activityid" />
     <xsl:key name="mashupid" match="Result"  use="concat(isanswer, ' ', parentid, ' ', activityid)" />
       <xsl:template match="All_Results"> 
         <xsl:variable name="QuestionsVar" select="key('Questions', activityid)" />
      <xsl:for-each select="$QuestionsVar[generate-id() = generate-id(key('mashupid', concat(isanswer, ' ', parentid, ' ', activityid))[1])]">
     <xsl:text>ActivityId </xsl:text>
     <xsl:value-of select="activityid" /><br />
     <xsl:text>Marked as Answer to: </xsl:text>
     <xsl:value-of select="parentid" /><br />
     <xsl:text>Variablevalue: </xsl:text>
     <xsl:value-of select="@QuestionsVar" /><br />
        <xsl:text>IsAnswer: </xsl:text>
        <xsl:value-of select="isanswer" /><br />
     <xsl:text>Title: </xsl:text>
     (<xsl:value-of select="title" />)<br />
      </xsl:for-each><br /><br />
       </xsl:template>
    </xsl:stylesheet>
    Thanks
    Eric
    Eric

    I am confused that whether we can apply
    muenchian grouping for two different fields value or not.
    I have implemented muenchian
    grouping for one field value  in custom xslt and it is working fine.
    But in the case for applying two different field value ,I am in doubt.
    Can anyone provide me some link whether muenchian
    grouping is applying on two different fields value .
    Prakash

  • Sharepoint 2013 XSLT view in Dataview webpart

    I have one doubt. Recently I seen that in sharepoint 2013, for data view webpart xslt view is not available in Sharepoint Designer. I came to know that XSLT view will not be supported in 2013. My query is whether Microsoft will remove complete XSLT part
    in next version of sharepoint. Like Content query webpart and all. Also am not getting why they removed that XSLT view in 2013. Because if they are going to remove XSLT, then it will create a problem in migration and all. Please clear me if you have any idea
    on the same.

    Hi,
    You should use CSR(Client Side rendering)
    http://sharepoint.stackexchange.com/questions/75451/xsl-to-customize-xsltlistviewwebpart-sharepoint-foundation-2013
    http://www.rbradbrook.co.uk/blog/2013/04/14/introduction-to-client-side-rendering-in-sharepoint-2013/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Could not compile stylesheet error on tomcat environment.

    I have created xslt for generating pdf report.It's working fine on OPM when I run through OPM.
    But when I deployed same XSL on tomcat enviroment it doesn't compile error.
    Following the XSLT I have created
    and it give me the error for this line
    i.e ERROR: 'Syntax error in 'name() eq'attribute' '.'
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
    <xsl:if test="name() eq'attribute' ">
              <fo:block margin-left="1cm">
              <xsl:for-each select="@question-text">
              <xsl:value-of select="."/>=
              </xsl:for-each>
              <xsl:if test="string-length(normalize-space(text())) > 0">
                             <xsl:value-of select="text()"/>
                   </xsl:if>
              </fo:block>
    </xsl:if>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>

    Not every xslt parser acts the same, the one in OPM is not so restrictive (unfortunately)
    Try adding a space between eq and 'attribute'.

Maybe you are looking for

  • QuicktimeMPEG2 plug-in no longer working with Snow Leopard

    I have been using the QuicktimeMPEG2 plug-in for many years. However upon my finally upgrading to Snow Leopard earlier this year I've lost that functionality. The Quicktime Player no longer recognises the plug-in although I dutifully kept a copy of t

  • Performance problem with more than one COUNT(DISTINCT ...) in a query

    Hi, (I hope this is the good forum). In the following query, I have 2 Count Distinct on 2 different fields of the same table.  Execution time is okay (2 s) with one or the other COUNT(DISCTINCT ...) in the SELECT clause, but is not tolerable (12 s) w

  • Is it possible to embed DAQmx in Installer(created by Application Builder)?

    The good thing of Installer (created by application Builder) is that it also integrates LabView Runtime Engine along with supports like Serial port support, Port I/O support etc. Due to which one can install the application developed by Labview on an

  • Trap Error in DIAdem through ToCommand

    Can you let me know if there is any means to trap errors that would occur in DIAdem Interface when it's called through ToCommand and NoErrorDisplay is set to true (1)? We try to invoke DIAdem through ToCommand in a COM, since we need DIAdem to work a

  • Erasing duplicate Contact groups

    My iPhone4 Contacts has duplicated contacts "From My Mac" and from "iCloud". This probably happened becasue I was syncing to myMac before iCloud services came on line. How can I erase all the contacts from my mac?