Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] xmlns="" ??

From: Wendell Piez <wapiez@---------------->
To:
Date: 6/1/2004 7:40:00 AM
At 05:51 AM 6/1/2004, David wrote:



  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.

Another difference is that if you completely eschew the use of literal 
result elements, it becomes possible to create XSLT in editors that support 
it by means of a schema (which includes xsl:element but not literal results).



I don't do this myself, but I know at least one XML expert who does. (And 
yes, it's Emacs.)



Cheers,
Wendell



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-0619804




________________________________________________________________________
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>
--+--




======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent