Hello list, I have a problem with xpointer and xmlns="http://www.w3.org/1999/xhtml" namespace. I want to include parts of a xhtml document (title) in another xml file, but it doesn't get the content of the node <title> using xinclude in either article1 or article2. In case of article3 it works but only for the whole file. :-) But when I delete the namespace xmlns="http://www.w3.org/1999/xhtml out of index.xml I get an outcome from the article2 xinclude.
Any ideas? Thanks for any help. The file to where parts of index.xml should be included: <?xml version="1.0" encoding="utf-8" ?> <news xmlns:xi="http://www.w3.org/2001/XInclude"> <article1> <xi:include href="article1/index.xml#xmlns(ert=http://www.w3.org/1999/xhtml)#xpointer(//ert:title)" /> </article1> <article2> <xi:include href="article2/index.xml#xpointer(//title)" /> </article2> <article3> <xi:include href="article3/index.xml" /> </article3> </news> The source file index.xml: <?xml version="1.0" encoding="UTF-8" ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"> <lenya:meta> <dc:title>DC Title</dc:title> <dc:creator/> <dc:subject/> <dc:description/> <dc:publisher /> <dc:contributor /> <dc:date>2003-5-21</dc:date> <dc:type /> <dc:format /> <dc:identifier /> <dc:source /> <dc:language>en</dc:language> <dc:relation /> <dc:coverage /> <dc:rights>DC Rights</dc:rights> </lenya:meta> <head> <title>Title to be included with xpointer</title> </head> <body> <p>Hello and welcome to the Lenya default publication!</p> <p>Apache Lenya is a Java Open-Source Content Management System based on open standards such as XML and XSLT and the Apache Software Stack, in particular the XML publishing framework Apache Cocoon.</p> </body> </html> -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
