|
|
| version 1.1, 2003/03/08 10:24:09 | version 1.1.2.1, 2003/03/08 10:24:09 |
|---|---|
| Line 0 | Line 1 |
| $xdoc[^xdoc::create{^process{<?xml version="1.0" encoding="windows-1251"?> | |
| <people> | |
| <man id="1" имя="word слово"> | |
| <name>1 2</name> | |
| </man> | |
| </people> | |
| }}] | |
| $sheet[^xdoc::create{<?xml version="1.0"?> | |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |
| > | |
| <xsl:param name="param1">defparam1</xsl:param> | |
| <xsl:param name="param2">defparam2</xsl:param> | |
| <xsl:template match="doc"> | |
| param1=<xsl:value-of select="^$param1"/><br/> | |
| param2=<xsl:value-of select="^$param2"/><br/> | |
| test return <something background=""/> | |
| </xsl:template> | |
| <xsl:template name="test"> | |
| test return3 | |
| </xsl:template> | |
| <xsl:template match="people"> | |
| <html> | |
| <head> | |
| <link type='text/xml' rel='alternate' href='/Default.vsdisco'/> | |
| </head> | |
| para1=<xsl:copy-of select="^$param1"/><br/> | |
| para2=<xsl:copy-of select="^$param2"/><br/> | |
| <xsl:apply-templates/> | |
| <hr/> | |
| <xsl:call-template name="test"/> | |
| </html> | |
| </xsl:template> | |
| <xsl:template match="name"> | |
| <b><xsl:value-of select="."/></b> | |
| </xsl:template> | |
| </xsl:stylesheet> | |
| }] | |
| $xdoc[^xdoc.transform[$sheet;$.param2[значение param2]]] | |
| $string[^xdoc.string[$.method[html]]] | |
| #^string.save[a] | |
| ^untaint[html]{$string} |