Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nahavan 4 posts 20 karma points
    Jul 17, 2009 @ 15:12
    nahavan
    0

    Namespaces in xslt

    Hi

    I am writing an xslt where I want to add another namespace.

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:fml="http://www.filemaker.com/fmpxmllayout" exclude-result-prefixes="msxml umbraco.library fml">

    this is the error I get - what can I do about it?

    Thanks 

    System.Xml.XmlException: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.

    at System.Xml.XmlTextReaderImpl.Throw(Exception e)

    at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()

    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

    at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)

    at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)

    at System.Xml.Xsl.Runtime.XmlQueryContext.GetDataSource(String uriRelative, String uriBase)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 17, 2009 @ 15:17
    Jan Skovgaard
    0

    Hi

    Seems like you are missing urn: in front of your url.

    Try writing this

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:fml="urn:http://www.filemaker.com/fmpxmllayout" exclude-result-prefixes="msxml umbraco.library fml">
Please Sign in or register to post replies

Write your reply to:

Draft