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

double parsing

Subject: double parsing
From: =?big5?b?qkwgpGyq5A==?= <minikittygo@xxxxxxxxxxx>
Date: Thu, 05 Sep 2002 15:36:50 +0000
parsing excel xml
Hi,

can somebody please help me out over this, i got pretty struck over this matter:
at the moment i was trying to convert my native xml file into a excel XP compatiable xml file.


i.e. myXML -> excelXML -> display on excel

however i ran into the problem when i want to introduce a line break within one of the cell
to do so, i need to use an entity &#10; for line break
i.e. <Cell><Data>text&#10;text2,</Data></Cell>
however, when i add &#10; to my stylesheet to transfer from my native xml to the excel xml, e.g.
<xsl:for-each select="element">
<Cell><Data>
<xsl:value-of select="element2"/><xsl:text>&#10;</xsl:text>
</Data></Cell>
</xsl:value-of>


the output format of the excel xml will become
<Cell><Data>text
text2
</Data></Cell>

but what i want is
<Cell><Data>text&#10;text2&#10;</Data></Cell>

puting such entity into a CDATA node is simply not an option as it transform it into &amp;#10;

therefore i was wondering it is possible to do so, if so, please help out over it, otherwise, any feedback will be greatly appreciated.

Many thanks

Kit

p.s. if <xsl:comment> cannot contain any element nodes as its child, is there workaround to the problem? cheers




_________________________________________________________________ MSN ¬Ûï´£¨Ñ±z³Ì²³æªº¤è¦¡¤À¨É¨Ã¦C¦L±zªº¬Û¤ù¡A½Ð²¾¦Ü¡G http://photos.msn.com.hk/support/worldwide.aspx


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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