|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: substring-after Not Working in apply-templates
> <xsl:apply-templates select="substring-after(@rdf:about,'#')"> > </xsl:apply-templates> You can only apply templates to nodes, and substring-after produces a string, not a node. > > Can anyone guide me how can I write the result of this > substring-after thing into an XML file. Use xsl:value-of > > Btw, I tried using following code: > <xsl:for-each select="@rdf:about"> > <xsl:value-of select="substring-after(@about,'#')"/> > </xsl:for-each> > Attributes don't have attributes. Your code is trying to display (part of) the @about attribute of the @rdf:about attribute, and there isn't one. Michael Kay http://www.saxonica.com/
|
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








