473,387 Members | 1,891 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,387 software developers and data experts.

Can you add write XML into an XSL sheet that it can use?

Hello again,

Sorry for yet another question so early but this XSLT stuff is pretty
hard to get a grips on.

Ok, the question is: if im transforming some XML using an XSL
stylesheet, will i be able to reference XML written into the XSL which
is calling it (for constant values) ie.

<!--Xslsheet.xsl -->
<bob key="jim">hello</bob>

<xml:value-of select="bob"or <xml:value-of select="/bob"or
<xml:value-of select="/bob[@key='jim']">
<!--Xslsheet.xsl -->

Will "hello" be printed in the output?

I know its a small question but its very hard to find if this is true
(when im trying it now, getting no errors but its not printing out
"hello").

Thanks for your help on this (and on my last question!)

Graeme

Nov 13 '07 #1
2 1793
Thanks Pavel,

That just made it click. I understand most of the code people posted
yesterday now! :)

Thanks again,

Graeme

Nov 13 '07 #2
gw********@gmail.com wrote:
Current code:

<xsl:template match="decode">
Unfortunatly my parser doesnt like calling "decode" from within the
"decode" template?

ERROR: 'file:///C:/Development/ZWebService/xsl/bp.xsl: line 129:
Template 'decode' not defined in this stylesheet.'
You need
<xsl:template name="decode">
above if you later want to use xsl:call-template name="decode".
match="decode" is only useful if you have elements named "decode" and
want to apply templates to them.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 13 '07 #3

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

Similar topics

1
by: veens-zevenhonderdvijf | last post by:
Hi, I want to show an excel-graphs in one of my access-forms. The problem is how to refer to an embedded excel-file in my form. I can refer to an external excelfile (see below) an do some test...
11
by: Strix Nihildom | last post by:
The end product of this program is an application that permits pilots to perform the required weight and balance calculations prior to flight. The User should be presented with a list of aircraft...
9
by: msuk | last post by:
All, I have a well form block of XML that is stored in a C# string type and I just simply want to display it in the browser using Response.Write but when I try this I get the following error: ...
3
by: | last post by:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It works perfectly on my machine, but it fails on my customers' PCs that have identical versions of Win XP (SP1) and Excel...
3
by: smith jones | last post by:
Hi all, Can you plz guide me as to how to write data to an excel sheet using C+ + code? Thnks very much for your help!!!
7
by: mcdermottmb | last post by:
Is it possible to open a multi-sheet Excel template which resides on the webserver, populate it with data from a MySql query then save the spreadsheet to another folder and name on the webserver? ...
2
by: deve8ore | last post by:
Hello, I receive a workbook via 3rd party containing graphs within each sheet. The workbook may contain a different number of sheets per file. I would like to write a macro to go through each...
1
by: vtangella | last post by:
Hi Guys! Here i am using Apache POI for reading the Excel sheet in java and then i am capturing the excel sheet data into a ArrayList and then i am storing it in DB. Any Other way to store...
8
blazedaces
by: blazedaces | last post by:
So I have a program below which writes an excel file with multiple sheets based on inputs of sheet names, data, cell types, etc. It uses Apache POI, which is currently the only thing I found...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.