I'm experiencing a problem trying to supply a buffer with a chunk of XML,
and using the XML::Sablotron. I'm not entirely certain if I'm using it in
the correct manner, but here is what I'm trying to accomplish...

I'm using XML::Sablotron with the following:

case A:
    XML::Sablotron::Process(
        "arg:/template", "arg:/data", "arg:/output", ["nav", $hash{'nav'}],
        ["template", $stylesheet, "data", $data], $output,
    );

        -or-

case B:
    XML::Sablotron::Process(
        "arg:/template", "arg:/data", "arg:/output", \@mybuf,
        ["template", $stylesheet, "data", $data], $output,
    );


$hash{'nav'} contains a chunk of XML
\@mybuf is referencing %hash


>From my stylesheet, I'm using a for-each loop on "document('arg:/nav')//*"

some of the errors I have received are:
from the stylesheet - 'arg:/nav' not found
  or
too many arguments (referring to the use of Process)


granted I've used a few variations of the Process, by suppling an ARREYREF
as for the buffer, case A, case B, and to be honest, I'm lost. Does anyone
have any experience using buffers with XML::Sab, and can you best advise on
this situation?




Reply via email to