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] combining XML documents

[ Lists Home | Date Index | Thread Index ]

> > <html>
> >   <head><title>Foo</title></head>
> >   <body>{
> > for $doc in ( collection('/path/A'),
> >             collection('/path/B'),
> >             collection('/path/C') )
> > return <a href='{ base-uri($doc) }'>{ $doc//title }</a>
> > }</body>
> 
> Small nit: shouldn't that be $doc//xhtml:title//text() assuming  
> there's a namespace, and so that you get the text content and not a  
> title element?

Who says you don't want to have the <title/> within the <a/>? ;-)

BTW, what is actually the proposed standard way of doing that (node to
string)? You could write "data($title)", "$title//text()",
"string($title)". All these ways differ, but what is the safe default
for the newbie, string()?

Martin





 

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

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