xsl-list
[Top] [All Lists]

RE: Parsing XML tag attributes

2003-04-04 01:37:44

Have I overcomplicated the XML by using class with an element 
attribute?  Would it make more sense to use this?

<class>
      <element>TestType</element>
      <documentation>Doc for TestType</documentation>
</class>


No, processing attributes in XSLT is just as easy as processing
elements.

Any XSLT textbook or tutorial will have examples of how to do this.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>