Subject:Stylus produced XSLT not transforming correctly in .Net 2.0 Author:Jason Jakob Date:15 Jan 2007 04:16 PM Originally Posted: 15 Jan 2007 04:13 PM
Hello,
I created a new XSLT stylesheet formatted nicely with the xml source data. Running in Stylus studio the html output looks correct. When I do a transform in Visual Studio C# passing in the xml source, and the xslt style sheet, the output only contains 3 of 20 values.
I use the .Net XslCompiledTransform.Transform (XmlReader, XmlWriter) method to transform the data
Incomplete .Net 2.0 Output:
Ken Test Report
2007-01-15 15:41:30
Sap return code:
Sap return msg:
Breakdowns:
Good Stylus Output:
Ken Test
Sap return code: 0
Sap return msg:
Breakdowns:
------------------------------------
State: LATE_IM
Notification#: 000010366223
CM Identified: TRUE
Results:
Name: FECOD
Value: NOAD
Name: QMNUM
Value: 000010366223
------------------------------------
State: LATE_IM
Notification#: 000010366537
CM Identified: FALSE
Results:
Name: FECOD
Value: CYCL
Name: QMNUM
Value: 000010366537
------------------------------------
State: LATE_IM
Notification#: 000010366541
CM Identified: FALSE
Results:
Name: FECOD
Value: PLAN
Name: QMNUM
Value: 000010366541
------------------------------------
State: LATE_IM
Notification#: 000010366658
CM Identified: FALSE
Results:
Name: FECOD
Value: WELD
Name: QMNUM
Value: 000010366658
------------------------------------
State: LATE_IM
Notification#: 000010366690
CM Identified: FALSE
Results:
Name: FECOD
Value: CLMP
Name: QMNUM
Value: 000010366690
See attached xml source, xslt, and stylus output html, and the visual studio output.