Yeah, right now, you can't interpolate into xmlns slots because those values must be known at parsetime. This is basically an XML parsing error which I didn't write a good error message for. I might change this soon, to allow your kind of code (it would need reorganizing a lot of code), but I'm not sure whether it is so useful. I'm not sure if any code really needs to be generic over XML namespace URLs. I think most code should be written in the second style.
I should say something else about [XML: it doesn't really respect namespace URLs. What it prints out is the textual prefixes used in the source, and the xmlns declarations used in the code, but if you compose things poorly, the generated code could overlap and not do what it looks like it should do. If this is an issue in practice, then I could redo the XML printer to generate namespace names based off the URLs, and be more high level in that way. But I think the current, more ad-hoc system is adequate. Dan On Fri, Mar 27, 2009 at 11:58 AM, Philipp Winkler <[email protected]> wrote: > Hi all, > > I might have a bug report for the xml.syntax vocabulary. Assigning the > name space attribute doesn't work the [XML syntax. > > So for example: > > "http://schemas.openxmlformats.org/package/2006/content-types" > [XML <tag xmlns=<->></tag> XML] > > yields the following error: > > Bad store to specialized slot > value T{ interpolated f f } > class nullable-string > > However: > [XML > <tag xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> > </tag> > XML] > works just fine. > > I don't know if this is actually a bug or if I'm doing something wrong. > > Best, > -phil > > > ------------------------------------------------------------------------------ > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
