Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie...how to create xml, xsl documents

Status
Not open for further replies.

deepabalaji

Programmer
Jul 22, 2005
3
US

Hi,
I'm fairly new to xml, xsl.I managed to write a xslt transformer.
I have a database storing xml content & xslt path for xsl files.I have a result cache & filter that will get url path call transformer and manager classes to get respective xml, xsl to transform them to html.

My question i have a website for which i need to create xml & xsl documents.
How do i do it?
Do i just use xml spy & write xml elements, attributes adding images and content as in the website. (i.e) do i create xml manually for all elements of webpage or am i missing something.


Thanks
Deepa
 
If you are interested in creating dynamic pages you can try some asp or jsp or whatever to call the xsl and trasform on the fly.

Good Luck
 
Wiszh,

Thanks for your reply. I'm using jsp to call xsl and transform.
I loaded a test.xml and test.xsl in database and got the tranformation done in a test.jsp.

However when it was a simple xml, xsl i was able to perform it.
How will i create large xml, xsl documents for something like main.jsp, homepage and other pages of a website.
Do i write xml, xsl from scratch for each page of website.

Thanks
Deepa
 
You do not have to write an enite xml for each document if they are largely static. You can simply include some piece of xml in a jsp page and have the page run the transformation.
(There is a custom tag that will do it for you.)

Otherwise you will have to write an entire xml and tranform it.

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top