|
Subject: [xsl] Same code different output with MSXML3 and Xalan From: "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx> Date: Fri, 26 Apr 2002 15:10:43 -0500 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] seclecting child nodes ba, Najmi, Jamal | Thread | Re: [xsl] Same code different outpu, Joerg Heinicke |
| RE: [xsl] xsl:sort having no effect, Sal Mangano | Date | RE: [xsl] Match pattern should get , Doug Zirbel |
| Month |