|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Linking to a 6 level tag content
Khalid, you don't need to put in the whole tree, but namespace declarations,
and syntactically complete XML helps. As it is I've munged up your input:
<office:document-content office:version="1.0" xmlns:office="foo-office" xmlns:table="foo-table" xmlns:text="foo-text" > <office:body> <office:spreadsheet> <table:table > <table:table-column /> <table:table-row table:style-name="ro1"> <table:table-cell office:value-type="float" office:value="23"> <text:p>23</text:p> </table:table-cell> </table:table-row> </table:table> </office:spreadsheet> </office:body> </office:document-content> And this XSL: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="foo-office" xmlns:table="foo-table" xmlns:text="foo-text" > <xsl:output method="xml" indent="yes"/> <xsl:template match="/">
<xsl:value-of select="office:document-content/office:body
/office:spreadsheet/table:table/table:table-row/table:table-cell
/text:p"
/>
</xsl:template>
</xsl:stylesheet>Outputs: <?xml version="1.0" encoding="UTF-8"?> 23 Regards, --A From: Kahlil Johnson <jzarecta@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Linking to a 6 level tag content Date: Wed, 22 Jun 2005 23:54:35 +0300 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
|
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








