RE: adding a namespace declaration to result stylesheet?
"BEGED-DOV,GABE (HP-Corvallis,ex1)" <[email protected]> Sun, 14 Sep 2003 14:04:13 -0700
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <[email protected]> |
Does the library element generate the xsl:import for the xslt implementation? If so, this is very useful and something I added to my local version of schematron in order to make use of msxsl extension functions. When are you planning to make this available? The <library> element and the <let> element are the two things that I added to my local version. Another thing that I added was a higher level aggregation of schematron documents(multi-schematron). The multi-schematron document referenced the individual schematron documents. The multi-schematron "runner" would run the individual schematron against the input document and wrap the resulting output using a single trivial wrapper element around the individual conformance output documents. This worked a lot better in terms of authoring discrete validation modules that could then be run either individually or as part of a larger validation suite. IMO, the alternative of using external entities is too intrusive and cumbersome. I don't use the inheritance features of Schematron and feel that a module system that supports easy composition is more important to supporting scaleable validation. Cordially from Corvallis, Gabe Beged-Dov Tel: 1-541-715-7347 Email: [email protected] -----Original Message----- From: Rick Jelliffe [mailto:[email protected]] Sent: Sunday, September 14, 2003 8:24 AM To: [email protected] Subject: Re: [Schematron-love-in] adding a namespace declaration to result stylesheet? Oliver Becker wrote: >I believe with this <xsl:copy-of select="namespace::*" /> we can even >drop the <ns> element which is clearly just a work-around. > > I believe the new version of XPath2 (and therefore XSLT 2?) does not support namesace::*; anyone with better information on this? If I recall the XML.COM? article, there is some kind of workaround. What do people think about the <ns> elements? I personally think they are the correct way to do things, but not really strongly. In particular, I think default (i.e., no prefix) Xpaths are a really dangerous idea. Also, I was introducing a <library> element into ISO Schematron which just brings in the declarations of a referenced schema holus bolus, including <ns> elements (duplicate prefix would be error). With <ns> this is trivially easy, but I suspect that it would be really complicated using xmlns declarations. Clarity welcome. Cheers Rick Jelliffe ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Schematron-love-in mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/schematron-love-in ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf