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



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.

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]