|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Getting metadata values from an HTML file
[ Sergio Lorenzo] > > Hello, I'm new in this forum.I'm developping an application > that takes > metadata information from the <head> section on http pages, > buti'm getting > crazy. I would like to take just the "DC.Title" and "Book1" > values, and > also > "DC.Creator" and "Stefan Multz" values, in the following example: > > <head> > <meta name="DC.Title" content="SELFHTML/Book1"> > <meta name="DC.Creator" content="Stefan Multz"> > </head> > If you want to use xslt, you will have to turn the html into well-formed xml first. You can do this with tidy, or Nekko (now part of Apache-xml), Tag Soup, or similar tools. After that, you can use standards xslt methods. If you do not know how to get an attribute value or element content, get some reference material or read one of the tutorial sites. After that, you may still have some specific questions to ask. Please try to be clear and specific when you ask, because otherwise no one will know how to answer. It would be like asking "can anyone help to understand math?". Cheers, Tom P 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
|

Cart








