Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including XSL #4

Closed
akiva opened this issue Jan 17, 2011 · 6 comments
Closed

Including XSL #4

akiva opened this issue Jan 17, 2011 · 6 comments

Comments

@akiva
Copy link

akiva commented Jan 17, 2011

It would be great if we could include an XSL file to enhance our sitemaps, should a human want to view it, a la http://www.zeldman.com/sitemap.xml

@ThePixelDeveloper
Copy link
Owner

I'm having trouble with this, does someone know how to apply an XSL?

c8c4af8

@akiva
Copy link
Author

akiva commented Jan 25, 2011

You simply declare the link to the XSL stylesheet a la:

<?xml-stylesheet type="text/xsl" href="http://your.site.here/sitemap.xsl"?>

What you will need to do is check first to see if the user supplies a string to a valid/existing XSL file and that is all. The rest should be up to them, as actually creating the stylesheet should be beyond the scope of your plugin, IMO.

@akiva
Copy link
Author

akiva commented Jan 25, 2011

I think I just closed the ticket? Sorry, if so, please re-open. :S

@ThePixelDeveloper
Copy link
Owner

Hmm, let me re-open it.

The code I have uploaded only checks to see if any have been added and imports them. I assume the XSLTProcessor does its own validations. Since I have never used XSL I am unsure of it's usage. If you could perhaps test it out then that'd be great.

@akiva
Copy link
Author

akiva commented Jun 21, 2017

2011 lol

@akiva akiva closed this as completed Jun 21, 2017
@ThePixelDeveloper
Copy link
Owner

😱 Kohana is going offline this year, so probably not a good idea to maintain this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants