[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Specifying the XHTML XMLNS

Subject: Re: Specifying the XHTML XMLNS
From: knocte <knocte@xxxxxxxxx>
Date: Wed, 28 Sep 2005 17:24:07 +0200
is an invalid qname
Thanks for your responses, David and Robert.

> You probably want a default template that renames elements, giving thenm
> the same name but the xhtml namespace, which would be
>
>   <xsl:template match="node()">
>     <xsl:element name="{local-name()}">
>       <xsl:copy-of select="@*"/>
>       <xsl:apply-templates/>
>     </xsl:element>
>   </xsl:template>
>
> which will make elements in the xhtml namespace if that is the current
> default.

Now, either with your solution or with the one from Robert, my XSLT
engine begins transforming but it suddendly aborts in the middle of
the execution with an exception:


<html xml:lang="es"
xmlns="http://www.w3.org/1999/xhtml"><head><title>Main app title - My
specific title</title><meta name="author" content="knocte" /><script
type="text/javascript" src="./js/general/amuse.js"></script><script
type="text/javascript" src="./js/general/general.js"></script><link
rel="stylesheet" href="./css/general/site.css" type="text/css" /><link
rel="stylesheet" href="./css/login.css" type="text/css"></link><script
type="text/javascript" src="./js/login.js"></script></head><body><div
id="divHeader">This is my header</div><div id="divContent"
Uncatched exception: System.Xml.Xsl.XsltException: '' is an invalid QName.

   at System.Xml.Xsl.PrefixQName.ParseNCName(String qname, Int32& position)
   at System.Xml.Xsl.PrefixQName.ParseQualifiedName(String qname, String&
prefix
, String& local)
   at System.Xml.Xsl.ElementAction.CreateElementQName(String name, String
nsUri,
 InputScopeManager manager)
   at System.Xml.Xsl.ElementAction.Execute(Processor processor, ActionFrame
fram
e)
   at System.Xml.Xsl.ActionFrame.Execute(Processor processor)
   at System.Xml.Xsl.Processor.Execute()
   at System.Xml.Xsl.XslTransform.Transform(IXPathNavigable input,
XsltArgumentL
ist args, XmlWriter output, XmlResolver resolver)
   at XsltTestcases.ClassMain.Main(String[] args) in c:\documents and
settings\a
ndres.psm\mis documentos\visual studio projects\xslttestcases\class1.cs:line
39

Do you know if now is there something wrong with the following part of
my stylesheet?:

<div id="divContent">
  <xsl:apply-templates select="content/*" />
</div>


Thanks again!

  Andrew    [ knocte ]

--

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.