Its a namespace issue.

Original:
<?xml version = "1.0" encoding = "us-ascii"?>
<?xml-stylesheet type="text/xsl" href="NYOrder.xsl"?>
<Order xmlns = "http://dov.org/d"; 
  xmlns:jxdd="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0";
  >
  <jxdd:DocumentDescriptiveMetadata>
    <jxdd:DocumentID>temp_order_2167</jxdd:DocumentID>
  </jxdd:DocumentDescriptiveMetadata>
</Order>

MODIFIED XSLT stylesheet:

<?xml version = "1.0" encoding = "us-ascii"?>
<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
  xmlns:jxdd="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0";
  xmlns:dov="http://dov.org/d";
  >
  <xsl:template match="/">
    <html>
      <head>
        <title>Order</title>
      </head>
      <body>
        <xsl:value-of
          select="dov:Order/jxdd:DocumentDescriptiveMetadata/jxdd:DocumentID"/>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

Result (with xalan.sh):

<html xmlns:dov="http://dov.org/d"; 
xmlns:jxdd="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0";>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Order</title>
</head>
<body>temp_order_2167</body>
</html>

The order tag is not in the proper namespace and needs to be qualified
with the "dov" namespace prefix.

Elizabeth

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to