[xsl] Re: xsl-list Digest 20 Jun 2005 05:10:00 -0000 Issue 453

Subject: [xsl] Re: xsl-list Digest 20 Jun 2005 05:10:00 -0000 Issue 453
From: Van Henreich Rontal <vanhenreich@xxxxxxxxx>
Date: Mon, 20 Jun 2005 08:26:01 -0700 (PDT)
Hi Joe,

Thanks a lot for your answers.  I tried enclosing
$varName as "<xsl:value-of select='$varName'>" as you
said and it works.  I learned a lot from your reply,
including location.search.  Now I can continue to
work.

Thanks,
Van


--- xsl-list-digest-help@xxxxxxxxxxxxxxxxxxxxxx wrote:

> xsl-list Digest 20 Jun 2005 05:10:00 -0000 Issue 453
> 
> Topics (messages 17791 through 17797):
> 
> Re: Accessing <xsl:param> from a javascript function
> 	17791 by: Joe Fawcett
> 
> Re: Finding the Undefined Elements
> 	17792 by: Mukul Gandhi
> 
> FOP for MS .NET?
> 	17793 by: James Murphy
> 	17794 by: Mukul Gandhi
> 	17795 by: David Preuss
> 	17796 by: James Murphy
> 
> Add a level of structure?
> 	17797 by: Edmund Mitchell
> 
> Administrivia:
> 
> To subscribe to the digest, e-mail:
> 	<xsl-list-digest-subscribe@xxxxxxxxxxxxxxxxxxxxxx>
> 
> To unsubscribe from the digest, e-mail:
> 
> <xsl-list-digest-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> 
> To post to the list, e-mail:
> 	<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> 
> 
>
----------------------------------------------------------------------
> Date: Sun, 19 Jun 2005 07:59:06 +0100
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
> Subject: Re: [xsl] Accessing <xsl:param> from a
> javascript function
> Message-ID:
> <BAY106-DAV94801CFA085649AB58B3DD9F60@xxxxxxx>
> 
> I missed the original question but you can't access
> $varName directly from your 
> JavaScript, you need to pass it to the function:
> <xsl:value-of
> select="myFunctions:showValue($varName)"/>
> 
> showValue(Value)
> {
>   return $varName;
> }
> 
> This assumes you are talking about JavaScript within
> the XSLT, otherwise, if you 
> mean script within a web page then this is run after
> the transformation process 
> and has no knowledge of any stylesheet variableds.
> You would just pass them by 
> using:
> 
> var varJsName = "<xsl:value-of select="$varName"/>";
> 
> If you want to pass a variable into a stylesheet as
> part of the querystring to 
> be processed client side then your script parses the
> location.search value to 
> extract the data and pass it to your client side
> scripted transform.
> 
> Joe
> 
> ----- Original Message ----- 
> From: "Van Henreich Rontal" <vanhenreich@xxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Saturday, June 18, 2005 8:46 PM
> Subject: [xsl] Accessing <xsl:param> from a
> javascript function
> 
> > Hi,
> >
> > I'm using Weblogic 8.1 and thus would assume I
> > have Apache's Xalan 2.2D11 that comes with JDK
> > 1.4.1_02 of this version of Weblogic.  I think I'm
> > using XSLT 1.0.
> >
> > From my code that does the transformation I passed
> a
> > parameter using
> transformer.setParameter("varName",
> > varValue); and access it from the xsl stylesheet
> using
> > <xsl:param name="varName"/>. In one of my
> > <xsl:template> I've included a javascript function
> > enclosed in <script
> language="javascript"></script>,
> > and in that function I wanted to access the
> parameter.
> > I couldn't do it using $varName, {$varName} or
> > '{$varName}'(if I output it using alert();).
> >
> > My ultimate goal is to pass this value in
> javascript's
> > window.location as a URL parameter value, because
> this
> > javascript funtion was called by a <a
> > href="javascript: func()"> elsewhere.  Although I
> have
> > the option of accessing the $varName as an
> argument to
> > func() and then access that argument within the
> > funtion, I think this is a two way process so I
> would
> > like a cleaner, more direct access.
> >
> > Thank you for anyone who can help.
> >
> > Van
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> > 
> 
> ------------------------------
> 
> Date: Sun, 19 Jun 2005 00:23:47 -0700 (PDT)
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
> Subject: Re: [xsl] Finding the Undefined Elements
> Message-ID:
>
<20050619072348.27660.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> 
> --- Arulxml@xxxxxxxxxxxx wrote:
> > I require the list of
> > elements that I am not addressed in my XSL. Please
> > advice.
> 
> I cannot get the meaning of the problem from this
> sentence (I guess its only me) .. Can you please
> clarify the problem more ;)
> 
> Regards,
> Mukul
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> ------------------------------
> 
> Date: Sun, 19 Jun 2005 13:55:19 +0100 (BST)
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> From: James Murphy <jamesmurphy_98@xxxxxxxxx>
> Subject: FOP for MS .NET?
> Message-ID:
> <20050619125519.74354.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
> 
> Hi,
>  
> I'm new to the community and a part-time student.  I
> am trying to do
> a project that involves generating XML files, then
> transforming the XML
> files into various formats.
> 
> The formats that I am looking to transform the XML
> into include HTML
> and PDF.
> 
> I have read that there is a Java tool (under the
> apache project)
> called, FOP that will read an FO tree and transform
> it into a print
> format document.
> 
> I am looking to develop my software using MS Visual
> Studio .NET in
> C#. 
> 
> So my questions are:
> 
> 1) Is there a version of FOP tool for .NET/C#?
> 2) Are there any other tools out there that are free
> to use (perhaps
> even in a commercial capacity) to transform XML into
> other file
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Current Thread