Skip to content

iwyg/xml-nodeset-to-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Converts a nodeset to string, especially useful for json conversions.

===================================================================================

Copyright 2011, Thomas Appel, http://thomas-appel.com, mail(at)thomas-appel.com dual licensed under MIT and GPL license http://dev.thomas-appel.com/licenses/mit.txt http://dev.thomas-appel.com/licenses/gpl.txt

===================================================================================

Example usage:

(convert a exsl nodeset to string: )


<xsl:variable name="somelink">
	<a href="{url}" class="some-class"><xsl:value-of select="name"/></a>
</xsl:variable>
<xsl:apply-templates select="exsl:node-set($somelink)/* | exsl:node-set($some-link)/text()" mode="nodetostring"/>

(convert xml noset to string: )


<xsl:apply-templates select="node | node[text()" mode="nodetostring"/>

About

convert a xml-nodset to string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published