Hi Tim,

What you seek is already implemented in
AxKit-Plugin-AddXSLParams-Request[1]. One of these days, I'll get around
to shoving it out to CPAN. See the docs for usage, if you have any
questions or comments, please feel free.

-kip

[1]
http://hampton.ws/download/files/Apache-AxKit-Plugin-AddXSLParams-Request-1.00.tar.gz

Tim Peoples wrote:
> 
> I currently have a snippet of code that parses the HTTP_USER_AGENT env
> variable and sets a short attribute on the root element of my XML document
> (this is done in Mason using Apache::Filter).
> 
> I would much rather this be done by Apache itself and have it pass a
> parameter to the toplevel stylesheet (where I can capture it with an
> <xsl:param> element).
> 
> Any pointers on how I might do something like this would be greatly
> appriciated.
> 
> Thanx,
> Tim.
> 
> --
>       __________________________________________________________________
>   \ \                                                 Timothy E. Peoples
>  \  c o l l e c t i v e                              Engineering Manager
>    \ \                                                  [EMAIL PROTECTED]
> 
>         Give a man fire and he will be warm for a day, Set a man
>           on fire and he will be warm for the rest of his life.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
print join ' ', map { ucfirst($_->getFirstChild->getData)}
XML::LibXML->new()->parse_string(join '', pack "c*", (60, 122, 62, 60,
97, 62, 106, 117, 115, 116, 60, 47, 97, 62, 60, 98, 62, 97, 110, 111,
116, 104, 101, 114, 60, 47, 98, 62, 60, 99, 62, 112, 101, 114, 108, 60,
47, 99, 62, 60, 100, 62, 88, 77, 76, 60, 47, 100, 62, 60, 101, 62, 104,
97, 99, 107, 101, 114, 60, 47, 101, 62, 60, 47, 122,
62))->findnodes('//*[name() != "z"]')->get_nodelist;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to