Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > parser problem

Reply
Thread Tools

parser problem

 
 
adanpradan
Guest
Posts: n/a
 
      02-11-2004

Hello,

we have created two files sample.xml and sample.xsl

The code in sample.xml


<?xml version="1.0"?>
<department>
<dept-name>
Department of Magical Implications
</dept-name>
<address>
10 Hogwarts Castle
</address>
<person type="chair">
<name>Albus Dumbledore</name>
</person>
<person type="prof">
<name>Severus Snape</name>
<interests>potions</interests>
</person>
<person type="prof">
<name>Minerva McGonagall</name>
<house>Gryffindor</house>
</person>
</department>

The code in sample.xsl
<xsl:transform
xmlnssl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:saxon="http://icl.com/saxon"
exclude-result-prefixes="saxon"
>

<xsl:template match="department">
<HTML>
<BODY>
<xsl:apply-templates select="dept-name" />

<xsl:apply-templates select="person" >
<xsl:sort select="name" order="ascending" />
</xsl:apply-templates>

</BODY>
</HTML>
</xsl:template>
<xsl:template match="dept-name">
<h1>
<xsl:value-of select="."/>
</h1>
</xsl:template><
<xsl:template match="person">

<xsl:value-of select="name"/>

</xsl:template>
<xsl:template match="person[(@type='chair')]">

<xsl:value-of select="name"/>
(Chair)

</xsl:template>
</xsl:transform>
parser used : saxon 5.5.1
Error generated on execution: Exception in thread "main
java.lang.NoClassDefFoundError: com/icl/saxon/Stylesheet. Kindly not
that we have not installed JDK 1.2 because the java executables ar
available in saxon.

Regards,
Manoj B

adanpradan
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message44018.htm

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
import parser does not import parser.py in same dir on win Joel Hedlund Python 2 11-11-2006 03:46 PM
import parser does not import parser.py in same dir on win Joel Hedlund Python 0 11-11-2006 11:34 AM
XML Parser VS HTML Parser ZOCOR Java 11 10-05-2004 01:58 PM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger Java 0 06-09-2004 01:26 AM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger XML 0 06-09-2004 01:26 AM



Advertisments