Aw, shucks. I would like to help, but you see, my crystal
ball is malfunctioning at the moment.
(Does the phrase 'minimal complete example' ring any bells
with you?)
My apologies, Pavel. I know a great crystal ball technician who may be
able to fix it for you, but in the interim I will copy the xml and xsl
documents. I was pressed for time when I posted the previous message
and did not have time to edit one of our account info documents to
remove the private information. Here is the XML document, named
"account info.xml" I stripped it down to the minimum necessary to
cause the problem:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="n:/Call Center Info/Call Center
All Accounts/Launchpad3_0/stylesheets/acctinfonormal.xsl"?>
<account>
<account_name>International Widget Factory</account_name>
<moddate>2007-04-11</moddate>
<greeting>Thank you for calling, this is _____ How may I help you?</
greeting>
<our_email>
<email>
[email protected]</email>
<email_info><u>Do not give to customer.</u> This email is us to report
problems to Tier 2.</email_info>
</our_email>
<contacts>
<contact>
<contact_name>Terry</contact_name>
<contact_phone>123-456-7890</contact_phone>
<contact_email>
[email protected]</contact_email>
<contact_description>Our on-site representative</contact_description>
</contact>
</contacts>
<warehouse_contacts>
<contact>
<contact_name><b>M54: </b> Heather</contact_name>
<contact_phone>123-451-1247</contact_phone>
<contact_email>
[email protected]</contact_email>
<contact_description>Call for expediting, cancellation, etc.</
contact_description>
</contact>
</warehouse_contacts>
<buscard_contacts>
<contact>
<contact_name>Mike</contact_name>
<contact_phone>789-456-1470</contact_phone>
<contact_email>
[email protected]</contact_email>
<contact_description><i>Do not give to customer.</i> Vendor has
requested that we not release this to the customer.</
contact_description>
</contact>
</buscard_contacts>
<rga>$40 restocking fee.</rga>
<miscs>
<misc>International Widget Factory occasionally requests foreign
deliveries. These are handled by Tier 2. Should you get a phone call
about a foreign delivery, contact Tier 2, they have the information.
The information <b>will not</b> be in the system because it cannot
handle international addresses.</misc>
</miscs>
</account>
Below is acctinfonormal.xsl:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/
Transform" xmlns:xlink="
http://www.w3.org/1999/xlink">
<xsl
utput method="html"/>
<xsl:template match="/">
<html>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="account_name">
<h1><xsl:apply-templates/></h1>
</xsl:template>
<xsl:template match="moddate">
<h3><xsl:apply-templates/></h3>
</xsl:template>
<xsl:template match="greeting">
<p><b>Standard Greeting: </b><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="our_email">
<p><b>Standard Register Email: </b><a href="mailto:{/account/
our_email/email}"><xsl:value-of select="/account/our_email/email"/></
a> - <xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="contacts">
<h2>Standard Register Contacts</h2>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="contact">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="contact_name">
<b>Name: </b><xsl:apply-templates/><br />
</xsl:template>
<xsl:template match="contact_phone">
<b>Phone: </b><xsl:apply-templates/><br />
</xsl:template>
</xsl:template>
<xsl:template match="contact_description">
<b>Info: </b><xsl:apply-templates/>
</xsl:template>
<xsl:template match="warehouse_contacts">
<h2>Warehouse, POD, and Plant Contacts <span style="font-size:
12pt">(for order status, expediting, and canceling)</span></h2>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="buscard_contacts">
<h2>Business Card and Stationary Contacts:</h2>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="miscs">
<h2>Miscellaneous Information</h2>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="misc">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="b|i|u">
<xsl:element name="{name()}">
<xsl:apply-templates />
</xsl:element>
</xsl:template>
</xsl:stylesheet>
This is my latest revision attempting to get the <b>, <u>, and <i>
tags to transform into html b,u, and i tags. Previously, I had used
<xsl:copy-of select="node_name"/> and that was working fine until a
few days ago. Not sure what change caused the problems (this is a
fairly rapidly evolving project), but right now they are coming
through like so:
International Widget Factory occasionally requests foreign deliveries.
These are handled by Tier 2. Should you get a phone call about a
foreign delivery, contact Tier 2, they have the information. The
information <b>will not</b> be in the system because it cannot handle
international addresses.
Any assistance would be greatly appreciated. Thank you!