Guest kunu Posted October 21, 2006 Share Posted October 21, 2006 Hi!I have xml code (cant make changes) and xsd code (cant make changes) and a xsl code (must make changes).The problem is with the namespaces in the XSL, i don't know what to put to it so that all those codes are being properly used. Here are the beginnings of all codes:XML(royals.xml):<?xml version="1.0" encoding="UTF-8"?> <familyTree xsi:schemaLocation="http://www.media.hut.fi/as01110/2006/u2e1/person/ person.xsd"> <person id="a1"> <name> <firstname>Gustav</firstname> <lastname>Vasa</lastname> </name>...XSD(person.xsd):<?xml version="1.0" encoding="ISO-8859-1"?><xs:schema xmlns:per="http://www.media.hut.fi/as01110/2006/u2e1/person/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.media.hut.fi/as01110/2006/u2e1/person/" elementFormDefault="qualified"> <xs:element name="dateOfBirth" type="xs:date"/> <xs:element name="familyTree"> <xs:complexType> <xs:sequence>...XSL(royals.xsl):<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" ##Write your namespace declarations here## <-- THIS IS THE PROBLEM AREA > <xsl:output encoding="ISO-8859-1" method="text"/> <xsl:template match="/"> <xsl:text>***</xsl:text> <xsl:text></xsl:text>I'dd appreciate all the help that you can give! Link to comment Share on other sites More sharing options...
boen_robot Posted October 22, 2006 Share Posted October 22, 2006 The XSLT namespace is xmlns:xsl="http://www.w3.org/1999/XSL/Transform" if that is what you mean. Scince you'll be writing text, I don't see what other namespaces you need. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now