This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Create text file 2


Thanx Warren!

However - when I use:

	<saxon:output file="imagefile.txt" method="text">
		<xsl:value-of select="."/>
	</saxon:output>

I cannot output text from my stylesheet - only text from
the element in my XML-file.


It works almost when I use
	<saxon:output file="imagefile.txt" method="text">
		<xsl:apply-templates select="*"/>
	</saxon:output>

but then I get:
	<FONT COLOR="#0000FF" ObjectCnt><br><FONT COLOR="#0000FF" ObjectCnt><br
rather than:
	<FONT COLOR="#0000FF"> ObjectCnt</FONT><br/>

	<FONT COLOR="#0000FF"> ObjectCnt</FONT><br/>

(I have 2 ObjectCtn)


My style stylesheet
======================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:saxon="http://icl.com/saxon"
	exclude-result-prefixes="saxon"
	extension-element-prefixes="saxon"
>
...
...
<xsl:template match="ObjectCol">
	<saxon:output file="imagefile.txt" method="text">
		<xsl:apply-templates select="*"/>
	</saxon:output>
</xsl:template>

<xsl:template match="ObjectCnt">
	<FONT COLOR="#0000FF"> ObjectCnt</FONT><br/>
</xsl:template>
...
=======================================================

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]