I'd like to output an HTML fragment from an XSL UDF, but the HTML tags
aren't being output (just non-html values show up in the output). As a
noob, I'm probably missing some fundamental piece of info.
For instance, the following yields simply "hello" in my HTML output:
<xsl:function name="jj:test">
<td>hello</td>
</xsl:function>
Also, it would be a bonus if someone would guide me to some good, free,
online XSLT (2) documentation.
Thanks,
Jamie 5 1393 my******@gmail. com wrote: Also, it would be a bonus if someone would guide me to some good, free, online XSLT (2) documentation.
It depends on what you are looking for in terms of depth but I think the
Saxon documentation Michael Kay provides here
<http://www.saxonica.co m/documentation/xsl-elements/intro.html>
<http://www.saxonica.co m/documentation/functions/intro.html>
<http://www.saxonica.co m/documentation/expressions/intro.html>
is rather helpful for a start.
--
Martin Honnen http://JavaScript.FAQTs.com/ my******@gmail. com wrote: I'd like to output an HTML fragment from an XSL UDF, but the HTML tags aren't being output (just non-html values show up in the output). As a noob, I'm probably missing some fundamental piece of info.
For instance, the following yields simply "hello" in my HTML output:
<xsl:function name="jj:test"> <td>hello</td> </xsl:function>
You have not shown us how you call that function, if you do e.g.
<xsl:copy-of select="jj:test ()" />
then I am sure the td element will be there in the result tree.
If you use e.g.
<xsl:value-of select="jj:test ()" />
then you get what you ask for, the string value of that td element node
the function returns.
--
Martin Honnen http://JavaScript.FAQTs.com/
Martin Honnen wrote: You have not shown us how you call that function, if you do e.g. <xsl:copy-of select="jj:test ()" /> then I am sure the td element will be there in the result tree.
I think an even better way is to use e.g.
<xsl:sequence select="jj:test ()" />
as that avoids copying the node.
--
Martin Honnen http://JavaScript.FAQTs.com/
> Also, it would be a bonus if someone would guide me to some good, free, online XSLT (2) documentation.
As others have said, it depends on what you want. There are a fair
number of articles/tutorials on XML-related topics on DeveloperWorks http://www.ibm.com/xml
The XSLT FAQ website is _VERY_ useful http://www.dpawson.co.uk/xsl/index.html
and if you're serious about this you may want to subscribe to the
mailing list it draws from, which is a bit more focused than this newsgroup: http://www.mulberrytech.com/xsl/xsl-list/
And of course the official specs are available from the W3C's website http://www.w3.org
though reading those takes a certain amount of experience.
Mike Kay's XSLT book is _not_ free, but is a pretty darned good
human-readable reference for XSLT. I used it frequently while I was
coming up to speed. my******@gmail. com wrote: I'd like to output an HTML fragment from an XSL UDF, but the HTML tags aren't being output (just non-html values show up in the output). As a noob, I'm probably missing some fundamental piece of info.
Yep. http://xml.silmaril.ie/authors/html/
///Peter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Squirrel |
last post by:
Given the following piece of code, I was looking for suggestions on how to beautify
the portion of the HTML where I jump out of php mode and back in again. The HTML does
not have any indenting in order to make the output more readable. However, by not
indenting the php code, the php code becomes slightly more difficult to read. Is there
a way to have both the php and HTML codes indent correctly?
Thanks.
<?php
} else {
|
by: TT |
last post by:
As title
|
by: Ludwig77 |
last post by:
When I was first taught html several years ago, I was taught that the
following tags are standard for any html formatted message:
<HTML>
<HEAD>
</HEAD>
</BODY>
</HTML>
In fact, I was taught that the opening tags (not the ones with </) are
mandatory tags.
|
by: tomy_baseo |
last post by:
I'm new to HTML and want to learn the basics by learning to code by hand
(with the assistance of an HTML editor to eliminate repetitive tasks).
Can anyone recommend a good, basic HTML editor that's a step beyond
Notepad (not a WYSIWYG tool). Thanks.
|
by: Andrew Poulos |
last post by:
While this works on IE 6:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>aiff</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="JavaScript" type="text/javascript">
//<!]>
| |
by: Hazzard |
last post by:
I just realized that the code I inherited is using all asp.net server
controls (ie. webform controls) and when I try to update textboxes on the
client side, I lose the new value of the textbox when submitting the form to
update the database. The server doesn't have the client side value any more.
It seems to me that as I begin to write the client side javacript code for
form validation and client side editing capabilities in order to save...
|
by: Guadala Harry |
last post by:
In an ASCX, I have a Literal control into which I inject a
at runtime.
litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID);
This works great as long as the contains just client-side
HTML, CSS, etc.
What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
|
by: Lennart Björk |
last post by:
Hi All,
I have a tiny program:
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>MyTitle</title>
<meta http-equiv="Content-Type" content="text/html;
|
by: Klaus Jensen |
last post by:
Hi
I face this challenge:
An existing site with 50000+ html-files needs to be protected by a custom
login-system which has two goals:
1. Protect HTML-content (authentication required)
2. If the same username is used by two persons at the same time, they have
to be logged out (when a login is used, other users currently logged in
|
by: howa |
last post by:
seems interesting?
Q. Which naming convention for HTML stuffs you perferred?
e.g.
1. user-list.html VS userlist.html VS user_list.html
2.
|
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...
| |
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,...
|
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |