|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: double parsing
You can use the & entity in a text element with the
disable-output-escaping attribute on.
<xsl:text disable-output-escaping="Yes">&#10;</xsl:text>
This isn't always consider perfect XML, because of the
disable-output-escaping, but it does produce what you want in the output.
Steve
-----Original Message-----
From: minikittygo@xxxxxxxxxxx [mailto:minikittygo@xxxxxxxxxxx]
Sent: Thursday, September 05, 2002 11:37 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: double parsing
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 for line break
i.e.
<Cell><Data>text text2,</Data></Cell>
however, when i add 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> </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 text2 </Data></Cell>
puting such entity into a CDATA node is simply not an option as it
transform it into &#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 相簿提供您最簡單的方式分享並列印您的相片,請移至:
http://photos.msn.com.hk/support/worldwide.aspx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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
|

Cart








