Showing posts with label xsl. Show all posts
Showing posts with label xsl. Show all posts

Thursday, March 29, 2012

HTML Generation from XML

Hi!
I have a XMl and a XSL file. And i am generating HTML file using the XXML
and XSL file using the following code
Dim xslt As New XslTransform
Dim mydata As New XmlDocument
mydata.Load("PrintId.xml")
xslt.Load("PrintID.xslt")
Dim writer As XmlTextWriter = New
XmlTextWriter("C:\Inetpub\wwwroot\VBPDFDemo\PrintID15.html", Nothing)
xslt.Transform(mydata, Nothing, writer, Nothing)
xslt = Nothing
mydata = Nothing
writer = Nothing
The code excutes fine, But it's taking a ot of time to generate the HTML.
and the process continues even if I closed my browser and generates the file
.
How do i solve the problem. how do i minimize the time?
Can anyone help me out
Thanks in advance
Baren

HTML Generation from XML

Hi!

I have a XMl and a XSL file. And i am generating HTML file using the XXML
and XSL file using the following code
Dim xslt As New XslTransform
Dim mydata As New XmlDocument
mydata.Load("PrintId.xml")
xslt.Load("PrintID.xslt")
Dim writer As XmlTextWriter = New
XmlTextWriter("C:\Inetpub\wwwroot\VBPDFDemo\PrintID15.html", Nothing)
xslt.Transform(mydata, Nothing, writer, Nothing)
xslt = Nothing
mydata = Nothing
writer = Nothing

The code excutes fine, But it's taking a ot of time to generate the HTML.
and the process continues even if I closed my browser and generates the file.
How do i solve the problem. how do i minimize the time?

Can anyone help me out

Thanks in advance

Baren

HTML Generation from XML

Hi!

I have a XMl and a XSL file. And i am generating HTML file using the XXML
and XSL file using the following code
Dim xslt As New XslTransform
Dim mydata As New XmlDocument
mydata.Load("PrintId.xml")
xslt.Load("PrintID.xslt")
Dim writer As XmlTextWriter = New
XmlTextWriter("C:\Inetpub\wwwroot\VBPDFDemo\PrintID15.html", Nothing)
xslt.Transform(mydata, Nothing, writer, Nothing)
xslt = Nothing
mydata = Nothing
writer = Nothing

The code excutes fine, But it's taking a ot of time to generate the HTML.
and the process continues even if I closed my browser and generates the file.

Can anyone help me out

Thanks in advance

Baren

html forms within the server generated form tag

Ok, I'm using an XSL to generate the content div of a page. I'm using
http://script.aculo.us to do some asynch posting and getting so that I don't
actually have to have the server know what I've generated. The whole idea is
that the content is organic. That part is working. Except for one strange
thing... I'm not sure if this is an ASP.net thing, or something I just don't
know about the DOM. When I add sub-forms with just plain html form tags,
the first child form I add isn't recognized as a separate form. It's
contents are 'added' to the main form. I've worked around it by putting a
dummy do nothing form on the page in front of my other generated sub forms...
but what gives here? I know it's not my markup because if I reverse the
order of the generated forms, the FIRST sub-form on the page is always
'assimilated' in the aspNetform, I've tried everything to get this not to
happen, enclosing in divs, and even just making a page with nothing but
generated forms... same results every time. The first html form on the page
is ALWAYS added to the asp.net generated form, no matter what. Am I missing
something? (I find that every time I post here, I usually am)

html forms within the server generated form tag

Ok, I'm using an XSL to generate the content div of a page. I'm using
http://script.aculo.us to do some asynch posting and getting so that I don't
actually have to have the server know what I've generated. The whole idea i
s
that the content is organic. That part is working. Except for one strange
thing... I'm not sure if this is an ASP.net thing, or something I just don't
know about the DOM. When I add sub-forms with just plain html form tags,
the first child form I add isn't recognized as a separate form. It's
contents are 'added' to the main form. I've worked around it by putting a
dummy do nothing form on the page in front of my other generated sub forms..
.
but what gives here? I know it's not my markup because if I reverse the
order of the generated forms, the FIRST sub-form on the page is always
'assimilated' in the aspNetform, I've tried everything to get this not to
happen, enclosing in divs, and even just making a page with nothing but
generated forms... same results every time. The first html form on the page
is ALWAYS added to the asp.net generated form, no matter what. Am I missing
something? (I find that every time I post here, I usually am)