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

Re: Is there a way to avoid Empty Values?

Subject: Re: Is there a way to avoid Empty Values?
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Wed, 11 Apr 2007 11:49:11 +0530
Re:  Is there a way to avoid Empty Values?
If your legacy application treats <Age></Age> as different from
<Age/>, then it's not XML compliant. I don't see any easy solution to
this problem.

On 4/11/07, binu.idicula@xxxxxxxxx <binu.idicula@xxxxxxxxx> wrote:


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

-- Regards, Mukul Gandhi

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-2011 All Rights Reserved.