|
Subject: Xalan generates empty file for simple XSL From: Adriano SA NASCIMENTO <anascimento@xxxxxxxxx> Date: Wed, 23 Aug 2000 18:44:18 +0200 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Selecting unique value of an at, Oliver Becker | Thread | Re: Xalan generates empty file for , Paul_Dick |
| Re: Selecting unique value of an at, Oliver Becker | Date | Re: WYSIWYG XSL Editors, Jim Dorey |
| Month |