Toon posts:

[xsl] andere stylesheets includen

Pagina: 1
Acties:

Verwijderd

Topicstarter
jaja, alweer een xml/xsl gerelateerd topic; Het zijn mooie tijden voor mbravenboer ;)

vraagje over het importeren van stylesheets in een stylesheets

Is het mogelijk om 1 stylesheet te hebben waar je
code:
1
2
3
4
5
6
7
8
  <xsl:output method="html" 
              encoding="utf-8"
              omit-xml-declaration="yes"
              media-type = "text/html"
          version="1.0"
          doctype-system="http://www.w3.org/TR/html4/strict.dtd" 
          doctype-public="-//W3C//DTD HTML 4.01//EN"
          indent="yes"/>

declaratie staat? zodat je die in al je andere stylesheets kan importeren?

Verwijderd

Topicstarter
ik heb het al :)

oplossing: maak een stylesheet waarin die declaratie staat. Zodra je die importeert in een andere stylesheet erft die automatisch de xsl:output declaratie over...

msdn:
A style sheet may contain multiple <xsl:output> elements and may include style sheets that also contain <xsl:output> elements. All the <xsl:output> elements occurring in a style sheet are merged into a single effective <xsl:output> element. It is an error if there is more than one such value for an attribute. The values of attributes are defaulted after the <xsl:output> elements have been merged; different output methods may have different default values for an attribute.