Thank you for the reply Bjoern Hoehrmann
I am using following VB.NET code for transformation. Please tell me
where I can set flag for not to resolve externals.
Sub Main(ByVal args() As String)
Dim xmlInputFile As String = args(0)
Dim xslInputFile As String = args(1)
Const xmlOutputFile As String = "output.xml"
Dim xPathDoc As New XPathDocument(xmlInputFile)
Dim transform As New XslCompiledTransform()
Dim results As Stream = Nothing
Try
results = File.Create(xmlOutputFile)
Dim argsList As New XsltArgumentList()
Dim dateAndTime As New MyDateTime()
argsList.AddExtensionObject("urn:MyDateTime", dateAndTime)
transform.Load(xslInputFile)
transform.Transform(xPathDoc, argsList, results)
Catch ex As Exception
results.Flush()
Console.WriteLine(ex)
Finally
results.Close()
End Try
End Sub
On Mar 27, 4:45 am, Bjoern Hoehrmann <bjo...@hoehrmann.dewrote:
* mahesh.nimbal...@gmail.com wrote in microsoft.public.dotnet.xml:
When I transform XML, XSLT automatically adds extra attributes to the
node which are declared in DTD (default DTD attributes) . I just want
XSLT not to add these extra default attributes from DTD.
Then you have to remove the document type declaration or otherwise
instruct your transformation engine and/or parser to not read the
external subset. There is no way to achieve this using only XSLT.
--
Björn Höhrmann · mailto:bjo...@hoehrmann.de ·http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·http://www.websitedev.de/