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

RE: tag with one blank body

Subject: RE: tag with one blank body
From: "Mario Madunic" <Mario_Madunic@xxxxxxxxxxxx>
Date: Tue, 5 Jan 2010 06:41:25 -0600
RE:  tag with one blank body
Try using <xsl:text disable-output-escaping="yes">&#160;</xsl:text>. This
should work.

But I don't see why this is really necessary as you can just test for an empty
QCat if required. Also the parser is doing the correct thing in regards to
whitespace, removing it.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: Bartolomeo Nicolotti [mailto:bnicolotti@xxxxxxxxx]
Sent: Tuesday, January 05, 2010 6:36 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  tag with one blank body

Hello,

I've a very stupid problem, but I've tried two ways without finding a
solution.

I've the need to generate in the output xml this tag with exactly one
space inside the body:

<QCat> </QCat>

I've tried this in the xstl:

<QCat><!-- DataType: Alphanumeric
                             Length: 2
                             Left justified. Blank fill if not used
                             --><xsl:value-of select=' '/></QCat>

and this

<QCat><!-- DataType: Alphanumeric
                             Length: 2
                             Left justified. Blank fill if not used
                             --><xsl:text> </xsl:text></QCat>

but both give

<QCat></QCat>

Any hints?

Many thanks

Best regards
--
____________________________________________________________
Bartolomeo Nicolotti - Reparto Sviluppo - SIAP s.r.l.
Via Sant'Albano, 13 - 12049 TrinitC  (CN) Italy
Tel. (+39) 0172 652511 - Fax (+39) 0172 652519
E-mail: bnicolotti@xxxxxxxxx - URL: www.siapcn.it
Codice Fiscale, Partita IVA, Iscr. Reg. Imprese di Cuneo: 01871320048
Capitale Sociale: b, 99.000,00 i.v. - R.E.A. CN 141311
____________________________________________________________

Le informazioni contenute nella presente comunicazione e i relativi
allegati possono essere riservate e sono, comunque, destinate
esclusivamente alle persone o alla SocietC  sopraindicati. La
comunicazione, diffusione, distribuzione e/o copiatura del documento
trasmesso nonchC) qualsiasi forma di trattamento dei dati ivi contenuti
da parte di qualsiasi soggetto diverso dal destinatario C( proibita, sia
ai sensi dell'art. 616 c.p., che ai sensi del D. Lgs. n. 196/2003, ed in
ogni caso espressamente inibita. Se avete ricevuto questo messaggio per
errore, vi preghiamo di distruggerlo e di informarci immediatamente per
telefono allo 0172/652511 o inviando un messaggio all'indirizzo:
info@xxxxxxxxx
____________________________________________________________

This electronic mail transmission, including any accompanying documents
or attachments, may contain information that is confidential,
privileged, proprietary, or otherwise legally exempt from disclosure and
it's intended solely for the addressee(s).  Access to this Internet
electronic mail message by anyone else is unauthorized.  If you are not
the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it is prohibited and
may be unlawful. If you have received this electronic mail erroneously,
we ask you to to destroy it and let us know immediately by phone
at 0172/652511 or by sending an e-mail at info@xxxxxxxxx
____________________________________________________________


--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or
material transmitted with this communication) is confidential, may be
privileged and is intended only for the use of the intended recipient. If you
are not the intended recipient, any review, retransmission, circulation,
distribution, reproduction, conversion to hard copy, copying or other use of
this communication, information or material is strictly prohibited and may be
illegal. If you received this communication in error or if it is forwarded to
you without the express authorization of New Flyer, please notify us
immediately by telephone or by return email and permanently delete the
communication, information and material from any computer, disk drive,
diskette or other storage device or media. Thank you.

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.