CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 11/6/2003 6:55:49 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 21 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
Larry R
Asp.Net User
XSL Transformation using DAAB not working11/6/2003 6:55:49 PM

0

Enviroment:
VS2003, Win XP, SQL Server 2000 SP2, .Net Framework 1.1,Data Access App Block 2.0, All current SP & Hotfixes

I am trying to retrieve XML from a Stored Procedure and transform the output using XSLT. The problem is that the XPath statemnents are not working correctly. If I load the data directly from a file into the XPathDocument, it works. Sorry for the log post, but thought it better to get it out front.

Any ideas why this would not work correctly?

Here is sample XML:
------------------------
<rows count="44">
<row id="2380"/>
<row id="2921"/>
.
.
</rows>

XSLT
------------------------------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<body>
<div> # Rows : <xsl:value-of select="count(rows/row)"/> </div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Code:
---------------------------
(simplified)
Dim SQLXML As XmlReader
Dim xml As XmlTextReader
Dim xslt As XslTransform = New XslTransform
Dim xDoc As XPathDocument
' Conn and arParams are created and valid
SQLXML = SqlHelper.ExecuteXmlReader(conn, CommandType.StoredProcedure, Query, arParams)
SQLXML.MoveToContent()

' The following does not produce a "# Rows"
xDoc = New XPathDocument(SQLXML, XmlSpace.Preserve)

'Yet this does with exact same XML, cut and paste from the above XPathDocument.OuterXML() (# Rows=44)
xDoc = New XPathDocument("dailyxml.xml")

xslt.Load("XSLTParamTest.xslt")
Dim fs As StreamWriter = File.CreateText("test.htm")
xslt.Transform(xDoc, xsltParam, fs)
-------------------------------------------
Larry R
Asp.Net User
Re: XSL Transformation using DAAB not working11/6/2003 9:59:13 PM

0

I should mention that the above Count() does work with the document using MSXML4.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
XSL Transformation using DAAB not working - ASP.NET Forums I am trying to retrieve XML from a Stored Procedure and transform the output using XSLT. The problem is that the XPath statemnents are not ...
Microsoft Application Blocks - ASP.NET Forums Enterprise Solution Patterns Using Microsoft.NET: Version 2.0 by Microsoft Corporation ... XSL Transformation using DAAB not working by Larry R. No Status ...
XSLT: Simplify Development and Maintenance of .NET Projects With a working code prototype, the code can be reworked into an XSLT ... First I need to be able to run the XSLT transformation. ..... This is, in my opinion, far simpler than using the Data Access Application Block provided by Microsoft. ... when using template languages, so the problem is not unique to XSLT. ...
CodeProject: Microsoft Enterprise Library Data Access Block [DAAB ... Jan 15, 2008 ... Thanks for your article. though refcursor is working I am not able to work with parameter. I am using oracle 10g odp.net. Kindly help me. ...
CodeProject: A Free HTML Report Generator for DataSets. Free ... May 29, 2004 ... We take XML and a pre-created XSLT and transform into HTML. ... I've not spent much time on any other validations since DataSet ... //Preparation //using microsoft's data access application block to generate a dataset. ...

Problem using db.AddInParameter - ng.asp-net-forum ... asp.net and registry... encrypting the dataconfig file outside of the configuration ui for entlib june 2005 · xsl transformation using daab not working ...
Error in The type 'Microsoft.Practices.EnterpriseLibrary.Data ... daab 3.1 to access oracle · setting connection string in code and not in web. config · xsl transformation using daab not working ...
How to solve:"The remote server returned an error: (500) Internal ... xsl transformation using daab not working · can't launch microsoft .net framework configuration tool! help! business layer/data layer ...












cmab error

xml config not loading as advertised

using return values in the new enterprise library data access block

some examples of what to store the configuration block

error in the data access application block (v1)?

enterprise library 3.0

has anyone used exception management...

can you use this with version 1.0 of the .net framework???

permissions to event log

exception block error

using enterprise library in dll

i have one problem when i use enterprise library!

big problem with huge storage procedure execute on sql server 2000 sp4

using the consoletracelistener with the enterprise library 3.1 logging block

microsoft data application block

data application block problem in enterprise libraries

exception quickstart & v1.1 framework?

where is the symmetric key held in windows, cryptography ab

how to get starting with caching appllication block?

bug in enterprise library with parameters

oracle problem with enterprise library 2.0

microsoft application block for data access in vs 2005

linq and the el dataaccess block

difference between addinparameter and sqlparameter

error when deploying to an asp (required permissions cannot be acquired)

access denied error

learning application blocks

strongly typed dataset question

user interface process application block with .net 2.0

database logging using enterprise library 3.1 in asp.net with c#

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT