Re: XSLT and HTML

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bruce Wood (brucewood_at_canada.com)
Date: 01/27/05


Date: 27 Jan 2005 10:12:15 -0800

XSLT doesn't "understand" any tags. It's just a pattern-matching
engine: "When you see this tag, generate this stuff." Its only
requirement is that the "XML" coming in must be well-formed:

o Every element must either be self-closing, as in <br />, or must have
a corresponding closing tag.
o Element tags must be nested to form a hierarchy.
o All attribute values must be surrounded by double quotes
o Attribute values must not contain invalid characters such as ' " < >
or &.

If the incoming XML meets these few criteria, XSLT will accept it and
allow you to do pattern matching on it. XHTML is simply HTML that
follows the above rules. You can read more about XHTML at:

http://www.w3.org/MarkUp/2004/xhtml-faq

or just Google for XHTML.

Again, XSLT doesn't "understand" any tags, any more than a text editor
"understands" English above the level of knowing how to recognize what
constitutes a word. XSLT knows what an element looks like, what an
attribute looks like, and what is just text. The rest is up to you. :)



Relevant Pages

  • [Ann] RefleX 0.3.0 is out !

    (comp.text.xml)
  • Extracting data from Word 2003 using XSLT
    ... Using Word property, "w:visible", I add these tags. ... I have written another XSLT that reads the contents of the document ... and extracts the text including the formatting. ... The XSLT outputs an XML document containing the text ...
    (microsoft.public.word.vba.general)
  • XSLT problem with single tags
    ... Got a litte problem here. ... a transformation from WordML format (MS Word XML format, ... however running into a XSLT problem. ... nice html style tags are placed. ...
    (comp.text.xml)
  • Re: Linux syscalls
    ... > create an element which has no style in XML and XSL / XSLT ... then just including the XSL tags to grab the data out of the XML ...
    (alt.lang.asm)
  • Re: Linux syscalls
    ... > Phil Carmody wrote: ... > rather cool stuff...putting together the XML is easy ... > Is there some kind of XSLT quick reference anywhere? ... > tags inside tags and stuff but that's not as graceful in some ...
    (alt.lang.asm)