Skip to main content
User avatar

Are there sample XSLT sheets for transforming my guide XML?

I'd like more control over the layout and appearance of my guides.

I'd like to export to XML, transform with an XSLT sheet, and get an output similar to what Dozuki's PDF export provides. That way I can tweak the appearance.

I don't have XSLT experience however, so writing a sheet from scratch is daunting and too much of an overhead for this stage (I'm trying to prove this Dozuki method to others!).

Does Dozuki use an XSLT sheet in the background to create the PDF? Can I get a copy of that or something similar?

For Dozuki to be useful to us, we really need customizable options such as this.

Answered! View the answer I have this problem too

Is this a good question?

Score 2
Add a comment

1 Answer

Chosen Solution
User avatar

Hi Sam,

I'm glad you're excited about Dozuki! Dozuki doesn't use XML to turn your Guides into PDF's, so we don't have a default XSLT sheet to give you. We render your guide into HTML, then convert the HTML into a PDF.

As an example:

In the short term, there are two good options:

1) Use our API (http://www.dozuki.com/api/1.0/doc/) to pull your Guide data out of Dozuki and then display it wherever you want, in whatever format and styling you would prefer. In particular, you should check out our Guides endpoints (https://www.dozuki.com/api/1.0/doc/Guide...).

2) Use our Embed Widget, which is linked to from every guide: http://cl.ly/image/290s0m1S1B0L. We've open sourced the Embed Widget on Github (https://github.com/iFixit/Javascript_Emb...). You're welcome to fork the project, and modify it to have whatever styling you want.

In the medium term future, there's a much easier third option:

3) We're going to be building support for adding your own custom CSS into your PDFs. This CSS will be applied to your HTML (http://slo.dozuki.com/GuidePDF/76) before it's turned into PDF's, and so your PDFs will be rendered with whatever CSS you use.

Was this answer helpful?

Score 3
Add a comment

Add your answer

Author avatar Sam Kivi will be eternally grateful.
TRUSTe