Ответ
Shaman 21.11.2003 04:39
вот, из жизни ;)) :
$xResource[^xdoc::create{<?xml version="1.0" encoding="UTF-8" ?>
<articles>
<article id="a1">Ààà..</article>
<article id="a2">Ààá..</article>
<article id="a3">Àáá..</article>
</articles>}]
$xTemplate[^xdoc::create{<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
<xsl:param name="myparam" />
<xsl:template match="/">
<xsl:value-of select="dyn:evaluate(^$myparam)" />
</xsl:template>
</xsl:stylesheet>}]
$xResource[^xResource.transform[$xTemplate][$.myparam[//article[@id="a3"]]]]
^xResource.string[
$.method[xml]
$.indent[no]
$.encoding[UTF-8]
]
С Парсером проблем нет :)