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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML file to XHTML file using XSLT

Status
Not open for further replies.

gohankid77

Technical User
Jun 28, 2004
65
US
Help! I was wondering if there is a way to create an actual XHTML file from an XML file using XSLT. If anybody knows, please post.

"Thank yous" in advance.

"Ships that pass in the night and speak each other in passing;
Only a signal shown and a distant voice in the darkness;
So on the ocean of life we pass and speak one another,
Only a look and a voice; then darkness again and a silence."
- Henry Wadsworth Longfellow
 
Yes, this is what XSLT does. I recommend consulting a basic tutorial on XSLT, eg the one at
A basic example of XSLT usage is:

Code:
<xsl:template match="nameofyourxmlelement">
  <xhtmlelementsyouwant>
    <xsl:apply-templates />
  </xhtmlelementsyouwant>
</xsl:template>

-Rob
 
Thanks. I was thinking that was it, but I wondered if I could output the .xml file to a hard-copy .html file.

You were a big help! Thanks! :)

"Ships that pass in the night and speak each other in passing;
Only a signal shown and a distant voice in the darkness;
So on the ocean of life we pass and speak one another,
Only a look and a voice; then darkness again and a silence."
- Henry Wadsworth Longfellow
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top