xmlspy unexpected element error

Discussion in 'XML' started by will, Nov 10, 2004.

  1. will

    will Guest

    All

    I am trying to pass a simple xml file using xmlspy :

    <?xml version="1.0" standalone="no"?>

    <inventory>

    <vehicle>
    <make>Chevy</make>
    <model>Camaro</model>
    <color>Blue</color>
    <year>1968</year>
    <milage>52,000</milage>
    <price>$18,000</price>
    </vehicle>

    <vehicle>
    <make>Ford</make>
    <model>Mustang</model>
    <color>Chrome</color>
    <year>1965</year>
    <milage>12,000</milage>
    <price>$30,000</price>
    </vehicle>

    <vehicle>
    <make>Jaguar</make>
    <model>Roadster</model>
    <color>Red</color>
    <year>1967</year>
    <milage>76,000</milage>
    <price>$23,000</price>
    </vehicle>

    </inventory>

    through a equally simple xsl stylesheet:

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="2.0">
    <xsl:eek:utput method="xml" omit-xml-declaration="no" indent="yes"
    encoding = "shift_jis"/>



    <xsl:script
    language="java"
    implements-prefix="String"
    src="java:java.lang.String"
    xmlns:String="http://www.oracle.com/XSL/Transform/java/java.lang.String"/>



    <xsl:template match="/">

    <th>make</th>
    <th>model</th>
    <th>color</th>


    </xsl:template>


    <xsl:template match = "description">

    </xsl:template>



    </xsl:stylesheet>


    Why does the introduction of the xsl:script element cause an
    unexpected element error

    Any help would be appreciated...

    will
    will, Nov 10, 2004
    #1
    1. Advertising

  2. will

    Joris Gillis Guest

    Joris Gillis, Nov 10, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Conan Reidy
    Replies:
    1
    Views:
    348
    Andrew Thompson
    Feb 5, 2004
  2. Fendi Baba
    Replies:
    0
    Views:
    486
    Fendi Baba
    Oct 21, 2003
  3. Altova Announcements
    Replies:
    0
    Views:
    641
    Altova Announcements
    May 25, 2004
  4. HANM
    Replies:
    2
    Views:
    697
    Joseph Kesselman
    Jan 29, 2008
  5. KaR
    Replies:
    0
    Views:
    655
Loading...

Share This Page