V
VK
Let's say I have a rather big HTML template like
<?xml version="1.0" encoding="ISO-8859-1"?>
....
<snip>
....
<xsl:template match="/">
<html>
<!-- ...
A lot of HTML but no XSL so far
.... -->
<xsl:for-each select="repository/item">
<!--
Here finally XSL comes into play
-->
</xsl:for-each>
....
</html>
</xsl:template>
</xsl:transform>
If I understand properly, XSL will still study each line after
<xsl:template match="/"> for XSL command wasting its time. Is there a
way to start output (thus use
<xsl:template match="/">) but postpone XSL parsing until some
predefined sequence? Namely I'm thinking of some kind of Perl
equivalent of single-quote print block like
print <<'EOT'
....
EOT
<?xml version="1.0" encoding="ISO-8859-1"?>
....
<snip>
....
<xsl:template match="/">
<html>
<!-- ...
A lot of HTML but no XSL so far
.... -->
<xsl:for-each select="repository/item">
<!--
Here finally XSL comes into play
-->
</xsl:for-each>
....
</html>
</xsl:template>
</xsl:transform>
If I understand properly, XSL will still study each line after
<xsl:template match="/"> for XSL command wasting its time. Is there a
way to start output (thus use
<xsl:template match="/">) but postpone XSL parsing until some
predefined sequence? Namely I'm thinking of some kind of Perl
equivalent of single-quote print block like
print <<'EOT'
....
EOT