1 Reply Latest reply: Jun 18, 2013 10:44 AM by Jason_(A_Non) RSS

    unable to Create XSL for the XML

    kbnaraya

      Hi All,

      I have an xml file which was created by oracle webcenter center (UCM), It is a data file.

      I am trying create a xsl for the same to display them in the tabular  format.

      But I was not able to loop through using

      <xsl:for-each select="wcm:root/ssGoToUrlMapList/wcm:row"> 

       

      Not sure what mistake I am doing.Below is the xml for which I am trying to create the xls.

       

       

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>

      <wcm:root xmlns:wcm="http://www.stellent.com/wcm-data/ns/8.0.0" version="8.0.0.0">

      <wcm:list name="urlMapList">

          <wcm:row>

            <wcm:element name="uRL">url</wcm:element>

            <wcm:element name="ssOriginalAuthor">ch</wcm:element>

            <wcm:element name="ssCreateDate"/>

           </wcm:row>

      <wcm:row>

            <wcm:element name="uRL">url1</wcm:element>

            <wcm:element name="ssOriginalAuthor">ch1</wcm:element>

            <wcm:element name="ssCreateDate"/>

           </wcm:row>

        </wcm:list>

      </wcm:root>

       

       

      Thanks

      Krishnaveni

        • 1. Re: unable to Create XSL for the XML
          Jason_(A_Non)
          <xsl:for-each select="wcm:root/ssGoToUrlMapList/wcm:row"> 
          

          There is no node called "ssGoToUrlMapList" in your sample XML.

           

          You want

          <xsl:for-each select="wcm:root/wcm:list/wcm:row"> 
          

          though without seeing your full XSLT, I cannot be for certain.

           

          In order to receive an appropriate answer, you need to provide all the details, such as the XSLT and error, so that someone can duplicate and then resolve your issue.