XSLT Follow
I've got several XSLT stylesheets, and it is displaying a lot of errors. It stems from the fact that its not recognizing the xslt namespace. It has the following error for the namespace: xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
URI is not registered (Settings | IDE Settings | Resources).
When I go there, the namespace URI is there. I remove the Resource, and then when the lightbulb comes up, I select "Fetch". But it still shows the same error.
Because of this, every element with the xsl namespace is showing as an error.
Any tips would be greatly appreciated.
Thanks.
Please sign in to leave a comment.
The document with the URL is not valid schema.
Find the xslt schema/dtd file and associate it with the URI.
Vincent Fischer wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I hope this doesn't sound like too stupid a question, but.. Anyone know where I'd find such a schema/dtd file for xslt? I'm googl'ing now, but am not having much luck (probably my search terms)...
Vincent Fischer wrote:
<?xml version="1.0" ?>
<!--
This is an updated version of the XSLT schema originally published by
WebMethods
in March 2001. This version complies with the current W3C XML Schema
recommendation. To use this schema, start you stylesheet with:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform
http://www.orbeon.com/1999/XSL/Transform">
If you have any question or comment, please feel free to contact us:
Orbeon, Inc.
http://www.orbeon.com/
info@orbeon.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DISCLAIMER OF WARRANTY
THIS CODE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A
PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY
AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED
CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL
DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY
CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED
CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
LIMITATION OF LIABILITY
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK
STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY
SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM
SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH
LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF
INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION
MAY NOT APPLY TO YOU.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This free of charge Software is provided on an "AS IS" basis, without
warranty of any kind. The entire risk as to the quality and performance of
the software is borne by you. Should the software prove defective, you and
only you assume the entire cost of any service and repair.
WEBMETHODS DOES NOT MAKE ANY EXPRESS OR IMPLIED WARRANTIES OF ANY KIND
INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF TITLE, MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE, OR WARRANTIES ARISING BY STATUTE, COURSE
OF DEALING, CUSTOM OR USAGE, TRADE PRACTICE OR OTHERWISE.
IN NO EVENT WILL WEBMETHODS BE LIABLE FOR ANY LOST REVENUES, PROFITS,
BUSINESS OR INTERRUPTION OF BUSINESS OR OTHER SPECIAL, INDIRECT, INCIDENTAL
OR CONSEQUENTIAL DAMAGES, EVEN IF WEBMETHODS HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES, AND NOTWITHSTANDING ANY FAILURE OF ESSENTIAL
PURPOSE OF ANY LIMITED REMEDY OF ANY KIND, HOWEVER CAUSED AND UNDER ANY
THEORY OF LIABILITY.
Schema for XSLT 1.0 Recommendation,
http://www.w3.org/TR/1999/REC-xslt-19991116
Using XML Schema CR Drafts,
- Part 1, http://www.w3.org/TR/2000/CR-xmlschema-1-20001024/
- Part 2, http://www.w3.org/TR/2000/CR-xmlschema-2-20001024/
Author: Asir S Vedamuthu
Member, XML Schema WG representing webMethods, Inc.
Member, XML Schema Processor design and implementation team at webMethods
webMethods, Inc.
3930 Pender Drive
Fairfax VA 22030
(703) 450-2500
Date - February 28th, 2001
Version - 0.4
This work is a product of the W3C XML Schema WG Task Force for authoring
schema
for W3C Recommendations as an illustration of the XML Schema Language.
This schema
is illustrative and non-normative. Internal names created by this schema
follows the
same convention used by XSLT 1.0 specification.
Comments were stolen from the XSLT 1.0 specification,
http://www.w3.org/TR/1999/REC-xslt-19991116#element-syntax-summary
Asir intends to update this schema as the XML Schema drafts advance from
CR to
PR and then REC. Expected changes are,
XML Schema Namespace URI
Change attribute declaration syntax
KNOWN ISSUES,
(a) XML Schema Definition Language cannot capture a unique wild card
expression in XSLT: "In addition, the xsl:stylesheet element may contain
any element not from the XSLT namespace, provided that the expanded-name
of the element has a non-null namespace URI" -
http://www.w3.org/TR/1999/REC-xslt-19991116#stylesheet-element (This
will not be an issue as per XML Schema PR)
Revision History
0.1 - Created
0.2 - Fixed minor typos
0.3 - Implemented suggestions and added fragments from James Clark
0.4 - Fixed a minor typo
Acknowledgement
The following have contributed material to this draft:
- James Clark, jjc@jclark.com
Please send your comments and suggestions to asirv@webmethods.com
-->
]]>
<!-- *** import schema for xpath
authored by C. M. Sperberg-McQueen
Chair, XML Schema WG
--> ]]>
<!-- ***
<xsl:element
name =
namespace = { uri-reference }
use-attribute-sets = qnames>
Content: template
--> ]]>
<!-- ***
<xsl:number
level = "single" | "multiple" | "any"
count = pattern
from = pattern
value = number-expression
format =
lang =
letter-value = { "alphabetic" | "traditional" }
grouping-separator =
grouping-size = />
-->
]]>
<!-- ***
<xsl:processing-instruction
name = >
Content: template
--> ]]>
<!-- ***
xsl:sort
select = string-expression
lang =
data-type = { "text" | "number" | qname-but-not-ncname }
order = { "ascending" | "descending" }
case-order = { "upper-first" | "lower-first" } />
-->
]]>
<!-- ***
<xsl:attribute
name =
namespace = { uri-reference }>
Content: template
--> ]]>
<!-- <pattern
value="(|\{\{|\}\})\{(|"[^"]"|'[']*')+\}(|\{\{|\}\}|\{(|"["]"|'[^']')+\})*"/>
-->
]]>
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
When I go to the webpage:
http://www.orbeon.com/1999/XSL/Transform
it shows an error.
Is there any other place I can find this?
>> I hope this doesn't sound like too stupid a question, but.. Anyone
>> know where I'd find such a schema/dtd file for xslt? I'm googl'ing
>> now, but am not having much luck (probably my search terms)...
>>