[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How do i get a name-value pair in HTML output
> I have an abitrary XML doc looking something like this : > > <?xml version="1.0"?> > <myroot value1="first" > value2="second" > value3="third"> > > now i want to able to run this through XSLT producing an html like : > > myroot > value1=first > value2=second > value3=third You could kick-start the solution with <xsl:value-of select="name()"/> <xsl:for-each select="@*"> <xsl:value-of select="concat(name(), ' = ', .)"/> </xsl:for-each> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|