SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Zero Point Zero Siebird's Avatar
    Join Date
    Feb 2007
    Location
    York, PA
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "/" Character not showing?

    Hi,

    I can't seem to figure out why the XML isn't printing the "/" character. For instance I have this:
    Code XML:
    <spec>Dividers: 7/8 Simulated Divided Lites With Space Bars</spec>
    Prints: Dividers: 78 Simulated Divided Lites With Space Bars

  2. #2
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never heard of it. How do you print the content from this XML file?
    I'm creating trouble-free Apache, PHP, MySQL installer, WITSuite,
    and use it to setup my development environment.
    Demo, support, contact. Questions?

  3. #3
    Zero Point Zero Siebird's Avatar
    Join Date
    Feb 2007
    Location
    York, PA
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by alex.w747 View Post
    Never heard of it. How do you print the content from this XML file?
    It's pulled through a flash application. Do I need to specify a doctype maybe? This is what I have:
    Code XML:
    <tour_content>
      <section>
        <item>
          <title>Marvin Clad Inswing Round Top French Casemaster Window</title>
          <images>
            <image>images/lg/W01  S11.jpg</image>
            <image>images/lg/W01a.jpg</image>
            <image>images/lg/W01b.jpg</image>
            <image>images/lg/W01x.jpg</image>
          </images>
          <specs>
            <spec>Exterior: Ebony Aluminum Clad with Ridgeland Casing</spec>
            <spec>Interior: Pine with Trim #1351 </spec>
            <spec>Dividers: Flat Patina Caming</spec>
            <spec>Hardware: Oil Rubbed Bronze Cremone Bolts and Handle</spec>
            <spec>Glass: Beveled Glass</spec>
            <spec>Feature: An Unobstructed View and Inswing Operation Evoke European Charm</spec>
          </specs>
        </item>
    <!-- Then repeats -->

  4. #4
    SitePoint Evangelist
    Join Date
    Aug 2007
    Posts
    566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As the / is in a text node, it should not be parsed by the xsl engine, but you could try to put it into a CDATA section
    Code:
    <image><![CDATA[images/lg/W01a.jpg]]></image>
    Otherwise, your problem may be elsewhere than in the xml transformation/parsing.

  5. #5
    Zero Point Zero Siebird's Avatar
    Join Date
    Feb 2007
    Location
    York, PA
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it to work...when I copied the data from the pdf , the character was one entity like you see here:
    Code XML:
    <spec>Construction:  Perma Panel (solid polymer that will not split, crack, rot or swell)</spec>
    Rather than 3/4.
    Code XML:
    <spec>Construction: 3/4 Perma Panel (solid polymer that will not split, crack, rot or swell)</spec>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •