Friday, March 23, 2012

param into xsl in an xml template query

Is it possible to pass a parameter to the *xsl* in a template query?
- i dont mean to the sql - thats easy - i want to pass a param to the xsl.
TIA
Paul
pauly wrote:
> Is it possible to pass a parameter to the *xsl* in a template query?
> - i dont mean to the sql - thats easy - i want to pass a param to
> the xsl. TIA
> Paul
I have a sneaky feeling i've asked this before... and the answer was 'no' -
the only way of getting other information to the xsl is to get it into the
xml itself, via sql:param.
However if anyone knows a way of doing what i'm asking, i'd love to know!
Paul
|||Hi,
i make this from MSXMLDOM.
i load a XSL stylesheet into an XML DOM object and set param value with
VBScript or VB6 Etc...{use it in extended proc ?!}
an other way is loading XSL in MSXML.template DOM Object with param in url
like this
MySteelsheet.xsl?param1=toto
in the steelshet after the root node steelsheet write one param node named
param1
i dont have testing this but it is in my book "Wrox XSLT second edition"
i hope to help you.
Boss Hog
PS:excuse my english but i'm poor lonesome frenchy...lol
"pauly" <paulyateswithoutthespam@.hotmail.com> wrote in message
news:2rqj73F1cis87U1@.uni-berlin.de...
> Is it possible to pass a parameter to the *xsl* in a template query?
> - i dont mean to the sql - thats easy - i want to pass a param to the
xsl.
> TIA
> Paul
>
|||"pauly" <paulyateswithoutthespam@.hotmail.com> wrote in message
news:2rqj73F1cis87U1@.uni-berlin.de...
> Is it possible to pass a parameter to the *xsl* in a template query?
> - i dont mean to the sql - thats easy - i want to pass a param to the xsl.
Not directly. But why not just pass the values as part of the XML?
Bryant
|||hi,
of course it is possible to set param in XML file transformed by XSL.
@.+
Boss Hog
"Bryant Likes" <bryant@.suespammers.org> wrote in message
news:uRsqykNpEHA.2068@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> "pauly" <paulyateswithoutthespam@.hotmail.com> wrote in message
> news:2rqj73F1cis87U1@.uni-berlin.de...
xsl.
> Not directly. But why not just pass the values as part of the XML?
> --
> Bryant
>
sql

No comments:

Post a Comment