Sie sind hier: TYPO3-Extensions / FAQ-Extension

Modern FAQ

Modern FAQ

Extension key( irfaq )

Modern FAQ dynamic view

Alle anzeigen/Alle verbergen

Antwort auf/zuklappen What are extensions?
Antwort auf/zuklappen What is TYPO3?
Antwort auf/zuklappen What is XSLT
Antwort auf/zuklappen What is means XSL?
Antwort auf/zuklappen An XSL style sheet consists of one or more set of rules that are called templates.

Modern FAQ static view

What are extensions?

Extensions are the cornerstone in the internal architecture of TYPO3. In order to understand the importance and the endless perspectives of this concept lets take a quick look at past.

The illustration below shows how TYPO3 fits into a structure with PHP, MySQL, Apache, the website and backend administration around it. In the versions before 3.5 this illustration applied to the internal structure of TYPO3; Basically everything melted together, overlapped, depended on each other. It was not necessarily a mess - just very hard for everyone but the most experienced to clearly identify the relationship between things.

 

 

 

But all of that changed with TYPO3 3.5 which was released in the first beta version just a few weeks after 3.3. The single most important feature of 3.5 was the emergence of the Extension Manager which is an internal control center managing the new radical structure of basically the same good old parts - now just put into "boxes".

In other words; The big gray "blob" of everything was aligned into 1) one core and 2) many extensions:

What is TYPO3?

TYPO3 is a free Open Source content management system for enterprise purposes on the web and in intranets. It offers full flexibility and extendability while featuring an accomplished set of ready-made interfaces, functions and modules.

What is XSLT

This specification defines the syntax and semantics of XSLT, which is a language for transforming XML documents into other XML documents.

XSLT is designed for use as part of XSL, which is a stylesheet language for XML. In addition to XSLT, XSL includes an XML vocabulary for specifying formatting. XSL specifies the styling of an XML document by using XSLT to describe how the document is transformed into another XML document that uses the formatting vocabulary.

XSLT is also designed to be used independently of XSL. However, XSLT is not intended as a completely general-purpose XML transformation language. Rather it is designed primarily for the kinds of transformations that are needed when XSLT is used as part of XSL.

What is means XSL?

XSL stands for EXtensible Stylesheet Language.

An XSL style sheet consists of one or more set of rules that are called templates.

The <xsl:template> Element

The <xsl:template> element is used to build templates.

The match attribute is used to associate a template with an XML element. The match attribute can also be used to define a template for the entire XML document. The value of the match attribute is an XPath expression (i.e. match="/" defines the whole document).

Ok, let's look at a simplified version of the XSL file from the previous chapter:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Title</th>
<th>Artist</th>
</tr>
<tr>
<td>.</td>
<td>.</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Since an XSL style sheet is an XML document itself, it always begins with the XML declaration: <?xml version="1.0" encoding="ISO-8859-1"?>.