what's the meaning of <step> in xsl:variable?

ParkerMego

New Member
I have no idea about "step" in "xsl:variable" . I would appreciate if any one can explain "step".The following xlst just include 2 elements in root element."xsl:output" define the output format;"xsl:variable" define the variable ;How this code be parsed? what does this code stand for?\[code\]<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/" version="2.0" extension-element-prefixes="saxon"> <xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" indent="no"/> <!-- <xsl:output method="xml" omit-xml-declaration="no" encoding="utf-8" indent="no"/> --> <xsl:variable name="processes"> <!-- exclude elements with @specific-use='print-only' --> <step>prep/jpub3-webfilter.xsl</step> <!-- format citations in NLM/PMC format --> <step>citations-prep/jpub3-PMCcit.xsl</step> <!-- convert into HTML for display --> <step>main/jpub3-html.xsl</step> </xsl:variable> <xsl:include href="http://stackoverflow.com/questions/10730003/main/shell-utility.xsl"/></xsl:stylesheet>\[/code\]Supplement "shell-utility.xsl"\[code\]<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/" version="2.0" extension-element-prefixes="saxon"> <!-- This stylesheet does not stand alone! It is a component to be called into XSLT 2.0 shell stylesheets. --> <xsl:variable name="document" select="/" saxon:assignable="yes"/> <xsl:param name="runtime-params"> <base-dir> <xsl:value-of select="replace(base-uri(/), '/[^/]+$','')"/> </base-dir> </xsl:param> <xsl:template match="/"> <xsl:for-each select="$processes/step/concat('../',.)"> <xsl:message> <xsl:text>
... Applying </xsl:text> <xsl:value-of select="."/> </xsl:message> <saxon:assign name="document" select="saxon:transform( saxon:compile-stylesheet(doc(.)), $document, $runtime-params/* )"/> <!-- A third argument to saxon:transform could specify runtime parameters for any (or all) steps --> </xsl:for-each> <xsl:sequence select="$document"/> <xsl:message>
... Done</xsl:message> </xsl:template></xsl:stylesheet>\[/code\]
 
Back
Top