The Unicode mess.
xpathscript Invocation) and also available through this package's API;
SYNOPSIS).
SYNOPSISand
compile), typically to apply the same stylesheet to several XML documents in a row.
SYNOPSIS) is the easiest way of getting the meaning of this sentence).
include_filealong with @includestack (if any) like this:
include_file). If
compiledoes that). It may be overriden in subclasses to provide different escape forms in the stylesheet dialect.
SYNOPSISshows how to use this feature to pass variables to AxKit XPathScript stylesheets, which explains this feature better than a lengthy paragraph would do.
process. Overloading this method in a subclass provides yet another method to redirect output.
TRANSFORMATION TEMPLATE.
actionof this manpage.
overloadto stylesheet compatibility between XML::XPath and XML::LibXML to Unicode considerations), and that is why our
findvalueand friends return a real Perl scalar, in violation of the XPath specification.
findnodesdoes return a list of objects in list context, and an
SEE ALSO). Of course, this means that the 8-bits- (or even, Heaven forbid, 7-bits-?)-per-character idea goes through the window this instant. Coding every character on 16 bits in memory is an option (called UTF-16), but not as simple an idea as it sounds: one would have to rewrite nearly every piece of C code for starters, and even then the Chinese aren't quite happy with "only" 65536 character code points.
binmodeis invoked from the stylesheet body, it signals that the stylesheet output should
perlunicode),
translate_nodein
findvaluein
apply_templatesfunction triggers the recursive expansion of the whole XML document when used as shown in
SYNOPSIS.
XPath scalar return values considered harmfulin
xpath_to_string.
is_utf8_tainted). Scalar XPath types are interpreted in the straightforward way, DOM nodes are stringified into conform XML, and NodeList's are stringified by concatenating the stringification of their members (in the latter case, the result obviously is not guaranteed to be valid XML).
XPath scalar return values considered harmfulin
findnodeswould, but returns a list of UTF8-encoded XML strings instead of node objects or node sets. See also
XPath scalar return values considered harmfulin
findvaluesbut concatenates the XML snippets. The result obviously is not guaranteed to be valid XML.
DO_SELF_AND_KIDS).
binmodein
apply_templateswould.
findnodesin scalar context), false otherwise.
args: <%= join ' : ', map "$_ => $args{$_}", keys %args %>
]]>