problem displaying xml page

problem displaying xml page

Post by lr.. » Sat, 17 Jun 2000 04:00:00



Hi,
I am very new at this xml stuff and I am having a problem that I can't
seem to figure out.  I was given a xml and xsl page and the xml page is
calling the xsl page.  However when I view the page I just display the
xsl page not the document.  When I view the source code I can see the
document information.
I am lost I am not sure where to go from here.  I have attached most
of the style sheet and the begining of the xml page.
If any one knows what I can try I would greatly appreciate it.

STYLESHEET
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
  <?BLADERUNNER BR-version="1.5"?>
  <xsl:output method="html"/>
  <xsl:template match="/">
    <HTML>
      <HEAD>
        <TITLE>
          <xsl:text>ASAE Technical Paper</xsl:text>
        </TITLE>
        <STYLE type="text/css">
          P.hanging { margin-left: 1cm; text-indent: -1cm }
        </STYLE>
      </HEAD>
      <BODY>
        <xsl:apply-templates mode="BR-toc"/>
        <xsl:apply-templates mode="BR-lof"/>
        <xsl:apply-templates mode="BR-lot"/>
        <xsl:apply-templates mode="Show-Paper-Number"/>
        <xsl:apply-templates/>
      </BODY>
    </HTML>
  </xsl:template>

  <xsl:template match="text()" name="Hide non-TOC text" mode="BR-toc"/>
  <xsl:template match="text()" name="Hide non-LOF text" mode="BR-lof"/>
  <xsl:template match="text()" name="Hide non-LOT text" mode="BR-lot"/>
  <xsl:template match="text()" name="Hide non-Number text"
mode="Show-Paper-Number"/>

  <xsl:template match="title" priority="0.0">
    <H1 align="center">
      <xsl:apply-templates/>
    </H1>
  </xsl:template>
  <xsl:template match="p" priority="0.0">
    <P>
      <xsl:apply-templates/>
    </P>
  </xsl:template>
  <xsl:template match="author/title" priority="0.0">
    <P>
      <I>
        <xsl:apply-templates/>
      </I>
    </P>
  </xsl:template>
  <xsl:template match="degree" priority="0.0">
    <xsl:text>, </xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="name" priority="0.0">
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="orgname" priority="0.0">
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="address" priority="0.0">
    <xsl:text>, </xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="country" priority="0.0">
    <xsl:text>, </xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="confgrp" priority="0.0">
    <P>
      <xsl:apply-templates/>
    </P>
  </xsl:template>
  <xsl:template match="confname" priority="0.0">
    <B>
      <xsl:apply-templates/>
    </B>
  </xsl:template>

XML PAGE
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="tp-web-new.xsl"?>

<?BLADERUNNER class="Authoring" doctype="tp" format="XML -
BladeRunner"?>
<!DOCTYPE tp PUBLIC "-//ASAE//DTD Technical Paper 1.0//EN" "tp3.dtd">

<tp><front><title>An ASAE Meeting Presentation</title>
<abstract><p><emph>Abstract:  </emph

Quote:>Soil maps derived from random or grid-based sampling schemes are often

an important part of precision crop management.  Sampling and soil
analysis to derive such maps require a large investment of both time
and money. Aerial photos have been used as a soil mapping aid for
years.  Studies have shown such an approach can be useful for defining
management units in precision farming, but these studies are often
limited to a single field, not an entire farming operation. In this
study multispectral airborne (green, red, near infrared, and thermal)
and satellite (SPOT and Landsat TM) data are used to derive soil maps
for a 770 ha research and demonstration farm in Maricopa, Arizona.
These maps are compared to soil textural analysis results from samples
in the top 30-cm of the soil profile at an approximate grid spacing of
120 m. Classification procedures were also used with vegetation present
over the same area later in the season.  The resulting vegetation
classes can be helpful in deciding if soil classes impact crop
development enough to warrant different management practices.  Further
analysis is being conducted to determine the potential reduction in the
number of soil samples using the image-based technique needed to
achieve a similar accuracy using statistical interpolation
methods.</p></abstract><keyword><emph bold="Yes">Keywords:  </emph

Quote:>remote sensing<sep></sep
> precision farming<sep></sep
> soil mapping</keyword

Thank you for the help
Lisa Rupp

Sent via Deja.com http://www.deja.com/
Before you buy.