[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Xalan generates empty file for simple XSL
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|