|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: MSXML 3.0 XSLT. Does it work?
Hi everyone,
here is an example of my XML code and style sheet and the results in
produces using MSXML 3.0.
The stylesheet is:
<xsl:stylesheet version="1.0" xmlns:xsl
="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="SearchSet">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="SearchResults">
<xsl:text disable-output-escaping="no"><MIFFile
5.0></xsl:text>
<xsl:for-each select="RowSet">
<xsl:text disable-output-escaping="no"><MIFFile
4.0></xsl:text>
<xsl:apply-templates/>
</xsl:for-each>
</xsl:template>
<xsl:template match="ItemRecord">
<xsl:text disable-output-escaping="no"><MIFFile
3.0></xsl:text>
</xsl:template>
</xsl:stylesheet>
The XML Code is:
<?xml-stylesheet type="text/xsl" href="testss.xsl"?>
<SearchSet xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt
="urn:schemas-microsoft-com:datatypes" xmlns:plss="urn:ctl.com:plss">
<SearchResults>
<RowSet plss:linkref="PL00000990" plss:linktype="xml">
<serno dt:dt="string">PL00000990</serno>
<hitcount dt:dt="string">1</hitcount>
<ItemRecord>
<SerNo>PL00000990</SerNo>
</ItemRecord>
</RowSet>
<RowSet plss:linkref="PL00000990" plss:linktype="xml">
<serno dt:dt="string">PL00000990</serno>
<hitcount dt:dt="string">1</hitcount>
<ItemRecord>
<SerNo>PL00000978</SerNo>
</ItemRecord>
</RowSet>
</SearchResults>
</SearchSet>
and the resultant output is:
PL000009901PL00000990PL000009901PL00000978
What I would have expected is:
<MIFFile 5.0><MIFFile 4.0><MIFFile 3.0><MIFFile4.0><MIFFile 3.0>
Can anyone tell why the above is happening? I have installed MSXML 3.0 in
"replace" mode.
Kind regards
Sotiris, CTL, Cyprus
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








