Questions tagged [xdv]

XDV is a way to apply a style/theme contained in a static HTML web page (usually with related CSS, JavaScript and image resources) to a dynamic website created using any server-side technology, using XSLT transformations.

XDV is an implementation of the Deliverance concept using pure XSLT. In short, it is a way to apply a style/theme contained in a static HTML web page (usually with related CSS, JavaScript and image resources) to a dynamic website created using any server-side technology.

Consider a scenario where you have a dynamic website, to which you want to apply a theme built by a web designer. The web designer is not familiar with the technology behind the dynamic website, and so has supplied a "static HTML" version of the site. This consists of an HTML file with more-or-less semantic markup, one or more style sheets, and perhaps some other resources like images or JavaScript files.

31 questions
144
votes
12 answers

Set HTML5 doctype with XSLT

How would I cleanly set the doctype of a file to HTML5 via XSLT (in this case with collective.xdv) The following, which is the best my Google foo has been able to find:
Jon Hadley
  • 5,196
  • 8
  • 41
  • 65
4
votes
1 answer

Diazo is only for plone4?

I used xdv for plone 3.x sites, Diazo for plone 4 sites. Diazo is the best for many reasons but I don't understand if it's possible to use it with a plone3.x site. Maybe I need to use Diazo only in WSGI mode... right? Thank's Vito
Vito
  • 1,201
  • 1
  • 10
  • 16
4
votes
2 answers

How un-theme all the tinymce windows using a diazo theme

I made a nice complex style theme in Diazo, but I don't want to theme all the TinyMce (popup) windows. Surely there is a clever way to make it using the rules file. Any suggestions? Thank's Vito
Vito
  • 1,201
  • 1
  • 10
  • 16
4
votes
1 answer

Is it possible to remove base and Content-Type + alter HTML attributes in Diazo?

I am trying to make a HTML5/CSS3 theme with Diazo from a Plone site, using plone.app.theming 1.0b8. It is working like a charm in the BODY part. But the HTML tag and HEAD part are more difficult. To me at least :) I have tried to: remove xmlns and…
4
votes
1 answer

Unique URLs in plone

I have an internal link to sectionA/pageA in a sidebar, when I click it from sectionB the url becomes sectionB/sectionA/post. I cannot use absolute URL because the sidebar is in an XDV static file and I use linguaplone. How can I create unique url?
martino
  • 71
  • 3
4
votes
3 answers

collective.xdv and multiple theme files

I am having different theme HTML files for different site sections. There are some major layout differences depending if the page is the front page, or a certain subsection. As far as I see the default behavior is just to have one HTML…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
4
votes
2 answers

Drop content div only in the front-page with XDV

I'm trying to remove the content div only for the homepage by this line (in the rules.xml) It doesn't work ... why? It seems ok for me :)
Vito
  • 1,201
  • 1
  • 10
  • 16
3
votes
1 answer

Adding an class to body element with XDV

I want to style some forms in Plone3+collective.xdv but I don't want all forms to get the special style. So I'd like to add a special styled-form class name to the class attribute of the body element just when displaying certain…
marcosfromero
  • 2,853
  • 17
  • 17
3
votes
1 answer

Skinning different micro-sites based on subdomain

Plone 3.3.4 Version of collective.xdv from http://good-py.appspot.com/release/collective.xdv/1.0?plone=3.3.4 Summary Looking for suggestions on how to use xdv to apply different skins to the same site, based on which URL was used in the…
fulv
  • 1,016
  • 1
  • 9
  • 18
3
votes
1 answer

What to use instead of HTTP_X_XDV in Diazo?

I'm approaching to Diazo after a light use of collective.xdv. Usually in xdv I could use a nice env variable "HTTP_X_XDV" to allow the rendering of certain css file (in portal_css via genericsetup). What I could use in Diazo? Thank's Vito
Vito
  • 1,201
  • 1
  • 10
  • 16
3
votes
2 answers

How to apply a rule to the home page in plone.app.theming diazo rules.xml

I'm trying to create a specific rule for the home page of a site. At the moment I use this rule: It works for localhost, but not with a proxy…
toutpt
  • 5,145
  • 5
  • 38
  • 45
3
votes
1 answer

How to transform block of content from plone being inserted into diazo theme

I'm using a diazo (currently plone.app.theming 1.0b1-r48205) with Plone 4.1. I want to use exactly Plone's html for the search widget except that I'd like to replace element used for the search button in the search widget with a
scarba05
  • 2,943
  • 1
  • 27
  • 29
3
votes
2 answers

Passing dynamics attributes to collective.xdv inline XSL

I have the following snippet in rules.xml
3
votes
2 answers

local-name() support in Collective.xdv

I have a Plone 3.5 site and I am trying to embedded Simple Social's FB Like action for a content in a collective.xdv theme. The FB Like function is embedded in an XML tag I am trying to select its XPATH via…
h2o
  • 513
  • 2
  • 8
3
votes
4 answers

Static css file and xdv

What is the correct method to manage css file versioning using collective.xdv? Now I use nginx to serve css directly. I tried to import them in the css_registry, but if I change a file the merged css doesn't update, I mean, its version number (eg.…
martino
  • 71
  • 3
1
2 3