5.2.4.

Aus Hugo Doku

Wechseln zu: Navigation, Suche

Description:

The sub-tag <xslt> calls the xslt processor (which is set in the Java path, normally this is Xalan) with the given script.

Attributes:

Name Description Required Default Value
script The name of the script to be called yes


Example 5.6. Filter using <xslt>

The following model.filter file in combination with model1.xslt is typical for a fiter directory of a small HuGo project, as the <jxgp> step requires a certain format. filter/model.filter:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<filter  file=".*\.model"  >
        <xslt script="model1.xsl"/>  
        <jxgp/>  
</filter>

filter/model1.xsl :

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="xml" indent="yes" encoding="ISO-8859-1"/>
        <xsl:template match="/">
                         <xg:frame package="java_frames" xmlns:xg="http//:www.x-gp.de/jxgp/2004/V01">
                                     <xsl:copy-of select="model/*"/>
                         </xg:frame>
        </xsl:template>
</xsl:stylesheet>


Next: 6. Comments
Persönliche Werkzeuge