Solved

How to add a new element to an XSL sytle sheet

Posted on 2002-03-04
7
208 Views
Last Modified: 2013-11-19
Hi

I got an XSL style sheet and I got so many elements in my
xsl sytle sheet which are already desinged by some one.

I'm trying to add a new element similar to another element. When i try to add a new element similar to another element my stylesheet is not running. I don't no what's the reason.

What could be the possible reasons for not displying when i add a new element similar to another one.

Could any body answer this please.

VM
0
Comment
Question by:vmandem
7 Comments
 
LVL 27

Accepted Solution

by:
BigRat earned 20 total points
ID: 6841212
An XSL style sheet must be a well-formed XML document. You have probably edited it so that this is no longer the case.

Which tool set are you using? I actually edit my stylesheets in an HTML form and validate them with MSXML DOM before sending to the server for storage.
0
 
LVL 5

Expert Comment

by:Peewee
ID: 6841531
vmandem,
post your input, xsl doc and your ammended xsl doc here and i can test it and tell you  exactly what it is..

it could be a number of things...

peewee
0
 

Author Comment

by:vmandem
ID: 6841952
Peewee

I'm pasting the whole xsl style sheet below and in the next comment i'm pasting  the stuff i want to add to the above xsl style sheet:

  <?xml version="1.0" ?>
- <!--  File Name: InvoiceReport.xsl
  -->
- <!--  Purpose: Stylesheet for bill presentation at XYZ Marketing
  -->
- <!--  Developed By: Mark Barnhart, XYZ Corporation
  -->
- <!--  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- <xsl:template match="/">
- <html>
- <head>
  <title>XYZ</title>
  <style type="text/css">@import "Invoice System/BillStyle.css";</style>
  </head>
- <body style="FONT-FAMILY: Arial, Helvetica, sans-serif">
- <!--  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  -->
- <!--  ____________________Table of Contents Page ___________________
  -->
  <a name="Contents" />
- <table width="100%" style="FONT-SIZE: 12px">
- <tr>
- <td width="50%" valign="top">
- <!--  ________XYZLOGO________
  -->
- <p>
- <img alt="XYZ" border="0">
- <xsl:attribute name="src">
  Invoice System/
  <xsl:value-of select="//ProviderLogo" />
  </xsl:attribute>
  </img>
  </p>
  </td>
- <td width="50%">
- <!--  ________Top Right Side Table________
  -->
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>BILL DATE</strong>
  </td>
- <td>
  <xsl:value-of select="//BillDate" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>SERVICE PERIOD</strong>
  </td>
- <td>
  <xsl:value-of select="//ServiceStart" />
  TO
  <xsl:value-of select="//ServiceEnd" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>CUSTOMER</strong>
  </td>
- <td>
  <xsl:value-of select="//CustomerName" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>INVOICE NUMBER</strong>
  </td>
- <td>
  <xsl:value-of select="//InvoiceNumber" />
  </td>
  </tr>
  </table>
  </td>
  </tr>
  <tr />
  </table>
  <br />
  <br />
- <!--  ________Contents Table________
  -->
- <table align="center" border="1" cellspacing="0" cellpadding="1" width="400" style="FONT-SIZE: 12px">
- <thead>
- <tr class="color">
- <th style="FONT-SIZE: 16px">
  Table of Contents
  <br />
  <xsl:value-of select="//CustomerName" />
  </th>
  </tr>
  </thead>
- <tbody>
- <xsl:for-each select="//Summary">
- <tr>
- <td align="center">
  <a href="#Bill Summary">Account Summary Bill</a>
  </td>
  </tr>
  </xsl:for-each>
- <xsl:for-each select="CustomerInvoice/Invoice">
- <tr>
- <td align="center">
- <a>
- <xsl:attribute name="href">
  #
  <xsl:value-of select="InvoiceHeader/InvoiceSummary/AccountID" />
  </xsl:attribute>
  Bill Summary
  <xsl:value-of select="InvoiceHeader/InvoiceSummary/AccountID" />
  </a>
  </td>
  </tr>
- <xsl:for-each select=".//Page">
- <tr>
- <td align="center">
- <a>
- <xsl:attribute name="href">
  #
  <xsl:value-of select="Title" />
  </xsl:attribute>
  <xsl:value-of select="Title" />
  </a>
  </td>
  </tr>
  </xsl:for-each>
  </xsl:for-each>
  </tbody>
  </table>
- <!--  ________Add Line to End Page________
  -->
  <br />
  <br />
  <hr align="left" width="100%" size="1" noshade="yes" />
  <br />
  <br />
- <!--  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  -->
- <!--  ____________________Summary Billing Invoice Page ___________________
  -->
- <xsl:for-each select="//Summary">
  <p class="pageBreak"></p>
  <a name="Bill Summary" />
- <table width="100%" style="FONT-SIZE: 12px">
- <tr>
- <td width="50%" valign="top">
- <!--  ________XYZLOGO________
  -->
- <p>
- <img alt="XYZ" border="0" usemap="#mapLogo">
- <xsl:attribute name="src">
  Invoice System/
  <xsl:value-of select="//ProviderLogo" />
  </xsl:attribute>
  </img>
  </p>
- <map name="mapLogo">
  <area href="#Contents" alt="Return to Index" shape="rect" coords="0,0,300,150" />
  </map>
- <!--  ________XYZAddress________
  -->
- <p style="FONT-SIZE: 14px">
  <xsl:value-of select="//ProviderAddress" />
  <br />
  <xsl:value-of select="//ProviderCity" />
  ,
  <xsl:value-of select="//ProviderState" />
  <xsl:value-of select="//ProviderZip" />
  <br />
- <xsl:for-each select=".//ProviderNumbers/ProviderNumber">
  <xsl:value-of select="@ContactType" />
  :  
  <xsl:value-of select="." />
  <br />
  </xsl:for-each>
  </p>
  </td>
- <td width="50%">
- <!--  ________Top Right Side Table________
  -->
- <p>
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>BILL DATE</strong>
  </td>
- <td>
  <xsl:value-of select="//BillDate" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>SERVICE PERIOD</strong>
  </td>
- <td>
  <xsl:value-of select="//ServiceStart" />
  TO
  <xsl:value-of select="//ServiceEnd" />
  </td>
  </tr>
  </table>
  </p>
- <!--  ________Middle Right Side Table________
  -->
- <p style="MARGIN-TOP: -7px">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>ACCOUNT ID</strong>
  </td>
- <td>
  <xsl:value-of select="SummaryAccountID" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>INVOICE NUMBER</strong>
  </td>
- <td>
  <xsl:value-of select="//InvoiceNumber" />
  </td>
  </tr>
  </table>
  </p>
- <!--  ________Bottom Right Side Table________
  -->
- <p style="MARGIN-TOP: -7px">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>PAYMENT DUE BY</strong>
  </td>
- <td align="center">
- <strong>
  <xsl:value-of select="//PayOption[0]/@PaymentDue" />
  </strong>
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>AMOUNT DUE</strong>
  </td>
- <td nowrap="yes" align="right">
- <strong>
  <xsl:value-of select="SummaryAmount" />
  </strong>
  </td>
  </tr>
  </table>
  </p>
  </td>
  </tr>
  </table>
- <!--  ________Address Information________
  -->
- <table width="100%" border="0" cellspacing="0" cellpadding="2">
- <tr>
  <td width="17%" />
- <!--  ________Customer Address________
  -->
- <td width="40%" valign="top" nowrap="yes" style="FONT-SIZE: 14px">
  <br />
  <xsl:value-of select="//CustomerName" />
  <br />
  <xsl:value-of select="//CustomerContact" />
  <br />
  <xsl:value-of select="//CustomerAddress" />
  <br />
  <xsl:value-of select="//CustomerCity" />
  ,
  <xsl:value-of select="//CustomerState" />
  <xsl:value-of select="//CustomerZip" />
  <br />
  <xsl:value-of select="//CustomerPhone" />
  <br />
  <xsl:value-of select="//CustomerWeb" />
  <br />
  </td>
  <td width="2%" />
- <!--  ________Payment Address #1________
  -->
- <td valign="top" nowrap="yes" style="FONT-SIZE: 11px">
- <em>
  <xsl:value-of select="//PayOption[0]/@Method" />
  </em>
  <br />
- <xsl:for-each select="/CustomerInvoice/Invoice[0]/InvoiceHeader/Addresses/Payment/PayOption[0]/OptionLine">
  <xsl:value-of select="." />
  <br />
  </xsl:for-each>
  </td>
  <td width="2%" />
- <!--  ________Payment Address #2________
  -->
- <td valign="top" nowrap="yes" style="FONT-SIZE: 11px">
- <em>
  <xsl:value-of select="//PayOption[1]/@Method" />
  </em>
  <br />
- <xsl:for-each select="/CustomerInvoice/Invoice[0]/InvoiceHeader/Addresses/Payment/PayOption[0]/OptionLine">
  <xsl:value-of select="." />
  <br />
  </xsl:for-each>
  </td>
  </tr>
  </table>
- <!--  ________Add Break Line________
  -->
  <br />
  <hr align="left" width="100%" size="1" noshade="yes" />
- <!--  ________Billing Summary Table ________
  -->
- <table width="100%" border="1" cellspacing="0" cellpadding="2" frame="box" rules="groups">
  <colgroup align="left" width="33%" />
  <colgroup align="right" width="12%" />
  <colgroup align="left" width="7%" />
  <colgroup align="right" width="10%" />
  <colgroup align="right" span="2" />
  <colgroup align="left" width="24%" />
- <caption style="FONT-SIZE: 13px" align="left">
  <strong>Billing Summary</strong>
  </caption>
- <thead>
- <tr class="color">
- <th align="middle">
  <strong>Description</strong>
  </th>
- <th align="middle">
  <strong>Quantity</strong>
  </th>
- <th align="middle">
  <strong>Units</strong>
  </th>
- <th align="middle">
  <strong>Price</strong>
  </th>
- <th align="middle" colspan="2">
  <strong>Charge</strong>
  </th>
- <th align="middle">
  <strong>Comments</strong>
  </th>
  </tr>
  </thead>
- <tbody>
- <xsl:for-each select="//Invoice">
- <tr style="FONT-SIZE: 10px">
- <td>
- <strong>
  <xsl:value-of select="InvoiceHeader/InvoiceSummary/AccountID" />
  </strong>
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
  </tr>
- <xsl:for-each select="LineItemReport/InvoiceDetails/LineItem">
- <tr style="FONT-SIZE: 10px">
- <td>
       
  <xsl:value-of select="Description" />
  </td>
- <td>
  <xsl:value-of select="Quantity" />
  </td>
- <td>
  <xsl:value-of select="Unit" />
  </td>
- <td>
  <xsl:value-of select="Price" />
  </td>
- <td width="13%">
  <xsl:value-of select="Charge" />
  </td>
- <td width="2%">
  <xsl:value-of select="Charge/@Type" />
  </td>
- <td>
  <xsl:value-of select="Comment" />
  </td>
  </tr>
  </xsl:for-each>
- <tr>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
  </tr>
  </xsl:for-each>
- <tr style="FONT-SIZE: 10px">
  <td>Customer Total</td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <xsl:value-of select="SummaryAmount" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
  </tr>
- <tr>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
  </tr>
  </tbody>
  </table>
- <!--  ________Notes Table ________
  -->
  <br />
- <em>
  Notes:
  <br />
  </em>
- <table width="100%" style="FONT-SIZE: 10px">
- <tr>
- <td width="60%">
- <p>
- <em>
- <xsl:for-each select=".//Notes/Line">
  <xsl:value-of disable-output-escaping="no" select="." />
  <br />
  </xsl:for-each>
  </em>
  </p>
  </td>
  </tr>
  </table>
  <br />
- <!--  ________ Thank You Table ________
  -->
- <table class="color" width="100%" border="1" cellspacing="0" cellpadding="2" frame="box" rules="groups" style="FONT-SIZE: 10px;">
- <tr>
- <td>
  Thank you for letting XYZ supply your needs.
  <br />
  For specific billing questions, please contact:
  <xsl:value-of select="//ProviderContact/ProviderContactName" />
   
  <xsl:value-of select="//ProviderContactPhone" />
   
  <xsl:value-of select="//ProviderContactEmail" />
  <br />
  For all other questions related to your account, please contact:
  <xsl:value-of select="//ProviderContact[1]/ProviderContactName" />
   
  <xsl:value-of select="//ProviderContact[1]/ProviderContactPhone" />
   
  <xsl:value-of select="//ProviderContact[1]/ProviderContactEmail" />
  <br />
  We appreciate your business.
  </td>
  </tr>
  </table>
  </xsl:for-each>
- <!--  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  -->
- <!--  ____________________Bill Summary Page ___________________
  -->
- <xsl:for-each select="//Invoice">
  <p class="pageBreak"></p>
- <a>
- <xsl:attribute name="name">
  <xsl:value-of select="InvoiceHeader/InvoiceSummary/AccountID" />
  </xsl:attribute>
  </a>
- <table width="100%" style="FONT-SIZE: 12px">
- <tr>
- <td width="50%" valign="top">
- <!--  ________XYZLOGO________
  -->
- <p>
- <img alt="XYZ" border="0" usemap="#mapLogo">
- <xsl:attribute name="src">
  Invoice System/
  <xsl:value-of select="//ProviderLogo" />
  </xsl:attribute>
  </img>
  </p>
- <map name="mapLogo">
  <area href="#Contents" alt="Return to Index" shape="rect" coords="0,0,300,150" />
  </map>
- <!--  ________XYZAddress________
  -->
- <p style="FONT-SIZE: 14px">
  <xsl:value-of select="//ProviderAddress" />
  <br />
  <xsl:value-of select="//ProviderCity" />
  ,
  <xsl:value-of select="//ProviderState" />
  <xsl:value-of select="//ProviderZip" />
  <br />
- <xsl:for-each select=".//ProviderNumbers/ProviderNumber">
  <xsl:value-of select="@ContactType" />
  :  
  <xsl:value-of select="." />
  <br />
  </xsl:for-each>
  </p>
  </td>
- <td width="50%">
- <!--  ________Top Right Side Table________
  -->
- <p>
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>BILL DATE</strong>
  </td>
- <td>
  <xsl:value-of select="//BillDate" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>SERVICE PERIOD</strong>
  </td>
- <td>
  <xsl:value-of select="//ServiceStart" />
  TO
  <xsl:value-of select="//ServiceEnd" />
  </td>
  </tr>
  </table>
  </p>
- <!--  ________Middle Right Side Table________
  -->
- <p style="MARGIN-TOP: -7px">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>ACCOUNT ID</strong>
  </td>
- <td>
  <xsl:value-of select="InvoiceHeader/InvoiceSummary/AccountID" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>INVOICE NUMBER</strong>
  </td>
- <td>
  <xsl:value-of select="//InvoiceNumber" />
  </td>
  </tr>
  </table>
  </p>
- <!--  ________Bottom Right Side Table________
  -->
- <p style="MARGIN-TOP: -7px">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>PAYMENT DUE BY</strong>
  </td>
- <td align="center">
- <strong>
  <xsl:value-of select="//PayOption[0]/@PaymentDue" />
  </strong>
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>AMOUNT DUE</strong>
  </td>
- <td nowrap="yes" align="right">
- <strong>
  <xsl:value-of select="InvoiceHeader/InvoiceSummary/AmountDue" />
  </strong>
  </td>
  </tr>
  </table>
  </p>
  </td>
  </tr>
  </table>
- <!--  ________Address Information________
  -->
- <table width="100%" border="0" cellspacing="0" cellpadding="2">
- <tr>
  <td width="17%" />
- <!--  ________Customer Address________
  -->
- <td width="40%" valign="top" nowrap="yes" style="FONT-SIZE: 14px">
  <br />
  <xsl:value-of select="//CustomerName" />
  <br />
  <xsl:value-of select="//CustomerContact" />
  <br />
  <xsl:value-of select="//CustomerAddress" />
  <br />
  <xsl:value-of select="//CustomerCity" />
  ,
  <xsl:value-of select="//CustomerState" />
  <xsl:value-of select="//CustomerZip" />
  <br />
  <xsl:value-of select="//CustomerPhone" />
  <br />
  <xsl:value-of select="//CustomerWeb" />
  <br />
  </td>
  <td width="2%" />
- <!--  ________Payment Address #1________
  -->
- <td valign="top" nowrap="yes" style="FONT-SIZE: 11px">
- <em>
  <xsl:value-of select=".//PayOption[0]/@Method" />
  </em>
  <br />
- <xsl:for-each select=".//PayOption[0]/OptionLine">
  <xsl:value-of select="." />
  <br />
  </xsl:for-each>
  </td>
  <td width="2%" />
- <!--  ________Payment Address #2________
  -->
- <td valign="top" nowrap="yes" style="FONT-SIZE: 11px">
- <em>
  <xsl:value-of select=".//PayOption[1]/@Method" />
  </em>
  <br />
- <xsl:for-each select=".//PayOption[1]/OptionLine">
  <xsl:value-of select="." />
  <br />
  </xsl:for-each>
  </td>
  </tr>
  </table>
- <!--  ________Add Break Line________
  -->
  <br />
  <hr align="left" width="100%" size="1" noshade="yes" />
- <!--  ________Billing Summary Table ________
  -->
- <table width="100%" border="1" cellspacing="0" cellpadding="2" frame="box" rules="groups">
  <colgroup align="left" width="33%" />
  <colgroup align="right" width="12%" />
  <colgroup align="left" width="7%" />
  <colgroup align="right" width="10%" />
  <colgroup align="right" span="2" />
  <colgroup align="left" width="24%" />
- <caption style="FONT-SIZE: 13px" align="left">
  <strong>Billing Summary</strong>
  </caption>
- <thead>
- <tr class="color">
- <th align="middle">
  <strong>Description</strong>
  </th>
- <th align="middle">
  <strong>Quantity</strong>
  </th>
- <th align="middle">
  <strong>Units</strong>
  </th>
- <th align="middle">
  <strong>Price</strong>
  </th>
- <th align="middle" colspan="2">
  <strong>Charge</strong>
  </th>
- <th align="middle">
  <strong>Comments</strong>
  </th>
  </tr>
  </thead>
- <tbody>
- <xsl:for-each select=".//LineItem">
- <tr style="FONT-SIZE: 10px">
- <td>
  <xsl:value-of select="Description" />
  </td>
- <td>
  <xsl:value-of select="Quantity" />
  </td>
- <td>
  <xsl:value-of select="Unit" />
  </td>
- <td>
  <xsl:value-of select="Price" />
  </td>
- <td width="13%">
  <xsl:value-of select="Charge" />
  </td>
- <td width="2%">
  <xsl:value-of select="Charge/@Type" />
  </td>
- <td>
  <xsl:value-of select="Comment" />
  </td>
  </tr>
  </xsl:for-each>
- <tr>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
- <td>
  <span style="width:1px;" />
  </td>
  </tr>
  </tbody>
  </table>
- <!--  ________Notes Table ________
  -->
  <br />
- <em>
  Notes:
  <br />
  </em>
- <table width="100%" style="FONT-SIZE: 10px">
- <tr>
- <td width="60%">
- <p>
- <em>
- <xsl:for-each select=".//Notes/Line">
  <xsl:value-of disable-output-escaping="no" select="." />
  <br />
  </xsl:for-each>
  </em>
  </p>
  </td>
  </tr>
  </table>
  <br />
- <!--  ________ Thank You Table ________
  -->
- <table class="color" width="100%" border="1" cellspacing="0" cellpadding="2" frame="box" rules="groups" style="FONT-SIZE: 10px;">
- <tr>
- <td>
  Thank you for letting XYZ supply your needs.
  <br />
  For specific billing questions, please contact:
  <xsl:value-of select="//ProviderContact/ProviderContactName" />
   
  <xsl:value-of select="//ProviderContactPhone" />
   
  <xsl:value-of select="//ProviderContactEmail" />
  <br />
  For all other questions related to your account, please contact:
  <xsl:value-of select="//ProviderContact[1]/ProviderContactName" />
   
  <xsl:value-of select="//ProviderContact[1]/ProviderContactPhone" />
   
  <xsl:value-of select="//ProviderContact[1]/ProviderContactEmail" />
  <br />
  We appreciate your business.
  </td>
  </tr>
  </table>
- <!--  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  -->
- <!--  ____________________Generic Supplemental Page(s) ___________________
  -->
- <!--  Step through each page tag
  -->
- <xsl:for-each select=".//Page">
- <!--  Add Page Break and Link
  -->
  <p class="pageBreak"></p>
- <a>
- <xsl:attribute name="name">
  <xsl:value-of select="Title" />
  </xsl:attribute>
  </a>
- <table width="100%" style="FONT-SIZE: 12px">
- <tr>
- <td width="50%" valign="top">
- <!--  ________XYZLOGO________
  -->
- <p>
- <img alt="XYZ" border="0" usemap="#mapLogo">
- <xsl:attribute name="src">
  Invoice System/
  <xsl:value-of select="//ProviderLogo" />
  </xsl:attribute>
  </img>
  </p>
- <!--  ________XYZAddress________
  -->
- <p style="FONT-SIZE: 14px">
  <xsl:value-of select="//ProviderAddress" />
  <br />
  <xsl:value-of select="//ProviderCity" />
  ,
  <xsl:value-of select="//ProviderState" />
  <xsl:value-of select="//ProviderZip" />
  <br />
- <xsl:for-each select=".//ProviderNumbers/ProviderNumber">
  <xsl:value-of select="@ContactType" />
  :  
  <xsl:value-of select="." />
  <br />
  </xsl:for-each>
  </p>
  </td>
- <td width="50%">
- <!--  ________Top Right Side Table________
  -->
- <p>
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>BILL DATE</strong>
  </td>
- <td>
  <xsl:value-of select="//BillDate" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>SERVICE PERIOD</strong>
  </td>
- <td>
  <xsl:value-of select="//ServiceStart" />
  TO
  <xsl:value-of select="//ServiceEnd" />
  </td>
  </tr>
  </table>
  </p>
- <!--  ________Bottom Right Side Table________
  -->
- <p style="MARGIN-TOP: -7px">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>ACCOUNT ID</strong>
  </td>
- <td>
  <xsl:value-of select="../../InvoiceHeader/InvoiceSummary/AccountID" />
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>INVOICE NUMBER</strong>
  </td>
- <td>
  <xsl:value-of select="//InvoiceNumber" />
  </td>
  </tr>
  </table>
  </p>
  </td>
  </tr>
  </table>
- <!--  ________Customer Name Table________
  -->
- <table width="100%" border="0" cellspacing="0" cellpadding="2">
- <tr>
  <td width="17%" />
- <td width="40%" valign="top" nowrap="yes" style="FONT-SIZE: 14px">
  <br />
  <xsl:value-of select="//CustomerName" />
  <br />
  </td>
  </tr>
  </table>
- <!--  ________Add Break Line________
  -->
  <br />
  <hr align="left" width="100%" size="1" noshade="yes" />
- <!--  ________Billing Summary Table ________
  -->
- <table width="100%" border="1" cellspacing="0" cellpadding="2" frame="box">
- <caption style="FONT-SIZE: 20px" align="left">
- <strong>
  <xsl:value-of select="Title" />
  </strong>
  </caption>
- <thead>
- <tr class="color">
- <strong>
- <xsl:for-each select="..//Header/ColHdr">
- <th style="FONT-SIZE: 8px" align="middle">
  <xsl:value-of select="." />
  </th>
  </xsl:for-each>
  </strong>
  </tr>
  </thead>
- <tbody>
- <!--  Add Item to Supplemental Report
  -->
- <xsl:for-each select=".//PageLine">
- <tr style="FONT-SIZE: 10px">
- <xsl:for-each select="ColVal">
- <td align="right">
  <xsl:value-of select="." />
  </td>
  </xsl:for-each>
  </tr>
  </xsl:for-each>
- <!--  Add Item to Footer of Supplemental Report
  -->
- <xsl:for-each select=".//Footer">
- <tr style="FONT-SIZE: 10px">
- <xsl:for-each select="ColFtr">
- <td align="right">
- <strong>
  <xsl:value-of select="." />
  </strong>
  </td>
  </xsl:for-each>
  </tr>
  </xsl:for-each>
  </tbody>
  </table>
  </xsl:for-each>
  </xsl:for-each>
  </body>
  </html>
  </xsl:template>
  </xsl:stylesheet>




0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:vmandem
ID: 6841957
peewee

Here is the stuff i want to add:


- <!--  ________Bottom Right Side Table________
  -->
- <p style="MARGIN-TOP: -7px">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" rules="all" style="FONT-SIZE: 12px">
- <tr>
- <td width="125" class="color">
  <strong>PAYMENT ADJUSTMENT BY</strong>
  </td>
- <td align="center">
- <strong>
  <xsl:value-of select="//PayOption[0]/@PaymentDue" />
  </strong>
  </td>
  </tr>
- <tr>
- <td class="color">
  <strong>AMOUNT ADJUSTMENT</strong>
  </td>
- <td nowrap="yes" align="right">
- <strong>
  <xsl:value-of select="SummaryAmount" />
  </strong>
  </td>
  </tr>
  </table>
  </p>
  </td>
  </tr>
  </table>


********
Comments: When i add the above snippet of code into my xslstyle sheet it stops displaying in the browser.
What could be the reason.
I appreciate your response.

Thanks
VM
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6978729
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if they are still open in 14 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20133204.html
http://www.experts-exchange.com/questions/Q.20266339.html
http://www.experts-exchange.com/questions/Q.20267423.html
http://www.experts-exchange.com/questions/Q.20271212.html
http://www.experts-exchange.com/questions/Q.20273247.html
http://www.experts-exchange.com/questions/Q.20281637.html
http://www.experts-exchange.com/questions/Q.20290653.html



*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
POINTS FOR EXPERTS awaiting comments are listed in the link below
http://www.experts-exchange.com/commspt/Q.20277028.html
 
Moderators will finalize this question if in @14 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
0
 

Author Comment

by:vmandem
ID: 7212708
BigRat

I appreciate your response and i'm closing this question
with adminstrator's response.

Thanks
VM
0
 
LVL 27

Expert Comment

by:BigRat
ID: 7213944
<p style="MARGIN-TOP: -7px">
<table ....>
.....
</table>

should read :-

<p style="MARGIN-TOP: -7px">
<table ....>
.....
</table>
</p>                  <--------!!!!!!!!!!!!!!!! forgotten!

so that the HTML (=XML) is well formed.

(I only got a "good answer" notif on this one, otherwise I would have spotted this eariler)

HTH
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now