[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem with rendering of &#160

Subject: Problem with rendering of &#160
From: Richard.McMillian@xxxxxxxx
Date: Tue, 13 Apr 2004 14:34:32 -0600
xsl 160
I have a problem with non-breaking space being rendered as a "?" question
mark by the IE webbrowser.
I looked at the output html and the hex character is A0 as is is supposed to
be; however the XSL automatically inputs
<META http-equiv="Content-Type" content="text/html; charset=UTF-16"> after
the header.   Changing the Content
value to iso-8859-1 results in the correct rendering of the A0.  Where does
the XSL derive this META tag
value from?  I've included an XML sample and the XSL code below.

Thanks
REM

<?xml version="1.0"?>
<CEDOCS>
    <Header>
        <PurchaseOrderID>5731</PurchaseOrderID>
        <AppUserID>76</AppUserID>
        <BPHID>1722</BPHID>
        <BPDescr><![CDATA[TOP LEVEL BP]]></BPDescr>
        <BPName><![CDATA[RICHARDS COMPANY]]></BPName>
        <ShipToBPHID>1283</ShipToBPHID>
        <SoldToBPHID>1283</SoldToBPHID>
        <BackEndSystemID>1</BackEndSystemID>
        <StatusID>8</StatusID>
        <CHID>12</CHID>
        <BPID>*</BPID>
        <Reference>CED.RICHARD.04040000001007</Reference>
        <ShortReference>0404120000005717</ShortReference>
        <OrderDate>Apr 12 2004 10:15AM</OrderDate>
        <RequestedShipDate>Apr 13 2004 12:00AM</RequestedShipDate>
        <OrderTitle><![CDATA[RichardCart1]]></OrderTitle>
        <CustomerPO><![CDATA[raefqe4334345]]></CustomerPO>
        <SpecialInstructions><![CDATA[]]></SpecialInstructions>
        <OrderNumber><![CDATA[]]></OrderNumber>
        <StatusDate>Apr 12 2004 10:15AM</StatusDate>
        <LineItemCount>1</LineItemCount>
        <Carrier><![CDATA[BLUE SKY]]></Carrier>
        <Status><![CDATA[Submitted]]></Status>
        <AppUser><![CDATA[rmcmillian]]></AppUser>
        <AppUserFirstName><![CDATA[Richard]]></AppUserFirstName>
        <AppUserLastName><![CDATA[McMillian]]></AppUserLastName>
        <ShipToBP><![CDATA[RICHARD MCMILLIAN]]></ShipToBP>
        <ShipToBPDescription><![CDATA[RICHARD
MCMILLIAN]]></ShipToBPDescription>
        <ShipToAddr1><![CDATA[4205 SOUTH 96TH STREET]]></ShipToAddr1>
        <ShipToAddr2><![CDATA[ATTN: RICHARD MCMILLIAN]]></ShipToAddr2>
        <ShipToAddr3><![CDATA[]]></ShipToAddr3>
        <ShipToAddr4><![CDATA[]]></ShipToAddr4>
        <ShipToCity><![CDATA[OMAHA]]></ShipToCity>
        <ShipToState><![CDATA[NE]]></ShipToState>
        <ShipToZip>68127</ShipToZip>
        <SoldToBP><![CDATA[RICHARD MCMILLIAN]]></SoldToBP>
        <SoldToBPDescription><![RICHARD MCMILLIAN]]></SoldToBPDescription>
        <SoldToAddr1><![CDATA[4205 SOUTH 96TH STREET]]></SoldToAddr1>
        <SoldToAddr2><![CDATA[ATTN: RICHARD MCMILLIAN]></SoldToAddr2>
        <SoldToAddr3><![CDATA[]]></SoldToAddr3>
        <SoldToAddr4><![CDATA[]]></SoldToAddr4>
        <SoldToCity><![CDATA[OMAHA]]></SoldToCity>
        <SoldToState><![CDATA[NE]]></SoldToState>
        <SoldToZip>68127</SoldToZip>
    </Header>
    <Lines>
        <LineItem>
            <PurchaseOrderLineItemID>17900</PurchaseOrderLineItemID>
            <PurchaseOrderID>5731</PurchaseOrderID>
            <PHID>252</PHID>
            <ShipToBPHID>1283</ShipToBPHID>
            <StatusID>8</StatusID>
            <Price>118.35</Price>
            <Quantity>1</Quantity>
            <PerOrderingUnitCount>1000</PerOrderingUnitCount>
            <PerPricingUnitCount>1000</PerPricingUnitCount>
            <PricingUnitCode>M</PricingUnitCode>
            <OrderingUnitCode>CT1</OrderingUnitCode>
            <RequestedShipDate>Apr 13 2004 10:14AM</RequestedShipDate>
            <Remarks><![CDATA[]]></Remarks>
            <ProductNumber><![CDATA[TESTITEM ]]></ProductNumber>
            <Description><![CDATA[BARCODE LABEL 12
ROLLS/CTN]]></Description>
            <ProductImage><![CDATA[]]></ProductImage>
            <StockFlag>0</StockFlag>
            <Status><![CDATA[Submitted]]></Status>
            <ShipToBP><![CDATA[00-060 RICHARD]]></ShipToBP>
            <ShipToBPDescription><![CDATA[00-060
RICHARD]]></ShipToBPDescription>
            <ShipToAddr1><![CDATA[4205 SOUTH 96TH ST]]></ShipToAddr1>
            <ShipToAddr2><![CDATA[ATTN: RICHARD MCMILLIAN]]></ShipToAddr2>
            <ShipToAddr3><![CDATA[]]></ShipToAddr3>
            <ShipToAddr4><![CDATA[]]></ShipToAddr4>
            <ShipToCity><![CDATA[OMAHA]]></ShipToCity>
            <ShipToState><![CDATA[NE]]></ShipToState>
            <ShipToZip>68127</ShipToZip>
        </LineItem>
    </Lines>
</CEDOCS>


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
<xsl:output method="html" encoding="text" omit-xml-declaration="yes"/>
<!-- *********************************
**** 
****
-->
<xsl:template match="/">
  <HTML>
  <HEAD>
    <TITLE>
      Purchase Order:
      <xsl:value-of select="CEDOCS/Header/Reference"/>
    </TITLE>
    <STYLE>
      BODY { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: smaller }
      TD   { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: smaller }
      A    { FONT-FAMILY: Arial, Helvetica, sans-serif }
    </STYLE>
  </HEAD>
  <BODY bgcolor="#FFFFFF" marginheight="0" marginwidth="0" topmargin="0"
leftmargin="0">
    <xsl:apply-templates select="CEDOCS/Header"/>
    <p/>
      <table width="100%" cellpadding="2" cellspacing="0" border="1">
        <tr bgcolor="black">
          <td width="1%">&#160;</td>
          <td><font color="white"
width="50%"><b>Item&#160;Number</b></font></td>
          <td><font
color="white"><b>Req.&#160;Ship&#160;Date</b></font></td>
          <td align="right"><font color="white"><b>Quantity</b></font></td>
          <td align="right"><font color="white"><b>*Est.
Price</b></font></td>
        </tr>
        <xsl:apply-templates select="CEDOCS/Lines/LineItem"/>
      </table>
    &#160;*Prices do not include freight and handling
  </BODY>
  </HTML>
</xsl:template>  

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.