parser problem

Discussion in 'XML' started by adanpradan, Feb 11, 2004.

  1. adanpradan

    adanpradan Guest

    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
    xmlns:xsl="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
     
    adanpradan, Feb 11, 2004
    #1
    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. Bernd Oninger
    Replies:
    0
    Views:
    767
    Bernd Oninger
    Jun 9, 2004
  2. ZOCOR

    XML Parser VS HTML Parser

    ZOCOR, Oct 3, 2004, in forum: Java
    Replies:
    11
    Views:
    824
    Paul King
    Oct 5, 2004
  3. Bernd Oninger
    Replies:
    0
    Views:
    820
    Bernd Oninger
    Jun 9, 2004
  4. Joel Hedlund
    Replies:
    2
    Views:
    513
    Joel Hedlund
    Nov 11, 2006
  5. Joel Hedlund
    Replies:
    0
    Views:
    310
    Joel Hedlund
    Nov 11, 2006
Loading...

Share This Page