Jump to content

XML & XSLT


smerny

Recommended Posts

Hey, I'm looking into XSLT some and the tutorials I find show like: here is the xml, here is the xslt, and here is the outcome...

 

but, i don't see how the xslt is linked with the xml, how do i make the xslt document? do i save it with .xslt? how do i use it with the xml?

 

thanks for any help

The XSL sheet will parse and transform the XML document by setting up match rules.  What exactly are you having trouble with?  The actual code or setting it up?

Link to comment
https://forums.phpfreaks.com/topic/231630-xml-xslt/#findComment-1191878
Share on other sites

setting it up, like for example i just want to see if i can get this to work on my computer:

 

http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog_if

 

so i copied the contents and saved them both into the same folder... an xml and an xsl document.. but if when i open either of them with a browser, i just see the text content

Link to comment
https://forums.phpfreaks.com/topic/231630-xml-xslt/#findComment-1191883
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.