[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xalan generates empty file for simple XSL

Subject: Xalan generates empty file for simple XSL
From: Adriano SA NASCIMENTO <anascimento@xxxxxxxxx>
Date: Wed, 23 Aug 2000 18:44:18 +0200
simple xsl files
Hello everybody,

Sorry for the novice question, but I need some help to 
solve this problem. I?m using Xerces 1.0.3 and Xalan 
0.20.0.
My Java application must transform an XML message to 
another with different tags. All tags are simple. They 
follow the model: <Tag_Name value=?something?/>.

I try to transform it, but it generates an empty file. 
I put the files below. I?d really appreciate some help. 
I think it must be something simple, but I can?t see 
it. :)

Thanks in advance,
Adriano Nascimento


Source.xml
----------

<?xml version="1.0" encoding="UTF-8"?>
<MessageRetourStatutPaiement>
    <OUT_DATE valeur="20000613"/>
    ... (others analog tags)
</MessageRetourStatutPaiement>


Target.xml
----------

<?xml version='1.0' encoding='ISO-8859-1' ?>
<PaymentStatus>
   <AnswerDate value="20000613"/>
   ... (others analog tags)
 </PaymentStatus >


Myfile.xsl
----------

<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-1" omit-xml-
declaration="no" indent="yes" />

<xsl:template match="/">
 <PaymentStatus> 
  <xsl:apply-templates/> 
 </PaymentStatus>
</xsl:template>

<xsl:template match="OUT_DATE">
 <AnswerDate value="{@valeur}"/>
</xsl:template>

... (others analog transformations)

</xsl:stylesheet>


__________________________________________________
This mail sent through 2NET : http://www.net2s.net


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.