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

meta-stylesheets info

Hi!
where can I find some infos about meta-stylesheets techinque (a document
XSLT which generates other one)? I've seen Schematron, but which are other
most popular example of this use of XSLT?

thanks!

Alan
Dec 14 '05 #1
6 1364
^Alan^ wrote:
Hi!
where can I find some infos about meta-stylesheets techinque (a document
XSLT which generates other one)?
?? you mean an xslt document that generates an xslt document?
I've seen Schematron, but which are other
Schematron is a xml schema language, like
XMLSchema.
Has not mucht to do with xslt
most popular example of this use of XSLT?

?? dont now what you mean.
thanks!

Alan

Dec 14 '05 #2
Schematron is based on this technique:
http://www.ldodds.com/papers/schematron_xsltuk.html

I'm looking for other examples of this use of XSLT...

"Tjerk Wolterink" <tj***@wolterinkwebdesign.com> ha scritto nel messaggio
news:dn**********@netlx020.civ.utwente.nl...
^Alan^ wrote:
Hi!
where can I find some infos about meta-stylesheets techinque (a document
XSLT which generates other one)?


?? you mean an xslt document that generates an xslt document?
I've seen Schematron, but which are other


Schematron is a xml schema language, like
XMLSchema.
Has not mucht to do with xslt
most popular example of this use of XSLT?


?? dont now what you mean.
thanks!

Alan

Dec 14 '05 #3
^Alan^ wrote:
Schematron is based on this technique:
http://www.ldodds.com/papers/schematron_xsltuk.html

I'm looking for other examples of this use of XSLT...

"Tjerk Wolterink" <tj***@wolterinkwebdesign.com> ha scritto nel messaggio
news:dn**********@netlx020.civ.utwente.nl...
^Alan^ wrote:
Hi!
where can I find some infos about meta-stylesheets techinque (a document
XSLT which generates other one)?


If you want to see more of what you can do with languages that can
generate themselves, and it doesn't _have_ to be XSLT, look at the
programming language Scheme. Lots a fun. You can write compilers,
partial validators and loads of other things in a few lines.

The only magic thing about it in XSLT is to have the stylesheet
processor know what in the stylesheet-spewing stylesheet is code and
what is data. There's a special namespace-alias element for that.

Exercise: Make a stylesheet that takes 2 paramters, a and b. It
generates a stylesheet that does the identity transform, except that
elements named a are replaced by elements named b...

Soren
Dec 15 '05 #4
Exercise: Make a stylesheet that takes 2 paramters, a and b. It
generates a stylesheet that does the identity transform, except that
elements named a are replaced by elements named b...
I mean, the value of b instead of the value of a, not b instead of a.
Soren

Dec 15 '05 #5
^Alan^ wrote:
Schematron is based on this technique:
http://www.ldodds.com/papers/schematron_xsltuk.html

I'm looking for other examples of this use of XSLT...


I've used this technique recently. In my particular case, the task was
to create an HTML page with color-coded text based on both the values
from an input XML file and an XSLT. For example, let's say the XML file
contained the following:

<?xml version="1.0" encoding="UTF-8"?>
<porridge>
<tempC>37</tempC>
<cooked>true</cooked>
</porridge>

Now imagine that we want to transform this into an HTML file in which
the temperature is color coded; blue for too cold, red for too hot, and
green for just right. Since these temperatures are somewhat subjective,
I needed a way to enter the list of rules. I could have built the rules
directly into a stylesheet, but ultimately I decided to have the rules
in more-or-less human readable XML and then generate the XSLT. Also,
this had the advantage of making it easier to generate an HTML page
which summarized the rules. Here are the transformations:

rules.xml + rules2html.xsl = rules.html
rules.xml + rules2xsl.xsl = rules.xsl
porridge.xml + rules.xsl = porridge.html

If you need more details, or you're stuck on one particular thing, let
me know.

Ed
Dec 15 '05 #6

"^Alan^" <sq*****@tin.it> wrote in message
news:43***********************@reader3.news.tin.it ...
Hi!
where can I find some infos about meta-stylesheets techinque (a document
XSLT which generates other one)? I've seen Schematron, but which are other
most popular example of this use of XSLT?

It is much more interesting to use higher-order functions in XSLT. Because a
higher-order function can return another (dynamically created function) as
the result of its application, one does not need to generate code, which
then has to be re-compiled.
Implementing and using higher-order functions is described in the FXSL
documentation and in this presentation at Extreme Markup Languages 2003:

http://www.mulberrytech.com/Extreme/...ovatchev01.pdf
Cheers,
Dimitre Novatchev
Dec 16 '05 #7

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

Similar topics

1
by: Cezary | last post by:
Hello. I was read PHP manual, but i'm not sure yet. Here is my meta tags in html: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2"> <META HTTP-EQUIV="Expires"...
4
by: Brian | last post by:
Hi, I'm trying to use standard meta tags in an xsl doc and using cocoon as my processor. The problem is that cocoon changes for example: <meta name="keywords" content="test, test, test" /> ...
1
by: Darren Blackley | last post by:
Hi there I have documents that I want to automatically add additional meta tags to. The documents already have some meta tags and I want to keep them all together, so I want to add my new meta tags...
19
by: Christian Hvid | last post by:
Hello groups. I have a series of applet computer games on my homepage: http://vredungmand.dk/games/erik-spillet/index.html http://vredungmand.dk/games/nohats/index.html...
24
by: Day Bird Loft | last post by:
Web Authoring | Meta-Tags The first thing to understand in regard to Meta Tags is the three most important tags placed in the head of your html documents. They are the title, description, and...
3
by: J1C | last post by:
How can I programatically add meta tags with javascript?
5
by: RodneyDunes | last post by:
My site did validate and now it doesn't. The error I get is the following: document type does not allow element "META" here ....nt-type" content="text/html;charset=iso-8859-1"> Can someone...
4
by: Jim Hammond | last post by:
After much effort, it doesn't seem possible to redirect the user to a new page after 10 seconds by using a server-side timer. I am now using the following meta statement to accomplish the same...
1
by: Maziar Aflatoun | last post by:
Hi everyone, My goal is to modify the contents of my meta tag (html refresh). However, my code adds a new instance of the meta tag at the bottom of the page. Is there a way to modify it instead...
16
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.