OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XML should NOT be a new programming language

[ Lists Home | Date Index | Thread Index ]

On Sat, 2002-03-02 at 10:22, Niels Peter Strandberg wrote:
> Why do we use XML to validate, manipulate, transform etc. other XML 
> documents, fragments?

Uh, because it's a relatively easy way to make sure that the same rules
can be applied independent of language or platform?  There's a cost in
abstraction, yes, but you're not tightly bound to a particular
implementation
 
> We have Java, C++ etc. We have if-else, while, switch etc. We can do 
> classes, compile ......... We don't we use them??

We do use them, quite regularly.

> To me XML should be a part of my chosen programming language. No only 
> files on a network or filesystem.

I'm not sure what you're getting at here.  You oppose data files?
 
> I want XML in Java!

You can do XML and XML-like things in Java.  I'm not sure Sun would be
too excited about making XML a _part_ of Java, but that's their
business.

> Why not like this:
> 
> 
> Stylesheet style = {
> 
>          <XSL:STYLESHEET {
>                  [xmlns.xsl = "http://www.w3.org/1999/XSL/Transform";]
>                  [version = "1.0"]
> 
>                  // Book
>                  <XSL:TEMPLATES {
>                          [match = "Book"]
>                          <HTML {
>                                  <HEAD {
>                                          <TITLE {
>                                                  name.equals("") ? "Hej, 
> Guest!" : "Hej, " + name +"!";
>                                          }
>                                  }
>                                  <BODY {
>                                          <CENTER {
>                                                  <XSL:TEMPLATES 
> { [select="title"] }
>                                          }
>                                                  <XSL:TEMPLATES 
> { [select="chapter"] }
>                                                  <XSL:TEMPLATES 
> { [select="appendix"] }
>                                  }
>                          }
>                  }
>          }
> } // stylesheet
> 
> 
> I use Apples Project Builder, and the indenting works perfectly, for the 
> code above!

I have a hard time seeing what you've saved, apart from end tags.  Could
you explain in a little more detail what you're up to there?  Indenting
alone doesn't seem like much of a criteria.  I'm fairly sure BBEdit can
handle such indenting of XML documents as well, but maybe that's not
what you mean.
 
-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS