Subject: Re: [xsl] Functional Equivalent of strip-space on Collection Documents From: "Don Smith dsmith_lockesmith@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 19 Feb 2022 00:52:17 -0000 |
Thanks to both Martin and Dr. Kay. I see that I was under a wrong impression. I'll not speculate as to how that ill-formed notion was acquired. Everyone enjoy the weekend. Don On Friday, February 18, 2022, 05:48:56 PM CST, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: The XSLT 2.0 specification states, as regards xsl:strip-space, that it applies to all source trees, and specifically: For the purposes of this section, the termB source treeB means the document containing theB initial context node, and any document returned by the functionsB document,B docFO, orB collectionFO. It does not include documents passed as the values ofB stylesheet parametersB or returned fromB extension functions. Michael KaySaxonica On 18 Feb 2022, at 23:36, Don Smith dsmith_lockesmith@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: Answers to my question might go several rather different directions so I'll try and specify general scenarios vs. the specific scenario I'm most interested in. Using: XSLT 2.0. Goal: Use functional equivalent of strip-space on collection documents. Perhaps I'm mistaken but using XSLT 2.0 I don't think there is a way to use <xsl:strip-space> on documents that are being processed in a collection. That's because strip-space applies only to the input document and, using 2.0, the collection will be processed not via the input document (which is merely a place holder) but via a variable. At least that's how I'm doing it now. So, given all that, how would you implement a functional equivalent of strip-space on collection documents using XSLT 2.0 and a place-holder input document? Perhaps there's a way to get all the unput documents via the input document (for example, using xi:include in the input document to reference the document corpus, but that's sub-optimal when you want to run a collection on a folder and potentially subfolders. Thanks in advance, Don XSL-List info and archiveEasyUnsubscribe(by email) XSL-List info and archiveEasyUnsubscribe(by email)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Functional Equivalent of , Michael Kay mike@xxx | Thread | [xsl] HTML5 semantics and XSLT, Piez, Wendell A. (Fe |
Re: [xsl] Functional Equivalent of , Michael Kay mike@xxx | Date | [xsl] HTML5 semantics and XSLT, Piez, Wendell A. (Fe |
Month |