OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Simple XSLT Problem

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: Simple XSLT Problem
  • From: Mike Beattie <mike.beattie@gmail.com>
  • Date: Thu, 14 Jul 2005 09:03:05 -0400
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tLTKGl4/TuMtFBt5xco35DH/bTpbQUbgyYy0nrFOYJgL0TsLwbZcQcB6YgptUxyCSQ3sQd3SZR2qAneJtZ/2yNa1C9ZIIabafr0eCzcuah7h1RAsAxhVzqfhbvus2I6HJmSYms44swz56gL2W3ebet0lFoMhrrjLMObHkDOh/cA=
  • Reply-to: Mike Beattie <mike.beattie@gmail.com>

I just tried my hand at using XSLT to extract some information from an
XML file that I have been given, and I am running into a (potentially
stupid) problem. I continue to simplify my XSLT query hoping to get to
a point where I see some expected output, and I am still having
difficulties with the files listed below. I am using the latest stable
version of Xalan (1.9.0) on a Linux box.

The problem is that when I apply Xalan to the files below, I get N
blank lines of output, where N is the number of lines in the original
XML file. I would be less confused if N was the number of presentation
elements in my file...but that's not even the case.

I've been banging my head against this one for a little while, and I'm
sure there are people on this list who have a quick answer. Thanks in
advance for any assistance.

--Mike Beattie

.......... XSLT File .................................
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version="1.0">

  <xsl:output method="text"/>

  <xsl:template match="presentation">
    <text>Hello World!&#10;</text>
  </xsl:template>

</xsl:stylesheet>

.......... XML File ..................................
<?xml version="1.0" encoding="UTF-8"?>
<biometric-signature-set
    name="FRGC - All Signatures - Atomic and Derived"
    xmlns="http://www.bee-biometrics.org/schemas/sigset/0.1";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://www.bee-biometrics.org/schemas/sigset/0.1
       http://www.bee-biometrics.org/schemas/sigset/0.1/general.xsd";>

 <biometric-signature name="nd1S02463">
  <presentation name="nd1R16540" modality="face"
file-name="nd1/Spring2003/02463d258.jpg" file-format="jpeg"/>
 </biometric-signature>
 <biometric-signature name="nd1S02463">
  <presentation name="nd1R17900" modality="face"
file-name="nd1/Spring2003/02463d265.jpg" file-format="jpeg"/>
 </biometric-signature>
 ...continues...
</biometric-signature-set>


--------------------------------------------------------
Michael Beattie; Graduate Student
Electrical and Computer Engineering
Carnegie Mellon University
http://www.ece.cmu.edu/~mbeattie/
--------------------------------------------------------




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS