Subject: Re: [xsl] Is there a way to avoid Empty Values? From: George Cristian Bina <george@xxxxxxxxxxxxx> Date: Wed, 11 Apr 2007 09:51:52 +0300 |
Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Hi,
I have a translator which just copies the values of nodes and subnodes
of a selected tree.
<xsl:template match="*"> <xsl:element name="{name()}" namespace="{namespace-uri()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:element> </xsl:template>
Input ----------------- <Name>X</Name> <Age></Age>
Output ------------------ <Name>X</Name> <Age/>
Is there a way to preserve the empty values, because the output is used
by a Plain Parser Application which looks for <Age> and </Age> for
looking value of Age. This legacy application is not open for editing.
regards Binu Kuttikkattu Idicula
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Is there a way to avoid E, Mukul Gandhi | Thread | Re: [xsl] Is there a way to avoid E, Colin Adams |
Re: [xsl] Is there a way to avoid E, Mukul Gandhi | Date | RE: [xsl] Selecting content via att, Michael Kay |
Month |