Subject: [xsl] How to select nodes with explicitly set default namespace From: Olaf Meske <omeske@xxxxxxxxxxx> Date: Wed, 09 Mar 2005 17:34:10 +0100 |
Is there any special XPath function I have to use this? I use Saxon 7.9.1 and XSL 2.0.
Here are the XML (minitest7.xml) ======================================================================= ======================================================================= <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="minitest7.xsl"?> <document xmlns="http://www.example.com/minitest7"> <content>Test text with <b>bold</b> tags.</content> </document>
======================================================================= ======================================================================= and the XSL (minitest7.xsl) ======================================================================= ======================================================================= <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.com/minitest7" >
<xsl:template match="/"> <root> <content><xsl:apply-templates select="document"/></content> </root> </xsl:template>
<xsl:template match="document" > <doc x="doc content"> <xsl:copy-of select="."/> </doc> </xsl:template>
</xsl:stylesheet> ======================================================================= =======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] performance issues, Michael Kay | Thread | RE: [xsl] How to select nodes with , Michael Kay |
RE: [xsl] Is there a reason for not, Pieter Reint Siegers | Date | RE: [xsl] Is there a reason for not, Andrew Welch |
Month |