[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Filtering new tags
Subject: Re: Filtering new tags
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Fri, 25 Jan 2008 11:07:29 -0000
|
--------------------------------------------------
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Sent: Friday, January 25, 2008 10:47 AM
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Filtering new tags
I am not sure, that your C# program is using MSXML. It seems to be
using .NET classes.
If your stylesheet is not producing the output I suggested, it could
be a bug with the implementation.
I suggest, you can discuss this problem in Microsoft XSL forum. Or,
perhaps, somebody else on this list could help you.
On 1/25/08, buddhi <buddhi@xxxxxxxxxxxxxxxxxxx> wrote:
Yea that is exactly what I need but it is not working for me...
This is the way that I have used it...
XslTransform myXslTransform;
XPathDocument myXPathDocument = new XPathDocument ("C:\New.xml");
myXslTransform = new XslTransform();
myXslTransform.Load( sApplicationPath + @"\style.xsl" );
XmlTextWriter writer = new XmlTextWriter(sApplicationPath +
@"\NewTags.xml", System.Text.Encoding.UTF8);
writer.Formatting = Formatting.Indented;
myXslTransform.Transform(myXPathDocument,null, writer, null);
writer.Flush();
writer.Close();
Above is using C# with msxml
- Buddhi -
--
Regards,
Mukul Gandhi
Sorry, my fault.
You also need to pass a new XmlUrlResolver to the transform method as you
are using the document function.
myXslTransform.Transform(myXPathDocument, null, writer, new
XmlUrlResolver());
Joe
http://joe.fawcett.name
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|