XSL for starter

I am new to XML/XSL world. Finding it really difficult to XSL processes the XML tree. I am getting unexpected nodes to be selected using XPATH expressions. Can any one suggest any good books on XSL for starter or any web site for learing XSL. Any other tips will be great
Thanks,
Sunil

Take a look at:
http://www.ibiblio.org/xml/books/bible2/
http://www.zvon.org/xxl/XSLTutorial/Books/Book1/index.html
Good luck.

Similar Messages

  • Tool for creating xsl for .xsql

    I am looking for tool that will give me the
    default code for xsl base on a .xsql file as imput.
    What I am looking for is a xsl designer.
    null

    If you are doing HTML you can just start with a well-formed HTML file and:
    (1) Add the xsl namespace to the top element,
    (2) Add in <xsl:for-each> tags where you
    need to loop
    (3) Add in <xsl:value-of> tags where
    you want to plug-in values.
    <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform xsl:version="1.0">
    <body>
    <xsl:for-each select="ROWSET/ROW">
    <tr>
    <td><xsl:value-of select="ENAME"/></td>
    <td><xsl:value-of select="SAL"/></td>
    </tr>
    </xsl:for-each>
    </body>
    </html>
    That's it. We don't yet offer an XSL visual editor.
    null

  • Is there a way to change the hotkey for starting firefox in safe-mode?

    The current default hotkey is shift. Holding it when starting firefox will start it in safe mode (true story). My super duper favorite handy windows hotkey for starting programs pinned to the task bar in windows 7 is windows_key + shift + #, and that conflicts with the firefox setting, and i always end up starting firefox in safe mode because im that lazy.

    Greetings!
    I'm an irssi user, and I have awesome mouse gesture addon for it, and I'm afraid I can't live without it anymore.. But it requires Shift key for opening links, therefore Firefox, as my default browser, always starts in Safe mode :(
    I'm not a programmer, easiest workaround would be modifying the irssi addon, but I suck on that, too.
    If there's a way to bypass Safe Mode in Firefox, or at least a way to change the Shift key to something else, that would make my miserable life a tad easier.

  • How to create business operation for starting workflows

    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java class everything
    works fine(wlpi-ejb.jar is required), but when I call business operation from
    Studio I can't use classes from wlpi-ejb.jar.

    Business operation is called by WLIS. So, I include wlpi-ejb.jar into WLIS classpath.
    Studio uses deployed EJB from wlpi-*.jar, I don't know why Studio doesn't see
    methods from deployed EJBs when WLIS classpath contains wlpi-ejb.jar.
    "Andrew Pitonyak" <[email protected]> wrote:
    >
    When studio starts, what is your classpath? If you use the included batch
    file to start it, then your class path may not include this :-)
    Andrew
    "Raul" <[email protected]> wrote in message
    news:[email protected]..
    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java classeverything
    works fine(wlpi-ejb.jar is required), but when I call business operationfrom
    Studio I can't use classes from wlpi-ejb.jar.

  • HTTP handler for starting an external service cannot be read

    Hi,
    When i execute the work item from Business Work place and also from the UWL in Enterprise portal of the task TS21300098 for HR Process Requisition workflow.
    In the Error is says
    HTTP handler for starting an external service cannot be read
    Message no. SWK045
    Diagnosis
    This work item is a link to a HTTP service. To start the service, a launch handler must be known to the SAP System.
    However, the system could not find a launch handler.
    System Response
    The workflow system cannot start execution of the work item.
    Procedure
    Contact your workflow administrator:
    In Customizing you must maintain a launch handler for HTTP-supported dialog services.
    I have checked the config under WF_HANDCUST transaction and made the launch Handler settings generated automatically.
    But still the problem occurs.
    Any Suggesions and help?
    Thanks & Regards
    Sumanth

    hi Guys,
    I have got the same issue. This blog helped me with tcode WF_HANDCUST. I have generated the url
    http://waspgh.kcc.com:8083/sap/bc/webflow/wshandler-->Click on Generate URL and click on distribution.
    Immediately u will get click on Test url . Click Test url . Then It is not successful. It stopped at 
    http://waspgh.kcc.com:8083/sap/bc/webflow
    Getting http page error. So use tcode sicf >sap>bc-->webflow service and activate it.
    Then test the connection. It will be successfull.
    http://waspgh.kcc.com:8083/sap/bc/webflow/wshandler?ping=true&sap-client=400
    Handler test
    Test successful
    Thanks,
    Shankar

  • Xsl Problem( xsl:for-each .... )

    Hi
    I have Xml Dom Object which contain
    <Root>
       <CD>
          <Title>Empire Burlesque</Title>
          <artist>Bob Dylan</artist>
          <Price>10.50</Price>
       </CD>
    </Root> my XSL contain
    <?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="MPRoot">
      <html>
        <body>
        <h2>My CD Collection</h2>
        <table border="1">
          <xsl:for-each select="cd">
          <tr>
            <td><xsl:value-of select="title" /></td>
            <td><xsl:value-of select="artist" /></td>
            <td><xsl:value-of select="price" /></td>
          </tr>
          </xsl:for-each>
        </table>
      </body>
      </html>
    </xsl:template>
    </xsl:stylesheet> I m not getting My Desire Out put �
    I am getting all the Static Value which I have Written before (<xsl:for-each select="cd">) I have already try with (<xsl:for-each select="Root/cd"> and <xsl:for-each select="/cd"> and <xsl:for-each select="./cd">)
    Regards,
    Nilesh

    Your main template selects MPRoot elements. You don't have any MPRoot elements in your example XML. However let's suppose that your example XML is a lie and that those Root elements are MPRoot elements in real life. Then, your xsl:for-each selects cd elements. But your Root elements don't have any cd elements as children. They do have CD elements, though. So if that part of the example wasn't a lie, try <xsl:for-each select="CD"> instead.

  • Xsl for-each  not working in BPEL

    Hi,
    My input xml would contain the attribute @SourceModified at many places. In a xsl, for each occurence of that attribute I need to assign a set of values and then invoke a partnerlink.
    My code is
    <xsl:template match="/">
    <xsl:for-each select="//@SourceModified">
    <db:InputParameters>
    <db:before_text>
    <xsl:value-of select="normalize-space(.)"/>
    </db:before_text>
    <db:after_text>
    <xsl:value-of select="normalize-space(..)"/>
    </db:after_text>
    </db:InputParameters>
    </xsl:for-each>
    </xsl:template>
    Say if my input xml has the @SourceModified at 3 places, 3 different sets of values should get assigned to
    <db:InputParameters>.
    When I test the xsl in jdeveloper, i can see <db:InputParameters> coming 3 times. But when I deploy and test the BPEL process, only for the first occurence of @SourceModified, <db:InputParameters> is getting assigned in the transform.
    Please let me know how to fix this.

    hi,
    I am sending multiple @SourceModified elements. Also, i could not see any <list><db:InputParameters></list>.
    Only 1 set of value for <db:InputParameters> is getting assigned.
    I achieved the requirement in another way.
    1. counted the occurence of @SourceModified using ora:countNodes & assigned a variable count = 0
    Inside a while loop, while count<ora:countNodes(@SourceModified)
    1. i tempCountVar = count + 1
    2. pass the tempCount variable to my xsl using passing parameters to xsd.
    3. Inside the xsl, add a if condition
    <xsl:template match="/">
    <xsl:for-each select="//@SourceModified">
    *<xsl:if test select="position() = tempCountVar>*
    <db:InputParameters>
    <db:before_text>
    <xsl:value-of select="normalize-space(.)"/>
    </db:before_text>
    <db:after_text>
    <xsl:value-of select="normalize-space(..)"/>
    </db:after_text>
    </db:InputParameters>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    4. increment the count
    This worked for me. I am able to get different values of <db:InputParameters>

  • Conditions for starting WF - BO BOR Purchase contract

    Hi all,
    we have SRM application rel. 5.0 (Server 5.5) and our need is to deactivate contract's approvement, about a contract just approved, whe user modify some fields in header or item data on contract.
    Under dir SPRO --> SRM --> SRM Server --> Cross-application basic settings --> SAP business workflow --> Define conditions for starting workflows i have selected following values: "BOR" - "Purchase contract" and event "CHANGEVERSIONSAVED" and i tried to managed Start routine n° WS14000086 e WS14000088 with expression "Changed fields" using field CRMD_ORDERADM_H-DESCRIPTION, for example, but in this way i only got issue that approvement flow doesn't go !!!!
    Did i follow right way ? miss i something ?
    May you help me ?
    Best regards,
    Nick.

    Hi,
    It is either possible to use workflow (or) not to use workflow.
    It is not possible to deactivate workflow in the middle of the approval process. for example if the approver changes the contract and approves, then the contract will be approved if it is single step approval.
    if the approver changes the contract and then approves , then it will be send either to the next approver (or) creator depending on workflow security leve.
    But i am sorry it is not possible to deactivate workflow in the middle of workflow process.

  • Using DAQ occurrence to wait for start trigger

    Hi,
    I'm trying to use digital triggers to start and stop datalogging. Every time start trigger appears, new file is created and data is acquired to file until stop trigger occurs. Now I'm using set DAQ occurrence and wait for occurrence functions to wait for start trigger before creating a new file. The problem is that after first stop trigger this occurrence method doesn't work. I believe it's because AI is not cleared and configured before calling DAQ occurrence again. Number of scans acquired is not zero, if I don't clear and configure AI again? Am I right?
    Do I have to clear and init AI everytime before occurrence config or is there a better way to make program wait for start trigger?
    Thanks in advance,
    Jakke

    Hi Matt99eo,
    Have you configured your device for triggering?  Although you have not mentioned your device specifically, the M series user manual provides a great explanation of digital triggering.  Using the DAQ Assistant, this can be configured from the triggering tab.  Hopefully this helps!
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • What is prereq for reading above, and for start develop/reading with flex and cf(level?) ?

    http://www.adobe.com/devnet/flex/pdfs/getting_started_with_Flex3.pdf
    what is prereq for reading above, and for start develop/reading with flex and cf(level?) ?

    The Flex Quickstarts will be a place for starters, if you want to know 
    about Flex/CF integration the first to know would be some basics of CF.
    Sincerely,
    Michael
    Sent from my iPhone

  • No Project IMG has been defined for Starting Reference IMG  SOLMAN ERROR

    Hi All,
                 I created a off release project in prodcution and assigned logical compenents. When I am trying to create a IMG object for SPRO it is showing an error stating that "No Project IMG has been defined for Starting Reference IMG ". when I click Ok button it is showing another message ""Screen output without connection to user.". I Verified in project administration(solar_project_admin)> System Landscape>IMG projects, status for distributing IMG projects to component systems is showing in Red color. No IMG projects have been distributed into the system.
              RFC connections are showing are correctly. I am not able to find the problem and solution. Could any one help me to figureout the problem and what needs to be done
    Thanks in advance,
    Sreekala Rapuru.

    Is it mandatory that i need to create a project view?
    I have created a view "activity necessity", but not have selected any of the check boxes in "mandatory/optional/nonrequired". As well i havent generated it. I can do the "configure" now without errors
    my question is - is there anything critical which is related to this views? I went through the help page you sent me.. Is this for creating the implementation guide?  any guidelines you can send me about this is highly appreciated.
    thanks!

  • Why is it recommended to have a separate PeopleSoft ID for starting Application Server in PeopleSoft

    HI,
    Why is it recommended to have a separate PeopleSoft ID for starting Application Server in PeopleSoft

    Hello:
    You can put the JS function into the HTML Header section of the Page defintion.
    <script>
    function doDelete(id) {
    $x('P14_DEL_ID').value=id;
    doSubmit('DELETE');
    </script>Define a new page process whose process point is 'On Submit: After Computations and Validations'. For the Process Source specify
    Delete from <table> where key_column=:p14_del_id;Under Conditional Processing select 'Request=Expression 1'. For Expression 1 specify 'DELETE'
    Hope this helps.
    Varad

  • Where is the "serial number" for starting my just-paid-for Adobe Acrobat Pro XI?  Appears nowhere...

    Where is the "serial number" for starting my just-paid-for Adobe Acrobat Pro XI?  There's no sign of it in the confirmation email or in My Adobe.  Been working on this for an hour with no luck. Help!

    Hi Ralphmeima,
    Please go through the link below and check.
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Regards,
    Anand

  • PCR workflow - HTTP handler for starting an external service cannot be read

    Hi,
    We are implementing PCR Approval using adobe forms. Currently when we try to open the adobe form for Approval from the UWL we get the error(it actually displays with an information message symbol) "<b>HTTP handler for starting an external service cannot be read</b>" in an ITS screen. We found an exactly similar problem in the below link but unable to find a resolution from that.
    HTTP handler for starting an external service cannot be read
    The detailed information message displayed is as given below,
    <b>
    HTTP handler for starting an external service cannot be read
    Message no. SWK045
    Diagnosis
    This work item is a link to a HTTP service. To start the service, a launch handler must be known to the SAP System.
    However, the system could not find a launch handler.
    System response
    The workflow system cannot start execution of the work item.
    Procedure
    Contact your workflow administrator:
    In Customizing you must maintain a launch handler for HTTP-supported dialog services.</b>
    We use the standard task TS50000075 for PCR Approval
    Can anyone help us on this?
    Thanks,
    Prasath N

    Hi Jocelyn,
    Thanks for that reply.
    I tried the transactions SICF and WF_HANDCUST.
    1. In SICF under sap>bc>webflow-->wshandler when i double click on wshandler it shows that the service is active. But when i right click on the same and try to TEST it, i get an error
    <b>Error in Web service execution
    The launch handler was called with an incomplete parameter list </b>
    I am not sure what this error means.
    The configurations available in this service are as follows,
    ICF path --> /default_host/sap/bc/webflow/
    ICF Object --> wshandler
    Decription --> English
    Logon Procedure --> Standard
    Security Requirements --> Standard
    Basic Authentication --> Standard R/3 user
    Anonymous logon data
    client --> <empty>
    user --> empty
    password --> <empty-stillinitial>
    Language --> <empty>
    I am not clear what id and password should be maintained here. Can you please help us on this.
    2. When i try to generate the URL in WF_HANDCUST and test them i get a success message.
    <b>Handler test
    Test successful
    </b>
    Thanks,
    Prasath N

  • Xsl for removing specific nodes and modifying one node.

    Hello,
    i have the urgent need to remove specific nodes
    and modify one node in my XML.
    the xml as input :
    <?xml version="1.0" encoding="utf-8"?>
    <PLOT>
      <REQUEST>
        <GET_LAYOUT>
          <PROPERTIES>
            <MAPNAME name="xxxx" />
           </PROPERTIES>
          <DATAFRAME id="MAIN">
            <LAYERLIST>
              <LAYERDEF id="0" visible="false" query="" />
              <LAYERDEF id="1" visible="false" query="" />
              <LAYERDEF id="2" visible="false" query="" />
              <LAYERDEF id="3" visible="false" query="" />
              <LAYERDEF id="4" visible="false" query="" />
              <LAYERDEF id="5" visible="false" query="" />
              <LAYERDEF id="6" visible="false" query="" />
              <LAYERDEF id="7" visible="false" query="" />
              <LAYERDEF id="8" visible="false" query="" />
              <LAYERDEF id="9" visible="false" query="" />
              <LAYERDEF id="10" visible="false" query="" />     
            </LAYERLIST>
            <MAPSERVICELIST>   
              <MAPSERVICEDEF  service="BASEMAP" >
                <LAYERLIST>
                  <LAYERDEF id="2" visible="True" query="" />
                  <LAYERDEF id="1" visible="False" query="" />
                </LAYERLIST>
              </MAPSERVICEDEF>
              <MAPSERVICEDEF service="MAP1">
                <LAYERLIST>
                  <LAYERDEF id="4" visible="True" query="" />
                  <LAYERDEF id="3" visible="True" query="" />
                  <LAYERDEF id="2" visible="True" query="" />
                  <LAYERDEF id="1" visible="False" query="" />
                </LAYERLIST>
              </MAPSERVICEDEF>
            </MAPSERVICELIST>
          </DATAFRAME>
        </GET_LAYOUT>
      </REQUEST>
    </PLOT>
    what i want to have is:
    <?xml version="1.0" encoding="utf-8"?>
    <PLOT>
      <REQUEST>
        <GET_LAYOUT>
          <PROPERTIES>
            <MAPNAME name="xxxx" />
          </PROPERTIES>
          <DATAFRAME id="MAIN">
            <LAYERLIST>
       <LAYERDEF id="6" visible="True" query="" />
                <LAYERDEF id="5" visible="True" query="" />
                <LAYERDEF id="4" visible="True" query="" />
                <LAYERDEF id="3" visible="False" query="" />
    <LAYERDEF id="2" visible="True" query="" />
    <LAYERDEF id="1" visible="False" query="" />       
            </LAYERLIST>
            <MAPSERVICELIST/>   
          </DATAFRAME>
        </GET_LAYOUT>
      </REQUEST>
    </PLOT>
    as you see, <MAPSERVICELIST/>   is empty and <LAYERLIST> contains all <LAYERDEF> of <MAPSERVICEDEF>/<LAYERLIST> 
     The ones  of BASEMAP  are kept unchanged  but the ones of MAP1 are having a new attribute value for id.
    Thanks four your help.
    Regards.

    You can implement very straightforward map in BizTalk like below:
    If you are interested in XSLT of this map, I copied below which visual studio gave me when i validated the map:
    <?xml version="1.0" encoding="UTF-16"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/PLOT" />
    </xsl:template>
    <xsl:template match="/PLOT">
    <PLOT>
    <REQUEST>
    <GET_LAYOUT>
    <PROPERTIES>
    <MAPNAME>
    <xsl:if test="REQUEST/GET_LAYOUT/PROPERTIES/MAPNAME/@name">
    <xsl:attribute name="name">
    <xsl:value-of select="REQUEST/GET_LAYOUT/PROPERTIES/MAPNAME/@name" />
    </xsl:attribute>
    </xsl:if>
    <xsl:value-of select="REQUEST/GET_LAYOUT/PROPERTIES/MAPNAME/text()" />
    </MAPNAME>
    <xsl:value-of select="REQUEST/GET_LAYOUT/PROPERTIES/text()" />
    </PROPERTIES>
    <DATAFRAME>
    <xsl:if test="REQUEST/GET_LAYOUT/DATAFRAME/@id">
    <xsl:attribute name="id">
    <xsl:value-of select="REQUEST/GET_LAYOUT/DATAFRAME/@id" />
    </xsl:attribute>
    </xsl:if>
    <LAYERLIST>
    <xsl:for-each select="REQUEST/GET_LAYOUT/DATAFRAME/MAPSERVICELIST/MAPSERVICEDEF">
    <xsl:for-each select="LAYERLIST/LAYERDEF">
    <LAYERDEF>
    <xsl:if test="../../../../LAYERLIST/LAYERDEF/@id">
    <xsl:attribute name="id">
    <xsl:value-of select="../../../../LAYERLIST/LAYERDEF/@id" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="@id">
    <xsl:attribute name="id">
    <xsl:value-of select="@id" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="../../../../LAYERLIST/LAYERDEF/@visible">
    <xsl:attribute name="visible">
    <xsl:value-of select="../../../../LAYERLIST/LAYERDEF/@visible" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="@visible">
    <xsl:attribute name="visible">
    <xsl:value-of select="@visible" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="../../../../LAYERLIST/LAYERDEF/@query">
    <xsl:attribute name="query">
    <xsl:value-of select="../../../../LAYERLIST/LAYERDEF/@query" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="@query">
    <xsl:attribute name="query">
    <xsl:value-of select="@query" />
    </xsl:attribute>
    </xsl:if>
    </LAYERDEF>
    </xsl:for-each>
    </xsl:for-each>
    <xsl:value-of select="REQUEST/GET_LAYOUT/DATAFRAME/LAYERLIST/text()" />
    </LAYERLIST>
    <MAPSERVICELIST>
    <xsl:text> </xsl:text>
    </MAPSERVICELIST>
    <xsl:value-of select="REQUEST/GET_LAYOUT/DATAFRAME/text()" />
    </DATAFRAME>
    <xsl:value-of select="REQUEST/GET_LAYOUT/text()" />
    </GET_LAYOUT>
    <xsl:value-of select="REQUEST/text()" />
    </REQUEST>
    </PLOT>
    </xsl:template>
    </xsl:stylesheet>
    You can highlight the issue if you have any specific one.
    Please mark it as Answer if this answers your question
    Thanks.
    Mo
    The contents I write here is my personal views, not the view of my employer and anyone else.

Maybe you are looking for

  • How can I use the money in my account to make my purchase?

    Hi, I'm trying to use my $1.31 in my apple itunes account to purchase a song, but I'm prompted with an error message and taken to my payment information to fix my previous declined purchase. If the purchase was declined, why can't they just leave it

  • How to Send a Mail From the Oracle Applications.

    Hi, I was assigned a task to send a mail from the front end i.e., from oracle applications. but i have no idea. i am working on oracle apps R12.1.1 and 10g reports. First i have to create an rdf file and that rdf file i want to send as an attachment

  • Runtime Error in Portal

    Hi All, In one of my iviews, i need to set an input filed as of Pull Down type. Now there are 2 options available either to set the input field as a Dropdown or as a Pull down. When i use Dropdown its working absolutely fine, but when i change it to

  • Sun java vs. microsoft java

    I need to know what the difference is between the two of these. And some good places to find info regarding this topic? I need to know differences, similarities, and what each is better suited for. I don't need this for a specific op sys but i need t

  • How to disable user for disk encryption unlock

    When I add an account that user is added to the list of enabled users when first booting a disk protected with Filevault2. I only want the master password to unlock disk encryption. I don't want to list admin or standard accounts. Is this possible?