|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: document() and fragment
Brian Smith wrote:
Saxon 6.4.4 supports using a fragment identifier (bare name xpointer) with the document function like this: document("doc.xml#text"). This is very handy but it is causing me a problem with the way the resulting node-set is rooted. So, if you want to see the whole document you can't only take a fragment. What about this:
<xsl:for-each select='document("doc.xml")//package[@name="text"]
/ancestor-or-self::package'>
<xsl:value-of select='@name'/>
<xsl:if test='position() != last()'>.</xsl:if>
</xsl:for-each>-- Oleg Tkachenko Multiconn International, Israel XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








