[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xmlns="" ??

Subject: RE: xmlns="" ??
From: "Daniel Joshua" <daniel.joshua@xxxxxxxxxxxx>
Date: Tue, 1 Jun 2004 18:02:16 +0800
daniel joshua
> the point of xsl:element is that you can generate element names on the fly
eg
>
> <xsl:element name="h{count(ancestor::*)}">

Cool, this gives me an idea for dealing with another problem I am having now
with text mark up (something similliar to UBB codes).


Regards,
Daniel


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Tuesday, 01 June, 2004 5:52 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  xmlns="" ??



  Side tracking a bit, is there any differences in the above two? If so,
when
  do we use the former?


If you know the element name at the time the stylesheet is written than
you can always do <foo> rather than xsl:element name="foo" the point of
xsl:element is that you can generate element names on the fly eg

<xsl:element name="h{count(ancestor::*)}">

will generate an html h1 or h2 or... depending on how deep we are.

Another use is to generate xslt

<xsl:element name="xsl:value-of">

generates an xsl:value-of in teh result werease <xsl:value-of wiill be
executed as an instruction.

There are some other minor differences related to namespace handling but
they are rarely important.

David


--
The LaTeX Companion
  http://www.awprofessional.com/bookstore/product.asp?isbn=0201362996

http://www.amazon.co.uk/exec/obidos/tg/detail/-/0201362996/202-7257897-06198
04


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
--+--



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.