473,408 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

reading parameters from URL to XSLT

Hey guys,

I have a simple XML document that I want to put on my website (no
server side programming whatsoever). This xml is rendered using a xslt
document which needs to read some parameter from the URL in order to
know which data from the XML document to show.
It would be something like:

http://www.myserver.com/mydocument.xml?myParam=ABC

I have inserted the param tag (<xsl:param name="myParam"/>), but if I
try to open from the browser it does not work. I am using both IE6 and
Firefox 1.0.

Regards,
Pablo

Jul 20 '05 #1
1 5656


Pablo Gomes Ludermir wrote:

I have a simple XML document that I want to put on my website (no
server side programming whatsoever). This xml is rendered using a xslt
document which needs to read some parameter from the URL in order to
know which data from the XML document to show.
It would be something like:

http://www.myserver.com/mydocument.xml?myParam=ABC

I have inserted the param tag (<xsl:param name="myParam"/>), but if I
try to open from the browser it does not work. I am using both IE6 and
Firefox 1.0.


You would need to put a HTML page on your server that then scripts the
transformation, when you script a transformation you can pass in parameters.
There is no way to read out the query string when the browser does the
transformation automatically.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Emil Karlen | last post by:
Using the import-tag, a template appearing in the imported file, can be extended in the importing file. I am extending a template this way and in the main-file, inside the template use...
1
by: Son KwonNam | last post by:
Hi~ I usually use JDOM for XML Processing. But, when I tried transforming XSL, I could not find the way to pass parameters to XSLT Processor. "parameters" which are defined in XSL document. (...
0
by: Wouter | last post by:
Hi, I am working on some transformations of XML data using Xslt sheets. One part in this process uses the XsltArguments class to pass on additional parameters to the xslt. My question is the...
5
by: cybernerdsx2 | last post by:
Hi, I am new to XSLT and I would like to use Java to read up the XSLT content and add in a few tags in into the template below: <xsl:template name="hwSpecs"> <!-- adding new tags into here...
0
by: Gleeman | last post by:
Howdy I have an xslt that accepts parameters. In my code I set these paramaters and pass them to the xml control to transform and display the xml according to the xslt. When I throw the form...
2
by: klaus | last post by:
Hello, I want to pass a parameter to an xslt using saxon on a windoes 2000 system. I'm using this command line in a batch file: java -jar c:\programme\saxon\saxon8.jar -v -novw -o...
5
by: vaibhav | last post by:
Hi I am writing a wrapper over the existing xalan libraries. I have to pass xsl parameters to the xslt processor at run time. These paramters are later referenced in the stylesheet .The xalan cpp...
2
by: McGowan | last post by:
Hi, Trying to display only a certain type of data depending on a variable passed through a url. For example if I had a list of CDs and I wanted to display only the ones by greenday I would pass...
2
by: Jonny B | last post by:
Hi all, I'm working on an a clientside xslt using jscript that passes a parameter to the xsl. I've got it working no problem in IE but cant get it to work in Mozilla. Can anyone help? This is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.