xmlspy unexpected element error

Will (archive)

Usenet Archive
Joined
Feb 29, 2000
Messages
200
Reaction score
0
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top