10. XSL: Doing XML With Style
|
10. XSL: Styl pro XML
|
The highlights of the Extensible Stylesheet Language (XSL) initiative include:
| Z XSL (rozšiřitelné tabulky stylů) iniciativy vybíráme následující: |
Based on DSSSL After SGML became an international standard, work began on developing a stylesheet standard. The purpose of the standard was to facilitate the interchange of stylesheets and ultimately to improve the interoperability of all of the software that handles documents. This effort, formally known as the Document Style Semantics and Specification Language (DSSSL), was eventually approved as an ISO standard. To date, however, no commercial application supports DSSSL. XSL will provide much of the functionality of DSSSL, but in a form that is far more likely to be widely adopted and supported.
| Založeny na DSSSL - Poté, co se z SGML stal mezinárodní standard, začaly práce na vývoji tabulek stylů. Účelem tohoto standardu bylo usnadnění výměny tabulek stylů a vylepšení kompatibility veškerého software, který zachází s dokumenty. Toto úsilí, které se formálně nazývá Semantika stylů dokumentu a specifikační jazyk (DSSSL), nakonec vedlo k přijetí ISO standardu. Až dodnes však nevznikla jediná komerční aplikace, která by podporovala DSSSL. XSL poskytne velkou část funkcí DSSSL, ale ve formátu, u nějž je mnohem větší šance na univerzální podporu. |
Compatible with CSS Cascading Style Sheets (CSS) are supported by both Microsoft and Netscape as a mechanism for overriding the default style of HTML tags. As a result, CSS offers more formatting flexibility than HTML without a stylesheet. XSL will be a superset of the CSS functionality. XSL will be designed to enable automatic conversion from CSS, so existing investments in CSS will not be lost.
| Kompatabilní s CSS - Tabulky kaskádových stylů (CSS) jsou podporovány společnostmi Microsoft a Netscape, neboť poskytují mechanism pro změnu přednastavených parametrů HTML tagů. Výsledkem je, že CSS poskytuje HTML větší formátovací volnost. XSL bude nadmnožinou funkcí CSS. XSL bude umožňovat automatickou konverzi z CSS, takže existující investice do CSS nebudou ztraceny. |
Reordering capability Through XSL stylesheets, a Web browser will be able to change the sequence of the data that is displayed without going back to the server. This will be useful for any application that needs to support the interactive suppression or enabling of data display, as well as any arbitrary sequence.
| Možnost měnit pořadí - s pomocí tabulek XSL bude možné v prohlížeči změnit pořadí, ve kterém se zobrazují data bez toho, aby se musel zapojit server. To bude užitečné v aplikacích, které umožňují interaktivní potlačení nebo naopak povolení zobrazení dat. |
More powerful context sensitivity While CSS supports the application of style based on the parent of an element, XSL allows the style to vary based on all the ancestors, descendants, and siblings of an element. This will provide far more formatting flexibility based on the context or position of an element within a document.
| Větší zohlednění kontextu - Zatímco v CSS je možné aplikovat různý styl podle rodiče prvku, v XSL je možná mnohem podrobnější specifikace. Tím bude formátování mnohem flexibilnější. |
Supports both printing and online display While CSS is limited to online display functions, XSL will support formatting functions that are needed in order to support the greater complexity of printed documents.
| Podpora formátování on-line i při tisku - zatímco CSS je omezeno na on-line zobrazení, XSL bude podporovat formátovací funkce, které jsou potřebné při formátování složitějších tištěných dokumentů. |