473,625 Members | 2,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL:param data-types

Xsl stylesheet can accept parameters, but can you also give
an array-data-type parameter??

With xsl parameters i mean these:
Well i solved my problem but these

<xsl:param name="param1"/>
For example can param 1 be an array data type? and if so, how do you manage that?
Jul 20 '05 #1
1 2175
Tjerk Wolterink wrote:
Xsl stylesheet can accept parameters, but can you also give
an array-data-type parameter??

With xsl parameters i mean these:
Well i solved my problem but these

<xsl:param name="param1"/>
For example can param 1 be an array data type? and if so, how do you
manage that?


I ask this question because i'm facing the following problem:

I have an xsl stylesheet that should include different other xml documents with:

<xsl:variable name="doc1" select="documen t(concat($docum ent_root, '/doc.xml'))"/>

But this inclusion is dependent on a xsl parameter.

So if the xsl parameter is true for some expression then the document doc.xml should be included.
Jul 20 '05 #2

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

Similar topics

5
8615
by: ipg | last post by:
I am running into issues passing a parameter (that is a XML string) into a stylesheet and using msxsl:node-set to parse the string. Can someone please explain why. my html: var xsl = new ActiveXObject("MSXML2.FreeThreadedDomDocument.3.0"); xsl.async = false; xsl.load("campaignHtml.xsl"); var template = new ActiveXObject("MSXML2.XSLTemplate"); template.stylesheet = xsl;
3
11046
by: Karsten Weinert | last post by:
Hi! Can you please explain to me the difference between a xsl:param and a xsl:variable? Since I can assign a value to both only once, what's the point? A small example would help me a lot. Regards, Karsten. -- The email above is not in use. Please write to k dot weinert at gmx dot net.
2
1709
by: Raghavendra RAV | last post by:
Hi, Is it possible to pass mutiple values to xsl parameters ? Please guide me.. if any other alternative ways to achieve this, please inform.. Thanks, Raghu CSS India
1
5459
by: kurt hansen | last post by:
hi I thought that this would be easy, but maybe not so much. I want to: pass an xpath expression and a string value to a stylesheet and copy the source xml document, changing the value of the node described by the xpath expression, to the new value.
0
1293
by: kirashet | last post by:
Hello everybody, I tried to make a XSL:FO - Sheet where I can control if the PDF should be printed in portrait or landscape. My results so far: <xsl:param name="printingtype" select="'landscape'"> <xsl:variable name="pageheight"> <xsl:choose> <xsl:when
0
1110
by: Andrew M | last post by:
I have another newbie xml/.net question. All apologies. I'm trying to get an aspx file to modify an XSLT file based on a querystring. ie. recipe.aspx?recipe=3 will add this line to the XSLT file: <xsl:param name="recipe" select="3" /> I'm getting this error message pointing to 'xslArg.AddParam...' when I execute the .aspx file: Compiler Error Message: BC30188: Declaration expected.
2
1881
by: junkblog747 | last post by:
What will the expression "/.." in the attribute select="/.." return? I just inherited a huge stylesheet to maintain which has a lot of parameters such as <xsl:param name="myParam" select="/.."/>. And then there is a lot of conditional processing based on this parameter. I stepped thru the code with a debugger in Oxygen and saw that the param is always empty (0 nodes selected). I am trying to figure what the original author of the...
0
1793
by: SamStamport | last post by:
Hello, I have coded a C# program that passes an argument list to my XSLT file. I get no errors, but I don't get any output either. Here's what I want to do: pass a parameter that is an XPath epression to be processed by XSLT. Here's my XSLT: <xsl:template match="/"> <xsl:param name = "pmtr"/>
1
3247
by: V4mp1r3 | last post by:
Hi ! I'm making a XSL that returns distinct values from a XML Element, but the element is dynamic, so i pass it from the server as a Parameter. XSL: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" />
0
999
by: mmxbass | last post by:
I have a series of localizations in the format "<1> <1<user//users>1> currently online: <2> | <3> <3<guest//guests>3> | <4> <4<bot//bots>4>". I think the functionality of the string speaks for itself. Normally, this would be parsed ahead of time by some PHP. Unfortunately, the problem is that <2> in this instance happens to emit a series of hyperlinks. When my XSL transform emits these links, the tags vanish into thin air. I thought of...
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8688
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8494
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6115
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.