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]
Other format: [Raw text]

Same code different output with MSXML3 and Xalan


Hi,
When I use this script with MSXML3 output is in the format that I want,
but  when I use it with Xalan it's different. How can I make this script
compatible with two processors, preferably with Xalan, and why is it
that outputs are different?
Thanks for the input.

Cihan

input XML
---------------
<top>
	<Body-Text>
		<A ID="pgfId-1119548"></A>To be eligible for CE credit,
you <Bold>MUST</Bold>record your answers on the appropriate  Viewer
Response Form. 	</Body-Text>
	<stuff/>
	<TABLE/>
	<Body-Text>
		<A ID="pgfId-1119548"></A>To be eligible for CE credit,
you <Bold>MUST</Bold>record your answers on the appropriate  Viewer
Response Form. 	</Body-Text>
	<stuff/>
	<TABLE>
</top>

-------------XSLT-------------
<xsl:template match="Body-Text[contains(.,'To be eligible for CE
credit')]">
     <xsl:apply-templates />
</xsl:template>

<xsl:template match="TABLE[preceding-sibling::Body-Text[contains(.,'To
be eligible for CE credit')]]">
	<xsl:element name="module">
                  <xsl:if
test="count(preceding-sibling::Body-Text[text() =
preceding-sibling::Body-Text/text()]) = 0">
                   .....			
   	      </xsl:if>
     	     <xsl:if test="count(preceding-sibling::Body-Text[text() =
preceding-sibling::Body-Text/text()]) = 1">
         	    ......
	    </xsl:if>

	</xsl:element>
</xsl:template>

--------------------------

output with MSXML3			output with Xalan
------------------------------------
--------------------------			

<module>				<module/>
	<elements/>
</module

 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]