|
|
xml: tests 109 dom create/show 110 xpath selectSingle 111 xdoc.create from tainted & 112 xdoc.create/output with russian attr value 113 xpath selectString/Number 114 dom attributes.count 115 xpath selectBool 116 output media-type change 117 transform by dom stylesheet 118 empty transform result 119 dom setAttribute 120 nbsp letter output =END OF PREPARED XML TESTS=
$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}