Click here to Skip to main content
15,868,016 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy28-Mar-12 10:52
woopsydoozy28-Mar-12 10:52 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 18:14
mvePIEBALDconsult28-Mar-12 18:14 
QuestionXPath query to return nodes based on a range within an attribute's value. Pin
Bill.Moo13-Mar-12 6:21
Bill.Moo13-Mar-12 6:21 
AnswerRe: XPath query to return nodes based on a range within an attribute's value. Pin
woopsydoozy16-Mar-12 7:43
woopsydoozy16-Mar-12 7:43 
GeneralRe: XPath query to return nodes based on a range within an attribute's value. Pin
Bill.Moo19-Mar-12 6:18
Bill.Moo19-Mar-12 6:18 
Questionreconfirm Pin
santoshkumar11876-Mar-12 7:06
santoshkumar11876-Mar-12 7:06 
AnswerRe: reconfirm Pin
Chandrasekharan P9-Apr-12 21:02
Chandrasekharan P9-Apr-12 21:02 
Questionxml data will not display on the screen on a php page Pin
awolarczuk1-Mar-12 0:05
awolarczuk1-Mar-12 0:05 
Hi all
I have a php page with is connected to a xml file to display the data, for some reason this data will not display it will only dispplay the header and footer, i have worked out there has to be something wrong with the products.php as when i use a problem called xlm notepad and open the xml and attach the XLST or XLS it will display in the text window

if someone could please tell me how to get this fixed as i need to get it fixed asap

here is the code for the product.php

HTML
<!-- 
  Adby Designs
  By Adam Wolarczuk
  Aug 2011
-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Products - Australian Financial and Mortgage Services </title>
		
		<meta http-equiv="content-script-type" content="text/javascript" >
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" >
		<link href="settings.css" rel="stylesheet" type="text/css">


</head>

<body>
	<div id="container"><!-- Top of the page and page location -->
		
		<div id= "ptitle">PRODUCTS AND SERVICES</div>
		
		<?php include("menu.php"); ?>
		
		<?php

	 // $product = $_GET['product']
			// (use '//' to comment out a single line)
	
				  $xp = new XsltProcessor();
				 // $product = $_GET['product']
				
				  $xsl = new DomDocument;
				  $xsl->load('products.xsl');
				  
				  $xp->importStylesheet($xsl);
				  
				  $xml_doc = new DomDocument;
				  $xml_doc->load('products.xml');
				
				  $xp->setParameter('', 'product', 1);
				 
				      if ($html = $xp->transformToXML($xml_doc)) {
				      echo $html;
				  } else {
				      trigger_error('XSL transformation failed.', E_USER_ERROR);
  }			   ?>
		
		
		<!-- *****This is for the bottom table links****-->
		
			<?php include("footer.php"); ?>

		<!--**** This is for the bottom table links***-->

	<!-- Bottom  of the page and page location -->
  
    
    </div>


</body>

</html>


this is the code for the products.xml

<products>
    <product cat-ref="HL" id="HL01">
        <title lang="en">Standard Variable</title>
        <Description>
            <p>
            	"Standard Variable"
            	A standard variable loan offers the customer freedom of choice with complete
                repayment flexibility and a full range of features. <br/> The interest rate on these
                types of loans fluctuates (up or down) as interest rates change in our financial
                markets.</p>

           
          <list type="numbered">
                <list-intro>There are additional benefits associated with a standard variable
                    loan:</list-intro>

                <list-item>Flexibility to choose between interest only repayments or principal and
                    interest repayments.</list-item>
                <list-item>Redraw facility is available and you can utilise this option to redraw
                    payments already made in advance.</list-item>
                <list-item>You can have a partial or 100% interest offset facility attached to your
                    loan when the loan includes repayments for principal and interest. Interest
                    offset is not available on interest only loans.</list-item>
                <list-item>Principal reduction may be made at any time without attracting additional
                    fees.</list-item>
                <list-item>You also have the option of taking the loan over a maximum of 30 years
                    but you can opt to repay your loan in full within a shorter period of time
                    without attracting additional penalty charges.</list-item>
                <list-item>Clients can make as many additional payments to their standard variable
                    loan as they wish.</list-item>
            </list>          

            <p>It is important to note that lenders may have other associated costs to cover
                administration fees. Our consultants can compare these facilities and ensure that
                the appropriate loan structure is put in place to help you achieve your financial
                needs.<br/></p>
        </Description>
    </product>
    <product cat-ref="HL" id="HL02">
        <title lang="en">Basic Variable</title>
        <Description>
			Basic Variable
            <p>Basic variable rate loans are sometimes referred to as the 'no frills' alternative to the standard 
			variable rate loans. The interest rate is lower than a standard variable loan, making them attractive 
			to the budget conscious borrower. It offers a lower variable rate but with fewer features. These loans 
			normally have no ongoing fees associated with it.</p>
        </Description>
    </product>
	
	  <product cat-ref="HL" id="HL03">
        <title lang="en">Introductory (Honeymoon)</title>
        <Description>
            Introductory (Honeymoon)
	
			<p>An Introductory Variable Rate loan generally offers a guaranteed low rate for an initial period of 
			time (usually 12 months) after which most interest rates will revert to the Standard Variable Rate.
			It is Ideal for those wishing to take advantage of lower initial repayments.</p>
        </Description>
    </product>
	
		  <product cat-ref="HL" id="HL04">
        <title lang="en">Fixed Rate Loan</title>
        <Description>
            Fixed Rate Loan
	
			<p>Fixed rate loans are funds lent over a set term at a set interest rate. This gives the borrower 
			the certainty of knowing exactly what their monthly repayments will be should their circumstances change. 
			Some lenders may impose early repayment penalties if you make a lump sum reduction to your loan or you pay 
			the loan out in full. However, a fixed rate loan is ideal in a rising interest rate market as this guarantees
			you of your interest rate and repayments for a set time.</p>
        </Description>
    </product>
	
		  <product cat-ref="HL" id="HL05">
        <title lang="en">Refinancing</title>
        <Description>
            Refinancing
	
			<p>Mortgage refinancing is a process of renegotiating your original mortgage agreement. </p>

			<p>With the lending sector constantly changing and lenders constantly enhancing their products to attract new customers, existing customers are left behind, often with products that are no longer as well placed in the market as they once were. It is always important to keep an eye on how your mortgage stacks up against current market leaders and having a mortgage broker can simplify this for you.</p>

			<p>While there are inherent costs in altering your existing mortgage you must compare these to the savings made over the entire term of your loan.</p>
        </Description>
    </product>
    
     <product cat-ref="HL" id="HL06">
        <title lang="en">Bridging Loan</title>
        <Description>
            Bridging Loan
	
			<p>A Bridging Loan is available to borrowers who wish to purchase a new home now and sell your current home later. 
			These loans are especially helpful to 'bridge' the gap between the sale of one property and the purchase of another.
			 The interest rate on a Bridging Home Loan is usually the same as a Standard Variable Rate Loan. A Bridging Loan ensures 
			 that the borrower will not miss out on a desired property because they haven't sold the current home</p>
        </Description>
    </product>



    <product cat-ref="NCL" id="NCL02">
        <title lang="en">Credit Impaired</title>
        <Description>
            <p>Low Documentation (or No documentation) loans are designed for the self-employed or small company borrower whose financial statements may not be available for many different reasons (eg Accountant hasn't completed their financials). The borrower must have a sizeable deposit or equity in existing real estate property. Generally, most lenders lend a maximum of 80% of the property value with mortgage insurance applying above 60%.</p>

			<p>These loans are usually a variable rate and offer most of the features and benefits attached to the lender's standard variable rate loan product. A Low Document Loan can be just as competitive as a full documentation loan, however they provide less hassle as the borrower doesn't have to provide the lender income documentation.</p>
        </Description>
    </product>
    
    <product cat-ref="NCL" id="NCL03">
        <title lang="en">Low Document Loans</title>
        <Description>
            <p>At some point in the past, a borrower may have experienced difficulty in meeting their monthly commitments due to lack of work, suffered unexpected business losses or had a difference of opinion with a former credit provider. Unfortunately, in these cases the former credit provider may have lodged a payment default (or black mark) on their credit report with a credit recording agency. When applying for finance, a default lodged on a credit report may cause some frustration as a lender may not take an understanding view of the borrower’s explanation surrounding the default.</p>
        </Description>
    </product>
    
     <product cat-ref="NCL" id="NCL04">
        <title lang="en">Second Mortgages</title>
        <Description>
        
        	<p>Second Mortgages</p>
            <p>A second mortgage is an additional loan on a property. Second mortgages usually carry a higher interest charge as the first mortgage carries first priority in the case of default. The second mortgage also carries rights to the property, but these are subordinate to those of the first mortgage. In the case of approving a client for a second mortgage, the lender will calculate the affordability and risk of the first mortgage before calculating whether you would be able to meet any additional repayments.</p>
        </Description>
    </product>


    <product cat-ref="CEL" id="CEL01">
        <title lang="en">Hire Purchase</title>
        <Description>
        <p>Hire Purchase</p>
            <p>The Hire Purchase Agreement is simply a contract where the lender allows the client the right to possess and use an item of equipment in return for regular payments. When the final payment is made, the title of the goods is transferred to the customer. This product is designed for businesses wishing to finance the purchase of motor vehicles and trucks, industrial plant and equipment, business and professional equipment.
Features and benefits include:</p>

  <list type="numbered">
                <list-intro>Features and benefits include:</list-intro>

                <list-item>Repayment schedules can be structured to suit a customer’s cash flow.</list-item>
                <list-item>Can be arranged with no deposit or an amount that suits the customer.</list-item>
                <list-item>Flexible repayments allow for accurate capital budgeting..</list-item>
                <list-item>Balloon payments at the end of the term can be arranged</list-item>
                 <list-item>Client gains automatic ownership at end of term..</list-item>
                <list-item>Interest and depreciation are tax deductible if business expense.</list-item>
                <list-item>Client can repay the contract before the term ends.</list-item>

            
            </list>      
        </Description>
    </product>
    
     <product cat-ref="CEL" id="CEL02">
        <title lang="en">Finance Lease</title>
        <Description>
            <p>Finance Lease</p>
            
            <p>Here the lender purchases the plant, equipment or vehicle required by the client (the lessee). The lender then leases the goods to the customer under a lease agreement.
When the lease expires the lessee can either:.</p>
        <list type="numbered">
                <list-intro>There are additional benefits associated with a standard variable
                    loan:</list-intro>

                <list-item>Return the equipment to the lender who can sell it elsewhere. If the net sale is less than the residual value, the customer must make up the shortfall.</list-item>
                <list-item>Refinance the residual value.</list-item>
                <list-item>Pay out the contract.</list-item>
                <list-item>Make an offer to purchase, which may be accepted by the lender..</list-item>
            
            </list>          




 </Description>
    </product>
    
         <product cat-ref="BF" id="BF01">
        <title lang="en">Commercial Mortgages</title>
        <Description>
            <b>Commercial Mortgages</b>
            
            <p>A commercial mortgage is similar to a regular residential loan except that the loan is applied to a purchase of commercial property. Commercial property generally includes retail shops or offices, warehouses and factory units.</p>
            <p>Commercial mortgages are handled the same way as regular residential mortgages in that lenders want to ensure that their money will be making them more money. They will want to certify that the property being targeted is worth their investment and that the borrower’s credentials are trustworthy.</p>
            <p>If you are looking to acquire a commercial mortgage the first thing to do is put together a package detailing the potential of the property your want to buy. If possible you should do a little market research that demonstrates the property’s main selling points such as: if it is in a high traffic area, if it is easily accessible, etc… any feature that will make it more attractive in the eyes of a lender, whose main goal is to know that he or she will not lose money on this deal.</p>
            <p>Finding the right lender is the next step and that is where we come in. We do more than just find the right lender for their clients; we also offer support, information and advice. Commercial property can be a great investment if well located and properly managed.</p>
                    




 </Description>
    </product>
    
            <product cat-ref="BF" id="BF02">
        <title lang="en">Short Term Business Loans</title>
        <Description>
            <b><u>Short Term Business Loans</u></b>
            
            <p>From time to time business or investors find themselves in a situation where they need funds to get them through a short term slump, or to take advantage of a lucrative investment opportunity that presents itself. The business or investor may not be able to access normal loan funds in time to ward off financial difficulties or to take advantage of the opportunity that has presented itself. In both cases short term business loans may be the answer. Short term business loans are for business purposes only and usually the term is measured in months rather than years. The rate is much higher than normal business loans, (3%-10% per month are standard) but are usually easy and quick to obtain. These are pure asset lends with a maximum LVR of 80%. As it is a straight asset lend, credit checks and financials are not usually required.</p>
            




 </Description>
    </product>
    
      <product cat-ref="BF" id="BF03">
        <title lang="en">Medium-Long Term Business Loans</title>
        <Description>
            <b><u>Medium-Long Term Business Loans</u></b>
            
        <p>Many bank lenders charge hefty interest rate penalties for their business purpose loans. A surcharge of 1-2 percent is not uncommon and some overdraft rates are in excess of 12%. Non bank lenders are able to provide business purpose loans at the same rate as owner occupied home loan rates. If you need money for business purposes, why get ripped off by the banks when you can access the equity in your home or investment property at rates well below 7%.</p>
            




 </Description>
    </product>
    
     <product cat-ref="IP" id="IP01">
        <title lang="en">Why is an Investment Property a Good Strategy ?</title>
        <Description>
            <b><u>Why is an Investment Property a Good Strategy ?</u></b>
            
       <p>Most people like property because they can see it, touch it and watch it grow in value over a period of time. If bought in the right area (location), it can offer good returns in capital growth in future years. Also, the depreciation, coupled with rental income, makes this method an easy way to get into property and make it an attractive proposition.</p>
       <p>If you already own a property it makes getting into an investment property much easier as you can use the equity in your home as a deposit towards an investment property.</p>     




 </Description>
    </product>
    
         <product cat-ref="IP" id="IP02">
        <title lang="en">Negative Gearing</title>
        <Description>
            <b><u>Negative Gearing</u></b>
            
       <p>Negative Gearing is the situation when an investment such as property is purchased with the assistance of borrowed funds and where the rental income after the deduction of expenses (such as interest, bank fees, insurance and strata fees) is less than the interest commitment in the course of a financial year.</p>
     <p>For tax purposes this negative net income can then be offset against any positive income from other sources. This is a very handy tool in minimizing tax.</p>




 </Description>
    </product>
    
           <product cat-ref="IP" id="IP03">
        <title lang="en">Capital Gains Tax</title>
        <Description>
            <b><u>Capital Gains Tax</u></b>
            
      <p>Capital gains are the profits made on selling assets. Your primary place of residence is exempt from any capital gains tax. An investment property sold at a profit will attract a capital gains tax on the profit. The amount will be added to your regular income and taxed at your marginal rate. However, depending on your situation at the time of selling a property, the capital gains tax could be adjusted to be reduced by way of new investments put in place. You should get advice on this matter before selling so that you can structure it correctly.</p>




 </Description>
    </product>
    
       <product cat-ref="OP" id="OP01">
        <title lang="en">Line of Credit</title>
        <Description>
            <b><u>Line of Credit</u></b>
            
     <p>A Line of Credit provides a borrower with access to the equity in their home or investment properties whenever they wish for any worthwhile purpose. It is similar to an overdraft facility in that funds can be withdrawn up to the original loan approved amount at anytime. The interest rate on a Line of Credit facility is usually a variable rate that fluctuates with the market. A borrower can generally access their Line of Credit via a Cheque Book, Credit Card, ATM, Phone and Internet. A Line of Credit provides a borrower with easy access to funds ensuring peace of mind in times of need.</p>




 </Description>
    </product>
    
          <product cat-ref="OP" id="OP02">
        <title lang="en">Reverse Mortgages</title>
        <Description>
            <b><u>Reverse Mortgages</u></b>
            
     <p>Unlike conventional mortgage products reverse mortgages (also known as equity release), focus exclusively on a specific segment of the population: retirees. They allow retiring homeowners to access a largely untapped asset to fund a standard of living that for many would otherwise be out of reach. 
Reverse mortgages are similar to conventional residential mortgages in that the borrower raises funds against the security of the home. However, reverse mortgages are very different to conventional mortgages when it comes to drawdown, cash flow, and repayments.</p>
<p>In a normal mortgage, the principal amount of the loan is generally advanced as a lump sum to the borrower in order to a purchase a property. The borrower must then make regular principal and interest payments during the term of the loan. If the borrower defaults on the loan, the lender may recover the outstanding balance of the loan (including any unpaid interest) by enforcing its mortgage and selling the mortgaged home.
That is not the case with a reverse mortgage. In addition to having the option of receiving the principal in an upfront lump sum payment, the retiree can also choose to receive the principal in the form of regular part-payments from the lender during the term of the loan.
The retiree is not required to make any repayments (whether of principal or interest) to the lender during the term of the loan, however in some cases may have the option to do so. Instead, the entire loan (including accrued interest) falls due on the death of the retiree, or when the retiree moves out of the mortgaged home permanently, for example into a nursing home or if the property is sold.</p>
<p>The lender then recovers the loan by either having the beneficiaries of the retiree's estate pay the debt, or by enforcing its mortgage and selling the mortgaged home. In most cases, the lender will give the retiree's beneficiaries up to six months to finalise the debt. If the lender sells the property, they will give any funds left over to the estate of the retiree</p>


 </Description>
    </product>
    
    








    
    
    <categories>
        <category cat-id="HL">Home Loans</category>
        <category cat-id="NCL">Non-conforming Loans</category>
        <category cat-id="CEL">Car/Equipment Loans</category>
        <category cat-id="BF">Business Finance</category>
		<category cat-id="IP">Investment Property</category>
		<category cat-id="OP">Other Loans</category>
    </categories>
</products>


this is the code for the products.xsl

XML
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:key name="product-by-cat" match="product" use="@cat-ref"/>
    <xsl:key name="product-by-id" match="product" use="@id"/>
    
    <xsl:strip-space elements="*"/>
    <xsl:output indent="yes"/>
    
    <xsl:param name="product"/>
    <xsl:param name="base-page" select="'product.php'"/>
    
    <xsl:template match="products">
        <div id="productsdesc">
            <xsl:if test="normalize-space($product)">
                <xsl:apply-templates select="key('product-by-id', $product)/Description"/>
            </xsl:if>
        </div>
        <div id="products">
                     <table>
                        <xsl:for-each select="categories/category[position() mod 3 = 1]">
                            <tr>
                                <th><xsl:apply-templates select="."/></th>
                                <th><xsl:apply-templates select="following-sibling::category[1]"/></th>
                                <th><xsl:apply-templates select="following-sibling::category[2]"/></th>
                            </tr>
                            <xsl:call-template name="get-next-row">
                                <xsl:with-param name="cat1" select="@cat-id"/>
                                <xsl:with-param name="cat2" select="following-sibling::category[1]/@cat-id"/>
                                <xsl:with-param name="cat3" select="following-sibling::category[2]/@cat-id"/>
                                <xsl:with-param name="count" select="1"/>
                            </xsl:call-template>
                        </xsl:for-each>
                    </table>
        </div>
    </xsl:template>
    
    <xsl:template name="get-next-row">
        <xsl:param name="cat1"/>
        <xsl:param name="cat2"/>
        <xsl:param name="cat3"/>
        <xsl:param name="count"/>
        <xsl:if test="key('product-by-cat', $cat1)[position() = $count ]| key('product-by-cat', $cat2)[position() = $count] | key('product-by-cat', $cat3)[position() = $count]">
            <tr>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat1)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat1)[position() = $count ]/title"/></a></td>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat2)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat2)[position() = $count ]/title"/></a></td>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat3)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat3)[position() = $count ]/title"/></a></td>
            </tr>
            <xsl:call-template name="get-next-row">
                <xsl:with-param name="cat1" select="$cat1"/>
                <xsl:with-param name="cat2" select="$cat2"/>
                <xsl:with-param name="cat3" select="$cat3"/>
                <xsl:with-param name="count" select="$count + 1"/>
            </xsl:call-template>
        </xsl:if>
    </xsl:template>
    
    <xsl:template match="p">
        <p>
            <xsl:apply-templates select="node()"/>
        </p>
        <br/>
    </xsl:template>
    
    <xsl:template match="list">
        <p class="list_intro">
            <xsl:apply-templates select="list-intro"/>
        </p>
        <br/>
        <ol>
            <xsl:for-each select="list-item">
                <li><xsl:apply-templates/></li>
            </xsl:for-each>
        </ol>
    </xsl:template>
    
    
</xsl:stylesheet>


this is the code for the products.xlst

XML
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:key name="product-by-cat" match="product" use="@cat-ref"/>
    <xsl:key name="product-by-id" match="product" use="@id"/>
    
    <xsl:strip-space elements="*"/>
    <xsl:output indent="yes"/>
    
    <xsl:param name="product"/>
    <xsl:param name="base-page" select="'../product.php'"/>
    
    <xsl:template match="products">
        <div id="productsdesc">
            <xsl:if test="normalize-space($product)">
                <xsl:apply-templates select="key('product-by-id', $product)/Description"/>
            </xsl:if>
        </div>
        <div id="products">
                     <table>
                        <xsl:for-each select="categories/category[position() mod 3 = 1]">
                            <tr>
                                <th><xsl:apply-templates select="."/></th>
                                <th><xsl:apply-templates select="following-sibling::category[1]"/></th>
                                <th><xsl:apply-templates select="following-sibling::category[2]"/></th>
                            </tr>
                            <xsl:call-template name="get-next-row">
                                <xsl:with-param name="cat1" select="@cat-id"/>
                                <xsl:with-param name="cat2" select="following-sibling::category[1]/@cat-id"/>
                                <xsl:with-param name="cat3" select="following-sibling::category[2]/@cat-id"/>
                                <xsl:with-param name="count" select="1"/>
                            </xsl:call-template>
                        </xsl:for-each>
                    </table>
        </div>
    </xsl:template>
    
    <xsl:template name="get-next-row">
        <xsl:param name="cat1"/>
        <xsl:param name="cat2"/>
        <xsl:param name="cat3"/>
        <xsl:param name="count"/>
        <xsl:if test="key('product-by-cat', $cat1)[position() = $count ]| key('product-by-cat', $cat2)[position() = $count] | key('product-by-cat', $cat3)[position() = $count]">
            <tr>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat1)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat1)[position() = $count ]/title"/></a></td>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat2)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat2)[position() = $count ]/title"/></a></td>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat3)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat3)[position() = $count ]/title"/></a></td>
            </tr>
            <xsl:call-template name="get-next-row">
                <xsl:with-param name="cat1" select="$cat1"/>
                <xsl:with-param name="cat2" select="$cat2"/>
                <xsl:with-param name="cat3" select="$cat3"/>
                <xsl:with-param name="count" select="$count + 1"/>
            </xsl:call-template>
        </xsl:if>
    </xsl:template>
    
    <xsl:template match="p">
        <p>
            <xsl:apply-templates select="node()"/>
        </p>
        <br/>
    </xsl:template>
    
    <xsl:template match="list">
        <p class="list_intro">
            <xsl:apply-templates select="list-intro"/>
        </p>
        <br/>
        <ol>
            <xsl:for-each select="list-item">
                <li><xsl:apply-templates/></li>
            </xsl:for-each>
        </ol>
    </xsl:template>
    
    
</xsl:stylesheet>


thank you all for your help in advance
Questiongenerating html tree from xml file using xslt. Pin
anikbutt2210-Feb-12 1:41
anikbutt2210-Feb-12 1:41 
QuestionHow to open zipfile and xls Pin
Themba Zwane8-Feb-12 7:53
Themba Zwane8-Feb-12 7:53 
AnswerRe: How to open zipfile and xls Pin
Richard MacCutchan8-Feb-12 21:54
mveRichard MacCutchan8-Feb-12 21:54 
AnswerRe: How to open zipfile and xls Pin
ZurdoDev19-Mar-12 9:02
professionalZurdoDev19-Mar-12 9:02 
QuestionImplementing Apriori Algorithm with XQuery Pin
helloworld202018-Jan-12 1:47
helloworld202018-Jan-12 1:47 
Questionsplitting the xmlnode based on nodelength Pin
harinit11-Jan-12 22:20
harinit11-Jan-12 22:20 
AnswerRe: splitting the xmlnode based on nodelength Pin
chriselst13-Jan-12 0:48
chriselst13-Jan-12 0:48 
GeneralRe: splitting the xmlnode based on nodelength Pin
harinit16-Jan-12 22:37
harinit16-Jan-12 22:37 
AnswerRe: splitting the xmlnode based on nodelength Pin
woopsydoozy16-Mar-12 7:59
woopsydoozy16-Mar-12 7:59 
QuestionVStudio and xsd.exe create different schema Pin
Tomerland4-Jan-12 10:22
Tomerland4-Jan-12 10:22 
Questionhow to look for a VALUE in an xml document. Not a node. Pin
dotolee12-Dec-11 7:22
dotolee12-Dec-11 7:22 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Tarun.K.S12-Dec-11 18:10
Tarun.K.S12-Dec-11 18:10 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Member 86251126-Mar-12 22:40
Member 86251126-Mar-12 22:40 
QuestionHow to load xml questions into jquery flipcard? Pin
burakmartonalti14-Nov-11 19:16
burakmartonalti14-Nov-11 19:16 
QuestionXslt Transformation Pin
tellaston134527-Oct-11 6:03
tellaston134527-Oct-11 6:03 
QuestionException: "XsltContext is needed for this query because of an unknown function" Pin
NarVish20-Oct-11 22:57
NarVish20-Oct-11 22:57 
AnswerRe: Exception: "XsltContext is needed for this query because of an unknown function" Pin
NarVish21-Oct-11 0:49
NarVish21-Oct-11 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.