Subject: RE: [xsl] XMLSS XSL question From: "Michael Kay" <mhk@xxxxxxxxx> Date: Fri, 5 Sep 2003 11:33:51 +0100 |
FAQ: your source document declares a default namespace, so the Workbook element is actually a {urn:schemas-microsoft-com:office:spreadsheet}Workbook element. To refer to this in the stylesheet, you must use an explicit namespace prefix, e.g. <xsl:template match="x:Workbook" xmlns:x="urn:schemas-microsoft-com:office:spreadsheet"/> Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Madari István > Sent: 05 September 2003 10:30 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] XMLSS XSL question > > > Hi, > > I'm a beginner in XSL, and I have problem. > I'm using xmlspy 5 with its built-in XSLT engine, and I cant > apply templates for an XMLSS document.. > > few rows from the document: > > <Workbook > xmlns="urn:schemas-microsoft-com:office:spreadsheet" > xmlns:o="urn:schemas-microsoft-com:office:office" > xmlns:x="urn:schemas-microsoft-com:office:excel" > xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" > xmlns:html="http://www.w3.org/TR/REC-html40"> > <DocumentProperties > xmlns="urn:schemas-microsoft-com:office:office"> > <Author>Trax</Author> > . > . > . > . > . > </Workbook> > > the xsl which I tried: > > <?xml version="1.0" encoding="UTF-8"?> > <?xmlspysamplexml C:\Documents and > Settings\Trax\Asztal\Munkafüzet1.xml?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <xsl:output method="html"/> > <xsl:template match="/"> > <xsl:apply-templates select="Workbook"/> > </xsl:template> > <xsl:template match="Workbook"> > <xsl:value-of select="name()"/> > </xsl:template> > </xsl:stylesheet> > > the debugger cant find the <Workbook>... > what is the problem? the namespace or what? > how can I solve this? > > Thanks... > > > -- > Best regards, > Trax mailto:pityusz@xxxxxxxxxxx > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XMLSS XSL question, Madari István | Thread | Re: [xsl] XMLSS XSL question, Emmanuil Batsis (Man |
RE: [xsl] Landscape print control, Michael Kay | Date | Re: [xsl] XMLSS XSL question, Emmanuil Batsis (Man |
Month |