By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,699 Members | 1,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,699 IT Pros & Developers. It's quick & easy.

XslTransform with an XSL which includes another XSL

P: n/a
I am trying to transform an XML to a HTML, with one XSL (test.xsl),
which includes another XSL(include.xsl).

In the xml, there is a stylesheet: <?xml-stylesheet href="test.xsl"
type="text/xsl"?>.

The "test.xsl has" an include: <xsl:include href="include.xsl"/>

All the files are under the same directory.

When I run the following code in VB.net, the result "result2.html" is
always empty.

------------------------------------------------
Dim xslt As XslTransform = New XslTransform()
xslt.Load("C:\test.xsl")
xslt.Transform("C:\0909.xml", "c:\result2.html")
------------------------------------------------

Can anyone tell me what is wrong? Thank you.

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
lets see the xml data and the xslt file

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"qluo" <jl*****@yahoo.com> wrote in message
news:41**************@yahoo.com...
I am trying to transform an XML to a HTML, with one XSL (test.xsl),
which includes another XSL(include.xsl).

In the xml, there is a stylesheet: <?xml-stylesheet href="test.xsl"
type="text/xsl"?>.

The "test.xsl has" an include: <xsl:include href="include.xsl"/>

All the files are under the same directory.

When I run the following code in VB.net, the result "result2.html" is
always empty.

------------------------------------------------
Dim xslt As XslTransform = New XslTransform()
xslt.Load("C:\test.xsl")
xslt.Transform("C:\0909.xml", "c:\result2.html")
------------------------------------------------

Can anyone tell me what is wrong? Thank you.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.