Re: [xslt] Implementation of unparsed-text() (XSLT 2.0)?



On Wed, Aug 16, 2006 at 11:33:41AM -0400, Daniel Veillard wrote:
> On Wed, Aug 16, 2006 at 04:27:20PM +0200, Daniel Leidert wrote:
> > Am Mittwoch, den 16.08.2006, 09:54 -0400 schrieb Daniel Veillard:
> > 
> > [XIncluding a text-file to a variable-content in XSLT]
> > >   ah ! xinclude wasn't applied to the stylesheet itself only on documents.
> > > Can you test the attached patch ?
> > 
> > Tested and it looks very good. The xi:include element is processed and I
> > observe the expected/wanted result.
> > 
> > [..]
> > <xsl:variable name="system.paper.size"><xi:include href="file:///etc/papersize" parse="text"/></xsl:variable>
> > [..]
> > <xsl:text>Size: </xsl:text>
> > <xsl:value-of select="normalize-space($system.paper.size)"/>
> > [..]
> > 
> > Result:
> > 
> > [..] Size: a4 [...]
> > 
> > Perfect. Many thanks! Could you please drop me a hint, when you commit
> > the final code to your VCS (only if you change something)? I will open a
> > bug-report in Debian (where I need this behaviour) and request to apply
> > the patch in the current xsltproc-package.
> 
>   Done, just commited after basic testing, this is a safe and small patch.

  Not that safe, apparently there are stylesheets using XInclude construct
as litteral result element, and this just break those. I will change the
patch to require an extra --xinclude-style option to activate XInclude
on the stylesheets too, so it doesn't change the default behaviour and
still allow what you want.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]